What our customers say
Sometimes, for discounted products we doesn't want the user to increment or decrement the quantity of that particular product.
Go to cart-template.liquid file present in the Sections folder.
Check for the code for the "Quantity" and give the "if-else" condition using the product id. Edit the code for the input type number, add "readonly" to the input field so that it user can only see that field but cannot edit the field.
The below code checks for that particular product in cart page and disables the quantity of the product.
Sometimes, desktop and mobile code for quantity will be different. In such cases, we need to add "readonly" for the input field in mobile code as well. Add the below code to disable the qunatity.
By following the above step, we can disable the quantity of the product.
NectarSpot Inc. is an integrated digital marketing company specializing in Design & Development of Web, Mobile & Voice Applications.
Our award winning team excels in providing redesign, optimization, automation, and analytics services to companies at various growth stages.
Contact us today to get your project started.
Blog Categories
Site Map
Services
Copyright © 2024 Website by NectarSpot Marketing, Automation, and Design Company