{assign var=showLabelRegular value=@if( regularPrice.showLabel) {true} else {false}} {assign var=showLabelOld value=@if( oldPrice.showLabel) {true} else {false}} {assign var=classLabelRegular value='@regularPrice.label.classNames'} {assign var=classLabelOld value='@oldPrice.label.classNames'}
{if isset($bestSellers)} {capture name=regularPrice} {if !$PS_CATALOG_MODE}

{$product.price}

{else}
{/if} {/capture} {assign var=isRegular value=true} @include("regularPrice") {elseif isset($isRelatedProduct)} {capture name=regularPrice} {if $ProdDisplayPrice AND $product.show_price == 1 AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}

{convertPrice price=$product.displayed_price}

{else}
{/if} {/capture} {assign var=isRegular value=true} @include("regularPrice") {else} {if !isset($isViewedProduct)} {if $page_name == 'product'} {if is_object($product) AND $product->show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE} {capture name=regularPrice}
{if isset($showLabelRegular) && $showLabelRegular && $product->online_only} {l s='Online only'} {/if} {if !$priceDisplay || $priceDisplay == 2} {assign var='productPrice' value=$product->getPrice(true, $smarty.const.NULL, $priceDisplayPrecision)} {assign var='productPriceWithoutReduction' value=$product->getPriceWithoutReduct(false, $smarty.const.NULL)|round:$priceDisplayPrecision} {elseif $priceDisplay == 1} {assign var='productPrice' value=$product->getPrice(false, $smarty.const.NULL, $priceDisplayPrecision)} {assign var='productPriceWithoutReduction' value=$product->getPriceWithoutReduct(true, $smarty.const.NULL)|round:$priceDisplayPrecision} {/if}

{if $priceDisplay >= 0 && $priceDisplay <= 2} {convertPrice price=$productPrice} {if isset($showLabelRegular) && $showLabelRegular} {if isset($tax_enabled) && $tax_enabled && ((isset($display_tax_label) && $display_tax_label == 1) OR !isset($display_tax_label))} {if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if} {/if} {/if} {/if}

{if $priceDisplay == 2}
{convertPrice price=$product->getPrice(false, $smarty.const.NULL)} {if isset($showLabelRegular) && $showLabelRegular}  {l s='tax excl.'} {/if} {/if}
{if isset($showLabelRegular) && $showLabelRegular && $product->ecotax != 0} {l s='include'}  {if $priceDisplay == 2}{$ecotax_tax_exc|convertAndFormatPrice}{else}{$ecotax_tax_inc|convertAndFormatPrice}{/if}  {l s='for green tax'} {if $product->specificPrice AND $product->specificPrice.reduction}  {l s='(not impacted by the discount)'} {/if} {/if} {if !empty($product->unity) && $product->unit_price_ratio > 0.000000} {math equation="pprice / punit_price" pprice=$productPrice punit_price=$product->unit_price_ratio assign=unit_price}

{convertPrice price=$unit_price} {if isset($showLabelRegular) && $showLabelRegular} {l s='per'} {$product->unity|escape:'htmlall':'UTF-8'} {/if}

{/if} {/capture} {capture name=oldPrice} {if $product->specificPrice AND $product->specificPrice.reduction}

{if $priceDisplay >= 0 && $priceDisplay <= 2} {if $productPriceWithoutReduction > $productPrice} {convertPrice price=$productPriceWithoutReduction} {if $tax_enabled && $display_tax_label == 1} {if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if} {/if} {/if} {/if}

{/if} {if $packItems|@@count && $productPrice < $product->getNoPackPrice()}

{if isset($showLabelOld) && $showLabelOld} {l s='instead of'} {/if} {convertPrice price=$product->getNoPackPrice()}

{/if} {/capture} @if (positionOldPrice !== "bottom" && showOldPrice) { {assign var=isRegular value=false} @include("oldPrice") } {assign var=isRegular value=true} @include("regularPrice") @if (positionOldPrice === "bottom" && showOldPrice) { {assign var=isRegular value=false} @include("oldPrice") } {*close if for show price*} {/if} {else} {capture name=regularPrice} {if isset($showLabelRegular) && $showLabelRegular} {if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)} {if ($product.allow_oosp || $product.quantity > 0)} {l s='Available'} {elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)} {l s='Product available with different options'} {else} {l s='Out of stock'} {/if} {/if} {if isset($product.online_only) && $product.online_only} {l s='Online only!'} {/if} {/if} {if !$priceDisplay}{if isset($product.price)}{convertPrice price=$product.price}{/if}{else}{convertPrice price=$product.price_tax_exc}{/if} {/capture} {capture name=oldPrice} {if isset($product.reduction) && $product.reduction} {convertPrice price=$product.price_without_reduction} {/if} {/capture} {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))} {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)} @if (positionOldPrice !== "bottom" && showOldPrice) { {assign var=isRegular value=false} @include("oldPrice") } {assign var=isRegular value=true} @include("regularPrice") @if (positionOldPrice === "bottom" && showOldPrice) { {assign var=isRegular value=false} @include("oldPrice") } {/if} {/if} {/if} {/if} {/if}