Can I Set a Minimum WooCommerce Order Amount?
How WooCommerce Order Limits Are Implemented
The validation hooks into WooCommerce's checkout process before an order is allowed to be placed, checking the cart's total against the configured minimum and/or maximum, and adding a clear checkout notice explaining the requirement if the total falls outside that range — rather than a silent block, which would just confuse customers.
add_action( 'woocommerce_checkout_process', function() {
$minimum = 25;
if ( WC()->cart->get_subtotal() < $minimum ) {
wc_add_notice(
sprintf( 'A minimum order of %s is required to check out.', wc_price( $minimum ) ),
'error'
);
}
} );
Common Reasons Stores Do This
- A minimum order amount is often used to offset the fixed cost of fulfilling small orders (packaging, handling), making very small orders unprofitable to process.
- A maximum order amount is less common but sometimes used for fraud-risk management, or to require a different, manually reviewed process for unusually large orders.
- Category or product-specific minimums (rather than a store-wide one) are also possible with more targeted logic, useful for a wholesale section with its own minimum distinct from retail.
- Clear messaging matters — a vague error, rather than one explicitly stating the required minimum/maximum, leaves customers confused about how to actually resolve it.
Implementing It Properly
- Use the
woocommerce_checkout_processhook (or a dedicated plugin) to validate the cart total against the desired range. - Write a clear, specific error message stating the actual minimum/maximum and how to resolve it.
- Test with carts right at, just above, and just below the threshold to confirm the boundary behaves as intended.
Need conditional order minimums built for a specific product category or customer type? See custom WooCommerce development.