Contributions
Minimum Order Amount
The Minimum Order Amount contribution will add a configuration option that will allow you to specify a minimum order total that must be met before allowing checkout.
All attempts to checkout with an order that does not meet the minimum will return the customer to the shopping cart with a message informing the customer of the minimum amount.
Expand All / Collapse All
Removed other checkout option buttons (i.e. PayPal) from the shopping cart page until the minimum order amount is met.
[full package]
I've added a mod that will remove the checkout button until the minimum amount is met. I wanted something that would stop the process before the checkout_**** pages.
[full package]
if ($cart->show_total() <= MIN_ORDER_AMOUNT)
should be:
if ($cart->show_total() < MIN_ORDER_AMOUNT)
Warning shold not display on shopping cart page when minium is met.
define('TEXT_ORDER_UNDER_MIN_AMOUNT', 'A minimum order amount of %s is required in order to checkout.');
must be this one
Minor changes to work with multiple currencies. Also, French and German translations added. Fixed bug in the next to last upload.
** This is just an update to the contribution **
I noticed that on the shopping cart page, if the minimum order meets the requirement, the message still appears. So I modified the code to hide the message when the minimum order amount is met and redisplay if the amount is under the limit.
Updated for more recent snapshots.
Updated the readme to specify the checkout_*.php files to modify and modified the code to use subtotal instead of total (to avoid tax from being included in the comparison).
The Minimum Order Amount contribution will add a configuration option that will allow you to specify a minimum order total that must be met before allowing checkout.
All attempts to checkout with an order that does not meet the minimum will return the customer to the shopping cart with a message informing the customer of the minimum amount.
Note: Contributions are used at own risk.