// Fixed shopping cart line reduction

This commit is contained in:
Damien Metzger
2013-11-05 16:41:38 +01:00
parent 4a6cb5075e
commit 9f1911eeca
@@ -44,8 +44,8 @@
{/if}
{if isset($product.is_discounted) && $product.is_discounted}
<span class="price-percent-reduction small">
{assign var='priceReductonPercent' value= (($product.price_without_specific_price - $product.price)/$product.price_without_specific_price) * 100 * -1}
{$priceReductonPercent|string_format:"%d"}%
{assign var='priceReductonPercent' value=(($product.price_without_specific_price - $product.price_wt)/$product.price_without_specific_price) * 100 * -1}
{$priceReductonPercent|round|string_format:"%d"}%
</span>
<span class="old-price">{convertPrice price=$product.price_without_specific_price}</span>
{/if}