As it exists currently, a minimum order amount can be specified to allow checkout, but there is no clear method for setting up a requirement for a minimum number of items to allow checkout.
This patch adds an additional field to the cart settings form at admin/store/settings/cart/edit/basic that allows a site admin to specify a minimum quantity of items to require in the cart before allowing a user to proceed to checkout. This is based on the total number of cart items, whether split between multiple products, or multiples of a single product. If the value is 0, checkout will always be allowed, so this patch can be rolled into any installation without worry about having to establish a minimum item count requirement for checkout.
Installation & Usage:
Place patch file into modules/ubercart and apply. Affected files are uc_cart.pages.inc and uc_cart.admin.inc
Navigate to admin/store/settings/cart/edit/basic and set a minimum order items value. Last item in the General Cart Settings form pane
Comments
Comment #1
wiremilldev CreditAttribution: wiremilldev commentedThis contrib module has the functionality for minimum and maximum, and product multiples:
http://drupal.org/project/uc_product_minmax
Would this serve the same purpose?
Comment #2
TR CreditAttribution: TR commentedThere's no patch here - looks like the original poster forgot to attach it.
Comment #3
TR CreditAttribution: TR commentedNew features should go into 7.x-3.x first at this point.
Comment #4
TR CreditAttribution: TR commented