Jump to content

Prestashop JavaScript amendment?

Recommended Posts

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.



Edited by Wullie (see edit history)

Share this post

Link to post
Share on other sites
  • 2 weeks later...

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


Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More