Shad86 Posted October 4, 2017 Share Posted October 4, 2017 Hey guys, I`m using Presta 1.7.1.2 (update in the next days) and I try to change the discount list a bit. I´ve added a new cell for the single price of the product and added the price by {$product.price}. My problem is, if the customer types in 50 at the quantity field, the single price is changing like on the top of the product. But the single price in the discount list has to stay. And chance to find out which code I could use to realize that? My code now is: <table class="table-product-discounts"> <thead> <tr> <th>{l s='Quantity' d='Shop.Theme.Catalog'}</th> <th>{$configuration.quantity_discount.label}</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>{$product.price}</td> </tr> {foreach from=$product.quantity_discounts item='quantity_discount' name='quantity_discounts'} <tr data-discount-type="{$quantity_discount.reduction_type}" data-discount="{$quantity_discount.real_value}" data-discount-quantity="{$quantity_discount.quantity}"> <td>{$quantity_discount.quantity}</td> <td>{$quantity_discount.discount}</td> </tr> {/foreach} </tbody> </table> And here a small screenshot how it looks at the moment: Hopefully someone can help me a bit with this. Thank you very much. Link to comment Share on other sites More sharing options...
hebiii994 Posted February 8, 2018 Share Posted February 8, 2018 I have the same problem... Where is this function, in other file? "$quantity_discount.discount" Link to comment Share on other sites More sharing options...
Alex Posted February 10, 2018 Share Posted February 10, 2018 I am looking for this answer too Link to comment Share on other sites More sharing options...
Shad86 Posted February 12, 2018 Author Share Posted February 12, 2018 I still have no solution for this. Sorry. Link to comment Share on other sites More sharing options...
flanders Posted March 2, 2018 Share Posted March 2, 2018 Has anybody a solution to this problem ? Link to comment Share on other sites More sharing options...
Shad86 Posted December 11, 2018 Author Share Posted December 11, 2018 For me it´s getting actual again but still no solution. Anyone here who could help us? 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