Mechanic Get Mechanic

Shopify Function · Cart and checkout validation

Require a minimum order quantity for a collection

Require at least two units when a buyer orders from a collection you choose. Carts with no items from that collection remain eligible.

How the rule works

  1. When
    The cart contains exactly one unit from your chosen collection.
    Then
    Block checkout and ask for at least two units. A cart without items from that collection can continue.

What shoppers see

One unit from the collection
Checkout pauses with the message “Choose at least two items from this collection.”
Two units from the collection
The shopper can continue through checkout.

Set it up in your shop

Choose the condition that blocks checkout and write the message buyers will see. Test a blocked cart, then make the change the message asks for.

Open the rule as a draft in Mechanic. Test it with your products before publishing.

Customize this Function in Mechanic