Hello, I have been looking around but cannot find updated answers or code for this situation. I am on theme Dawn 9.0.0 and am looking for a way to limit the “+” on the quantity selector to be unclickable once the max available inventory is reached. Currently an error message comes up that says “You can’t add more [product name] to the cart.” I want the “+” to just not be clickable when the max quantity available has been reached.
I have played around with some of the files for theme settings but I’m unsure what I need to edit to get this to work. Below is a photo of what I DO NOT WANT to be happening.
Any help with this is appreciated! Happy to clarify if anyone has any questions.
