Wullie Posted December 30, 2020 Share Posted December 30, 2020 (edited) Where do I find the JavaScript for the "Quantity" on the product codes? I would like to figure out how to change the code and offer a discount for "X" ammount of products purchased. I believe I should be able to write an "if" statement for different quantities purchased and change the Price showing the discounteed price. Can anyone help? Basically...Base Price is: 1- 2 = £1.20 per item 3 - 11 = £1.00 each 12 = £11.00 If I can look at the code, I believe I could it. Many thanks for reading. Wullie Edited December 30, 2020 by Wullie (see edit history) Link to comment Share on other sites More sharing options...
JBW Posted January 11, 2021 Share Posted January 11, 2021 You can listen to "updateProduct" event to react on qunatity changes. But the feature you are looking for is already build-in in Prestashop (volume discount) - price will change automatically when specificed quantity is choosen Link to comment Share on other sites More sharing options...
Wullie Posted January 11, 2021 Author Share Posted January 11, 2021 Thanks JBW Wullie 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