Hide QTY field in cart

Posts: 49
Joined: 12/12/2007
Bug Finder

Is it possible to hide the QTY field in the cart view and make it a hidden field? All of our items would have a qty 1 so we don't want to confuse the customer.

Posts: 822
Joined: 11/05/2007
Bug FinderFAQ ModeratorGetting busy with the Ubercode.

Uncheck the Qty. box at admin/store/settings/tables/uc_cart_view_table

--

<tr>.

Posts: 8
Joined: 01/04/2008

Hello,

This solution won't work well. If the customer were to click the add to cart button twice then the Quantity will be two but there will be no way for them to take it back to one, unless the customer removes the item from their cart. I smell a feature request here: ability to limit the number of times an item can be added to a cart.

Scott

Posts: 822
Joined: 11/05/2007
Bug FinderFAQ ModeratorGetting busy with the Ubercode.

Well, that's a different question, isn't it? You can limit the quantity purchased by implementing hook_add_to_cart(). See http://www.ubercart.org/docs/api/hook_add_to_cart

--

<tr>.

Posts: 49
Joined: 12/12/2007
Bug Finder

Thanks. We are handling the qty limiting using hook_add_to_cart so we should be OK but I will test.

Posts: 60
Joined: 09/04/2007

Hi. Maybe you could try this contrib in order to limit the quantity of items.