Jump to content

Checking available quantity


Recommended Posts

Hello,

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 !!

Capture2.PNG

Capture1.PNG

Link to comment
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...