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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | uc_product_actions-default_qty-1437230-1.patch | 1.62 KB | stewart.adam |
Comments
Comment #1
stewart.adam commentedMarking as needs review.
Comment #2
SeanA commentedSeems 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.