Jump to content

Restrict user from adding more products to cart than possible. [SOLVED]


Recommended Posts

So I've got this problem, where I need to put some sort of limit, on the input:image.png.9ca1c1ec4c164002b85be3314101fdb2.png
I know that it is impossible to buy more, than there is products in stock. But it is not enough, and I need to set limit, so that you can't choose more then there is in stock. 

I somehow managed to limit this using ChatGPT, but it works only if I'm typing the amount by myself.

If anyone knows the solution, by script or addon (I can't find anything), I would be very glad.

Edited by SzymonBl (see edit history)
Link to comment
Share on other sites

The only "disabled" tag I see is in "Add to cart" button
... data-button-action=\"add-to-cart\"\n            type=\"submit\"\n                          disabled\n                      >\n                        Dodaj do koszyka\n          <\/button> ...

Link to comment
Share on other sites

  • SzymonBl changed the title to Restrict user from adding more products to cart than possible. [SOLVED]

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