nikmagnus Posted January 21, 2012 Share Posted January 21, 2012 Hi there, Id like to add the quantity discount in the product-listing view and the search view. Can you assist me is getting the array $quantity_discounts working in product-list.tpl? I have it working in product.tpl in this way: {if $quantity_discounts} {foreach from=$quantity_discounts item='quantity_discount' name='quantity_discounts'} <p class="price"><span class="our_price_display" id="our_price_display"> {$quantity_discount.quantity|intval} or more for [spam-filter]$productPrice *(100-{$quantity_discount.real_value|floatval})/100}|convertAndFormatPrice} each </span></p> {/foreach} I try calling the variables $quantity_discount.quantity and $quantity_discount.real_value but they are not set. I'm guessing I have to define the $quantity_discount array in a .php file somewhere but I'm lost as to which one feeds the product-list and search pages and what code to add in. THanks for your help. Nik Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now