From 1782bc082f2bb2daaed6b45e41403aebb2dd948a Mon Sep 17 00:00:00 2001 From: PhpMadman Date: Fri, 8 Nov 2013 10:27:36 +0100 Subject: [PATCH] // made a working You Save column for Volume Discounts --- themes/default-bootstrap/product.tpl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/themes/default-bootstrap/product.tpl b/themes/default-bootstrap/product.tpl index 21b7967c4..7335599d5 100644 --- a/themes/default-bootstrap/product.tpl +++ b/themes/default-bootstrap/product.tpl @@ -626,7 +626,15 @@ var contentOnly = {if $content_only}true{else}false{/if} {/if} - {l s='Up to'} $300 + {l s='Up to'} + {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} {/foreach}