Allow minimum order quantity restriction as well as order total
giomanz - August 25, 2009 - 23:50
| Project: | Ubercart Discount Coupons |
| Version: | 6.x-1.3 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Coupons that require minimum orders are not enforced during checkout. For instance, I created a coupon that requires a minimum order of 100 items yet I can apply it to an order of 30. Oddly enough for a coupon of a minimum order of 100 it doesn't work for orders under 100 items.

#1
#2
CORRECTION
Coupons that require minimum orders are not enforced during checkout. For instance, I created a coupon that requires a minimum order of 100 items yet I can apply it to an order of 30. Oddly enough for a coupon of a minimum order of 100 it doesn't work for orders under 10 items.
#3
The "minimum order limit" field is a price for the total cart value, not the number of items in the cart. I have renamed this field "minimum order total" and included the currency prefix/suffix to make this more obvious. There is currently no way of requiring a certain number of items in the cart before a coupon can be used.
Issue retitled and left open as a feature request.
#4
I made exactly the same mistake with this and assumed it was a quantity (eg: additional 10% off the total if you buy more than 3 items) rather than a value (which personally doesn't work for me as I have a whole range of different values with my products).
I would second the featured request for a "Minimum Quantity" option.
Good mod otherwise though, nice job and thanks for contributing it.
Andy