Mechanic Get Mechanic

Shopify Function · Cart and checkout validation

Keep preorder and in-stock items in separate orders

Ask shoppers to order preorder and in-stock items separately. A mixed cart shows a checkout message, while a cart containing only one type can continue.

How the rule works

  1. When
    The same cart contains preorder items and regular items.
    Then
    Ask the shopper to place separate orders before they can check out.

What shoppers see

Mixed cart
Checkout pauses with the message “Please purchase preorder items separately.”
Regular items only
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