// made a working You Save column for Volume Discounts

This commit is contained in:
PhpMadman
2013-11-08 10:27:36 +01:00
parent 42af175d22
commit 1782bc082f
+9 -1
View File
@@ -626,7 +626,15 @@ var contentOnly = {if $content_only}true{else}false{/if}
{/if}
</td>
<td>
<span>{l s='Up to'} $300</span>
<span>{l s='Up to'}</span>
{if $quantity_discount.price >= 0 OR $quantity_discount.reduction_type == 'amount'}
{$discountPrice=$productPrice-$quantity_discount.real_value|floatval}
{else}
{$discountPrice=$productPrice-($productPrice*$quantity_discount.reduction)|floatval}
{/if}
{$discountPrice=$discountPrice*$quantity_discount.quantity}
{$qtyProductPrice = $productPrice*$quantity_discount.quantity}
{convertPrice price=$qtyProductPrice-$discountPrice}
</td>
</tr>
{/foreach}