{if isset($bestSellers)} {capture name=regularPrice} {if !$PS_CATALOG_MODE}

{$product.price}

{else}
{/if} {/capture} {capture name=oldPrice}{/capture} @if (_positionPrice !== 'bottom') { {assign var=isRegular value=false} @include("oldPrice") {assign var=isRegular value=true} @include("regularPrice") } else { {assign var=isRegular value=true} @include("regularPrice") {assign var=isRegular value=false} @include("oldPrice") } {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} {capture name=oldPrice}{/capture} @if (_positionPrice !== 'bottom') { {assign var=isRegular value=false} @include("oldPrice") {assign var=isRegular value=true} @include("regularPrice") }else{ {assign var=isRegular value=true} @include("regularPrice") {assign var=isRegular value=false} @include("oldPrice") } {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 !$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}

{if $priceDisplay == 2}
{convertPrice price=$product->getPrice(false, $smarty.const.NULL)} {l s='tax excl.'} {/if}
{if $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} {l s='per'} {$product->unity|escape:'htmlall':'UTF-8'}

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

{l s='instead of'} {convertPrice price=$product->getNoPackPrice()}


{/if} {/capture} {if $product->online_only}

{l s='Online only'}

{/if} @if (_positionPrice !== 'bottom'){ {assign var=isRegular value=false} @include("oldPrice") {assign var=isRegular value=true} @include("regularPrice") }else{ {assign var=isRegular value=true} @include("regularPrice") {assign var=isRegular value=false} @include("oldPrice") } {*close if for show price*} {/if} {else} {capture name=regularPrice} {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 !$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( _positionPrice !== 'bottom'){ {assign var=isRegular value=false} @include("oldPrice") {assign var=isRegular value=true} @include("regularPrice") }else{ {assign var=isRegular value=true} @include("regularPrice") {assign var=isRegular value=false} @include("oldPrice") } {/if} {/if} {/if} {/if} {/if}