It's possible to do this on a global level through a store configuration setting or on a product by product basis by clicking on advanced inventory. There's a setting for maximum allowed quantity in the cart. See screenshots attached.
@mdism, Could you share your code for custom increment/decrements in qty box?
Based on code we will suggest for your issue.
Thanks.
@Rakesh Jesadiya i have not done any custom code for that... i am using default setting bt smartwave.freshdesk themes
@mdism, You need to set qty for each product at backend level,
Go To Backend, Catalog -> Products edit your products,
Click on Advanced Inventory below the Quantity dropdown, In open popup just set value of qty for Maximum Qty Allowed in Shopping Cart
Save product clear cache and check, It will add maximum of qty you have added in above setting.
if issue solved, Click kudos/Accept as solutions.
@Rakesh Jesadiya i tried this it works but not as it should work.
if i set the max. order quantity as 10... the cart counter gos to 11, 12, 13 etc. and when i press add to cart it gives error massage of quantity limit.
please check
https://www.loolooherbal.in/free-samples.html
here i have set the max order quantity as 1 only.
i want to set like the counter should get disable, or anything that prompts its max value.
@mdism, Your link is not working for me, You can get suggestion from Theme provider and let him ask for this type of functionality is not working with your theme Otherwise you need to modify related to qty box coding js file. find which file is responsible for this qty box inc/decrement funcitonality and set your logic at those point.
Thanks.
@mdism, Your link is not working for me, You can get suggestion from Theme provider and let him ask for this type of functionality is not working with your theme Otherwise you need to modify related to qty box coding js file. find which file is responsible for this qty box inc/decrements functionality and set your logic at those point.
Thanks.
i didn't find any solution. the question is asked to theme guys. but not revived the solution yet...
i will update here if ill get any solution..