Jump to content

Recommended Posts


My specific problem is that i need to check the available quantity of products that the customer want to add to it's cart through an API and not my internal prestashop stock.

If my API returns 299 when the customer types 300 in quantity box, the message "there are not enough products in stock" should appear and "add to cart" button is disabled, like in the uploaded images.

A module can be developed to change this default checking or where i can edit the code to achieve this kind of check  ? It's something about the template or elsewhere ?


Thank you !!



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