Tags/topics: 
1
Answers
Vote up!
0
Vote down!

Limit Quantity to 1 on Cart/Checkout page

I have a product that is a subscription so it is only 1 per person. I've configured the Product Display Add to Cart button to not include quantity. When the user goes to the Checkout page, the Quantity text box is there (and I don't want it to be). I know that I can turn off the Quantity Display in the Cart View but that turns it off for all products (and other of my products allow for purchasing more than 1). How do I prevent the Quantity Text box from showing up in the Cart for specific Product Types?

PS. It would be great to have a Checkbox added to the Product Display Add to Cart Button that turns off Quantity in the Cart as well

Asked by: OutdoorEd
on June 29, 2013

1 Answer

Vote up!
0
Vote down!

I had a similar use case. Use hook_form_alter to disable the quantity box of the specific line item.

As for the PS, I don't understand what you want to do. Why do you want a checkbox seen by the user that will turn off the quantity in the cart?

Answer by: akosipax
Posted: Jul 3, 2013