How can I adjust 'add to cart' to register multiples of 10?

Hi there

I am looking for a solution that will do the following:

When customer clicks on ‘add to cart’ button (there is no quantity selector available for them to choose from on the product page)

that each 1 item will add 10 into the cart.

So if they click on ‘add to cart’ 3 times, the system will register as having 30 items in the cart.

We would need to make sure that when the customer clicks on the quantity selector in the cart that the representative quantity is always in multiples of 10.

Does that make sense? Is there a solution out there for this?

Thanks in advance.

Hello @LoyalCanada ,

Yes it’s possible but not without customization.
Idea is, in cart page with JS you have to detect the change in quantity selector and every time when there is change in quantity update it’s values to 10.

Thanks

Thanks for the reply.

Would there be a way to detect particular products for this to happen with?

How would the admin choose the products in the backend?

Thanks in advance.

With the help of metafields we can create an option in admin product page.

e.g. create a checkbox field with name ‘Quantity control’ or something related

Now you will find with each product there is a checkbox option available. Now here admin have to enable/disable it and a/to this selection make the code in frontend.