{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=attrLabelRegular value='@regularPrice.label.effects.dataAttrs'} {assign var=classLabelOld value='@oldPrice.label.classNames'} {assign var=attrLabelOld value='@oldPrice.label.effects.dataAttrs'}
{if isset($bestSellers)} {capture name=regularPrice} {if !$PS_CATALOG_MODE} {if isset($showLabelRegular) && $showLabelRegular}{l s='Price:'}{/if} {$product.price} {/if} {/capture} {assign var=isRegular value=true} @include("regularPrice") {elseif isset($isRelatedProduct) && $isRelatedProduct} {capture name=regularPrice} {if $ProdDisplayPrice AND $product.show_price == 1 AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE} {if isset($showLabelRegular) && $showLabelRegular}{l s='Price:'}{/if} {convertPrice price=$product.displayed_price} {/if} {/capture} {assign var=isRegular value=true} @include("regularPrice") {else} {if !isset($isViewedProduct)} {if is_object($product) AND $product->show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE} {capture name=regularPrice}
{if isset($showLabelRegular) && $showLabelRegular} {if $product->online_only}{l s='Online only'}{else}{l s='Price:'}{/if} {/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 version_compare($smarty.const._PS_VERSION_,'1.6','<')} {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} {else} {if $product->quantity > 0}{/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} {hook h="displayProductPriceBlock" product=$product type="price"} {/if}

specificPrice || $product->specificPrice.reduction_type != 'percentage'} style="display:none;"{/if}>{strip} {if $product->specificPrice && $product->specificPrice.reduction_type == 'percentage'}-{$product->specificPrice.reduction*100}%{/if} {/strip}

specificPrice || $product->specificPrice.reduction_type != 'amount' || $product->specificPrice.reduction|floatval ==0} style="display:none"{/if}>{strip} {if $product->specificPrice && $product->specificPrice.reduction_type == 'amount' && $product->specificPrice.reduction|floatval !=0} -{convertPrice price=$productPriceWithoutReduction|floatval-$productPrice|floatval} {/if} {/strip}

{/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} {if version_compare($smarty.const._PS_VERSION_,'1.6','<')}{l s='include'}{else}{l s='Including'}{/if}  {if $priceDisplay == 2}{$ecotax_tax_exc|convertAndFormatPrice}{else}{$ecotax_tax_inc|convertAndFormatPrice}{/if}  {if version_compare($smarty.const._PS_VERSION_,'1.6','<')}{l s='for green tax'}{else}{l s='for ecotax'}{/if} {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 version_compare($smarty.const._PS_VERSION_,'1.6','>=')}{hook h="displayProductPriceBlock" product=$product type="unit_price"}{/if} {/if} {/capture} {capture name=oldPrice} {if $product->specificPrice AND $product->specificPrice.reduction}

specificPrice || !$product->specificPrice.reduction) && $group_reduction == 0} class="hidden"{/if}> {if isset($classLabelOld) && $classLabelOld} {l s='Old price:'} {/if} {if $priceDisplay >= 0 && $priceDisplay <= 2} {if $productPriceWithoutReduction > $productPrice} {if version_compare($smarty.const._PS_VERSION_,'1.6','>=')}{hook h="displayProductPriceBlock" product=$product type="old_price"}{/if} {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} {if version_compare($smarty.const._PS_VERSION_,'1.6','<')}{l s='instead of'}{else}{l s='Instead of'}{/if} {/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") } {if version_compare($smarty.const._PS_VERSION_,'1.6','>=')}{hook h="displayProductPriceBlock" product=$product type="weight"}{/if} {*close if for show price*} {else} {capture name=regularPrice} {if version_compare($smarty.const._PS_VERSION_,'1.6','<')} {if isset($showLabelRegular) && $showLabelRegular} {l s='Price:'} {*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} {* Product comparison page *} {if is_object($product) && isset($product->show_price) && $product->show_price} {convertPrice price=$product->getPrice($taxes_behavior)} {if !empty($product->unity) && $product->unit_price_ratio > 0.000000} {math equation="pprice / punit_price" pprice=$product->getPrice($taxes_behavior) punit_price=$product->unit_price_ratio assign=unit_price}  {convertPrice price=$unit_price} {l s='per %d' sprintf=$product->unity|escape:'htmlall':'UTF-8'} {/if} {elseif !is_object($product)} {if !$priceDisplay}{if isset($product.price)}{convertPrice price=$product.price}{/if}{else}{convertPrice price=$product.price_tax_exc}{/if} {/if} {else} {if isset($showLabelRegular) && $showLabelRegular} {l s='Price:'} {*if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)} {if ($product.allow_oosp || $product.quantity > 0)} {if $product.quantity <= 0}{if $product.allow_oosp}{if isset($product.available_later) && $product.available_later}{$product.available_later}{else}{l s='In Stock'}{/if}{else}{l s='Out of stock'}{/if}{else}{if isset($product.available_now) && $product.available_now}{$product.available_now}{else}{l s='In Stock'}{/if}{/if} {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} {if is_object($product) && isset($product->show_price) && $product->show_price && !isset($restricted_country_mode)} {convertPrice price=$product->getPrice($taxes_behavior)} {elseif !is_object($product)} {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)} {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} {if $product.price_without_reduction > 0 && isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction > 0} {hook h="displayProductPriceBlock" product=$product type="old_price"} {displayWtPrice p=$product.price_without_reduction} {hook h="displayProductPriceBlock" id_product=$product.id_product type="old_price"} {if $product.specific_prices.reduction_type == 'percentage'} -{$product.specific_prices.reduction * 100}% {/if} {/if} {hook h="displayProductPriceBlock" product=$product type="price"} {hook h="displayProductPriceBlock" product=$product type="unit_price"} {/if} {/if} {/if} {/capture} {capture name=oldPrice} {if version_compare($smarty.const._PS_VERSION_,'1.6','<')} {if (!is_object($product) && isset($product.reduction) && $product.reduction)} {if isset($showLabelOld) && $showLabelOld} {l s='Old price:'} {/if} {convertPrice price=$product.price_without_reduction} {/if} {else} {if (!is_object($product) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction > 0)} {if isset($showLabelOld) && $showLabelOld} {l s='Old price:'} {/if} {hook h="displayProductPriceBlock" product=$product type="old_price"} {displayWtPrice p=$product.price_without_reduction} {if $product.specific_prices.reduction_type == 'percentage'} -{$product.specific_prices.reduction * 100}%{/if} {/if} {/if} {/capture} {if (!$PS_CATALOG_MODE AND ((!is_object($product) && ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order))) OR (is_object($product) && isset($product->show_price) && $product->show_price)))} @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}