Checkpost

How to set a minimum order quantity for products on Shopify

Short answer: Require a minimum quantity for selected products, so low-margin or bulk items can't be ordered in single units. In Checkpost, choose “Minimum order quantity (MOQ) per product” from Templates, adjust the values, test it, then save and enable the rule.

The problem

Low-margin consumables, samples and wholesale-style items lose money when ordered one at a time. A minimum order quantity (MOQ) keeps each order worth fulfilling.

How to set it up

  1. Install Checkpost from the Shopify App Store.
  2. Open Templates and choose Minimum order quantity (MOQ) per product.
  3. Pick the products and the minimum quantity.
  4. Use Try this rule to test a sample cart, then click Save rule.

The rule

Checkout is blocked when all of these conditions is true:

Shoppers see: “Some items have a minimum order quantity of 5.” at the top of checkout, in the cart and at checkout.

Rule definition (JSON)
{
  "name": "MOQ of 5",
  "match": "all",
  "conditions": [
    {
      "kind": "line_number",
      "field": "product_quantity",
      "op": "lt",
      "value": 5,
      "filter": {
        "productTags": [
          "moq-5"
        ]
      }
    }
  ],
  "message": "Some items have a minimum order quantity of 5.",
  "target": "cart",
  "runOn": "always"
}

Where this rule works

These are cart and checkout validations, including supported accelerated checkouts. They are current-cart policies; they do not track previous purchases of a SKU. Shopify excludes POS, recurring subscription orders and native pre-order/Try Before You Buy flows from this API. See Shopify's validation compatibility.

Tips

FAQ

Is the minimum per variant or per product?

Across matching variants and split lines of each Shopify product. Two colours of one product share its minimum; separate products must each meet it. Use the mix-and-match minimum for one shared minimum across the entire eligible set.

Can wholesale customers have a different MOQ?

Yes. Add a customer tag condition to each rule so retail and wholesale customers get different minimums.

Related rules

Add minimum order quantity (moq) per product to your store