Default quantity to add to cart == 0 does not disable quantity in cart

Project: 
Ubercart
Category: 
bug report
Version: 
Ubercart 1.0 RC
Priority: 
normal
Assigned: 
Unassigned
Status: 
active

When adding a product, the "Default quantity to add to cart" option has the following description:
"Leave blank or zero to disable the quantity field in the add to cart form."

The way I understand it, is that when you either set the field to 0, or remove the value completely, the product should not have a "quantity" option when being added to the shopping cart. This is not the case.

I have tried both, setting the field to 0 and removing the value altogether on multiple products, yet the quantity field always showed up in the shopping cart.

Drupal 5.3
UC RC4

kerunt wrote: The way I

kerunt wrote:

The way I understand it, is that when you either set the field to 0, or remove the value completely, the product should not have a "quantity" option when being added to the shopping cart.

That's the way it works for me, testing under UC RC4. I have the quantity box set to display by default (admin/store/settings/products/edit) but when I enter 0 into the "Default quantity to add to cart" box on the product edit page (and press Submit, of course...) the quantity field doesn't show up on the product page for that product.

If you have a custom catalog, or have overridden the theme functions for the catalog, I suppose you may be inadvertently circumventing this feature, but it works for me for the default catalog and product view.

Re: kerunt wrote: The way I

Strange, it always shows up for me (the quantity field that is).

I haven't modified the catalog or overriden anything relating to the catalog. I do have quite a few contributed UberCart modules though. Perhaps one of them is causing this problem.

I'll post up if I discover anything else relating to this Smiling

Re: Re: kerunt wrote: The way I

If you're viewing the page as anonymous, you might be seeing a cached version...

Re: Re: Re: kerunt wrote: The way I

Nope, I was looking at it as a logged in user. I tried both admin and regular user accounts, and this happens with all items. Definitely not cached...