On a product node edit form, the 'Default quantity to add to cart' field has this help text:

> Leave blank or zero to disable the quantity field next to the add to cart button, if it is enabled in general. If it is disabled, this field is ignored.

My understanding of it is that the following logic should hold:

- if at admin/store/settings/products/edit the 'Display an optional quantity field in the Add to Cart form.' is *disabled*, then whatever number you enter into this field on a product node has NO effect whatsoever.

However, this is clearly not the case -- when I set this value to, say, 5, the add to cart button on the node then adds that number of products in one go.

Either the help text is wrong or the behaviour is wrong (or I am misunderstanding it, in which case it should perhaps be reworded).

Comments

longwave’s picture

I would consider the help text to be wrong, otherwise we are effectively removing existing functionality (if, for some reason, you wanted to hide the quantity field but then always add 5 products by default)

Perhaps the help text should just say "Leave blank or zero to disable the quantity field next to the add to cart button."?

longwave’s picture

Status: Active » Fixed

Changed the help text to "Use 0 to disable the quantity field next to the add to cart button." to match 7.x-3.x where this has already been fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.