Impossible to disable the quantity field in the add to cart form

Posts: 2
Joined: 11/20/2008

Hi, I've installed Ubercart 5.x-1.6 and I'm dealing with this problem. (bug?)
I would like to disable the quantity field in the add to cart form for a product, so I've set to 0 (zero) the "Default quantity to add to cart" field in the Product Edit Page, but in the Cart Form the quantity field is always visible and editable.
The same if I set the field to blank.

Thanks

Posts: 2
Joined: 11/20/2008

I tried also this: I've set the default quantity field in the product edit page to "2" but the quantity field in the cart form shows always "1".
It seems the default quantity field doesnt work....

Posts: 37
Joined: 02/10/2008

You can disable the quantity field by un-checking the box next to "Display an optional quantity field in the Add to Cart form." at www.yoursite.com/admin/store/settings/products/edit. If you want to get rid of the button as well you will have to remove the line

print $node->content['add_to_cart']["#value"]."";

from your node-product.tpl.php.

--

www.PrintersCloset.com - Epson professional graphics printers and supplies for photographers, fine art galleries, sign printers and commercial printing companies.

Posts: 2352
Joined: 08/07/2007
AdministratoreLiTe!

Sorry, marocg, but the quantity field works just fine for me. It goes away when it is supposed to and has the right value in it when it appears. The only thing I can tell you is to make sure you really have version 1.6. I'm pretty sure I haven't made any changes to that code for a long time, so your copy should behave the same as mine.