On a site I was working on we had to modify the default_qty field (default quantity to add to cart), the attached patch adds support for this.

BTW, great module design! The purpose of the functions was clear and adding support for this was as straightforward, I really like how you can easily add support for any top-level node field.

Comments

stewart.adam’s picture

Status: Active » Needs review
StatusFileSize
new1.62 KB

Marking as needs review.

SeanA’s picture

Status: Needs review » Fixed

Seems like a good feature to have. Committed to 6.x and 7.x dev branches, thanks for the patch!

Note to users: Ubercart (and UC Product Actions) allows setting the 'default quantity' to zero. In this case the quantity field is hidden on the 'add to cart' form, and clicking the button adds 1 item to the cart. This might be a little bit confusing but works as designed.

Status: Fixed » Closed (fixed)

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