Using Ubercart beta 1 and Drupal 6.8

The value used in the "Default quantity to add to cart: " field seems not be respected. Tested with values of 0, 1, and 2. A value of zero also does not disable the quantity field in the cart as the field instructions suggest.

Please let me know if you need any other info.

Comments

rszrama’s picture

Status: Active » Closed (works as designed)

I think you're mistaken. That field is for the "add to cart form" not the "cart form." In other words, it does not affect the cart form at all. If you want to remove the Qty. textfield from there, you'll have to do something else. One example of this in a module is http://drupal.org/project/uc_restrict_qty.

Island Usurper’s picture

I'll fix the description of the default quantity field to be clearer about what it does. It'll also include a link to the settings page that turns on the quantity fields, since it is disabled by default.

dave bruns’s picture

Yes, my mistake, thanks for the help.

I see now that this refers to the Qty setting at Store Admin > Configuration > Product Settings > Product Settings > Display an optional quantity field in the Add to Cart form.

Once enabled, this value works as stated.

vannus’s picture

if the quantity is disabled on the product page - shouldn't it also be disabled on the cart page??

UC should probably prevent such products being added more than once as well.

- V