{* * 2007-2013 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA * @copyright 2007-2013 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *}
{if $product->online_only}

{l s='Online only'}

{/if}
{if !$priceDisplay || $priceDisplay == 2} {assign var='productPrice' value=$product->getPrice(true, $smarty.const.NULL)} {assign var='productPriceWithoutReduction' value=$product->getPriceWithoutReduct(false, $smarty.const.NULL)} {elseif $priceDisplay == 1} {assign var='productPrice' value=$product->getPrice(false, $smarty.const.NULL)} {assign var='productPriceWithoutReduction' value=$product->getPriceWithoutReduct(true, $smarty.const.NULL)} {/if}

{if $priceDisplay >= 0 && $priceDisplay <= 2} {convertPrice price=$productPrice} {/if}

{if $product->on_sale} {l s='On sale!'} {/if} {if $priceDisplay == 2} {convertPrice price=$product->getPrice(false, $smarty.const.NULL)} {l s='Tax excl.'} {/if} {if $product->specificPrice AND $product->specificPrice.reduction}

{if $priceDisplay >= 0 && $priceDisplay <= 2} {if $productPriceWithoutReduction > $productPrice} {convertPrice price=$productPriceWithoutReduction} {/if} {/if} {if $product->specificPrice.reduction_type == 'percentage'} -{$product->specificPrice.reduction*100}% {elseif $product->specificPrice.reduction_type == 'amount'} -{convertPrice price=$product->specificPrice.reduction|floatval} {/if}

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

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

{/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}