This is the documentation for LemonStand V1, which has been discontinued. You can learn more and upgrade your store here.

LemonStand Version 1 Has Been Discontinued

This documentation is for LemonStand Version 1. LemonStand is now offered as a cloud-based eCommerce platform.
You can try the new LemonStand and learn about upgrading here.

How to Set Minimum Order Amount

Although generally getting any amount for an order is more positive than not having an order at all. Your eCommerce store may sometimes require that there be a minimum order amount for the transaction to go through. In that case, we have built a simple free module for you to extend your LemonStand store do just that.

Installing the Minimum Order Amount module

The minimum order amount module was created by LemonStand and it is provided for free on our marketplace. You can find all of LemonStand's modules here: http://lemonstand.com/marketplace/author/lemonstand/

 You can install the module for any of your projects in 4 easy steps:

  1. Get the Minimum Order Amount module from the marketplace
  2. Bind and add the Minimum Order Amount module to your chosen project. Here are the step-by-step instructions on how to install a module.
  3. Configure the minimum order amount for your store
  4. Configure the error message that appears if the minimum order amount is not satisfied.

How to Configure the Minimum Order Amount

To specify the minimum order amount, simply use the module configuration page to set your minimum amount. The module makes a simple API call to MinOrderAmount::get_min_amount(), whichi returns the minimum order amount value which you have specified on the module configuration page. Usage: 

The minimum order amount is<?= format_currency(MinOrderAmount::get_min_amount())?>

How to Configure the Error Message 

MinOrderAmount::order_allowed() - checks whether the total cart amount is equal or bigger than the minimum order amount and returns an action. Here is an example of its usage:

<? if (MinOrderAmount::order_allowed()): ?>
... show the Check Out button here
<? else: ?>
... show some message
<? endif ?>

Next: How to Create a Customer Profile Page
Previous: How to Set up Minimum Order Quantity (MOQ)
Return to Articles