How to Create an Order Limit
Table of Contents
How to Create an Order Limit
Step 1: Navigate to Order Management
- Go to the OSCP Wholesale B2B app in your admin panel.
- Select Order Management from the sidebar.
Step 2: Access Order Limit Section
In the Order Management page, click Create Order Limit Rule under the Order Limit section.

Step3: Set General Settings
- Enable the limit by selecting Enable under Offer Status.
- Enter a Limit Name for your reference (this is internal and won’t be visible to customers).

Step 4: Define Conditions
- Choose whether All conditions must be met or Any one condition must be met.
- Set the Target as Cart.
- Select Type (e.g., Total Quantity or Total Value).
- Enter Minimum Value and Maximum Value (e.g., quantity between 1 and 5).

Step 5: Save the Limit
- Click Add New to save the condition(s).
- Review and save the entire order limit rule
Step 6: You can view and manage the listing of Order Limit.

Customizing Messages
You can customize the messages as you wish and use the variables noted in the ‘Message’ tab.

- Review and save the entire order limit rule.
Frontend Display

Create MOQ Metafields for Product and Variant
Step 1: Create the Metafield Definitions for MOQ
Go to Settings > Custom data > Products > Add definition.

Name: OSCP MOQ.

Namespace and key: oscp.moq.

- Type: Single line text > One value.
- Validations: Minimum character count: 1, Maximum character count: 3.
- Click Save.
- Go to Settings > Custom data > Product variants > Add definition.

Step 2: Assign MOQ Values to Products and Variants
- Go to Products > [Select product, e.g., “Striped Skirt and Top”].
- Scroll to Product metafields.
- Enter OSCP MOQ, e.g., 5.
- Click Save.

- In the same product editor, go to Variants tab.
- Select a variant, e.g., “Black” for “Black Leather Bag”.
- Scroll to Variant metafields.
- Enter OSCP MOQ, e.g., 4 for Black, 2 for Brown.
- Click Save or Variant updated.

Step 3: Set Up Checkout Rule for Cart Validation
- In the OSCP app, go to Order Management > Checkout Rules.
- Click Create rule or edit existing rule.
- Rule Name: “MOQ Enforcement”.
- Conditions: Select oscp.moq, set minimum quantity.
- Validation Scope: Enable for Cart and Checkout.
- Fallback: Check “Allow all customers to complete checkout”.
- Toggle On and click Save.

Step 4: Test the Full Flow
- Add low-quantity items to cart
- View cart and proceed to checkout.

- Check for errors (e.g., “requires a minimum order quantity of 6”).

