So here is the issue I am facing: This is an e-commerce website.
1> There are 2 pages of JS (pdp.js - Script of the product page and cart.js - Script of the cart page).
2> In the product page (See image 1 and 2), there is only 10 quantity of this product for the size XS. If I add more than 10, it will show the error message "SORRY, ALL OUT".
If I add 10 first time, it will be added to the cart, then again if I reduce 1 item (which makes it to 9) and click on "Add to bag" again additional 9 items will be added to the cart.
Conclusion: Items should not be added to the cart more than 10 quantity if there are only 10 quantity in the inventory.
Let me know if you need any help with the teamviewer or anything to understand better.
December 29, 2017
I am looking for freelancers with the lowest rates