How to Create an Order Limit

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.

access-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

frontend-display

Create MOQ Metafields for Product and Variant

Step 1: Add Product MOQ Metafield

  • Go to Settings → Metafields and metaobjects → Products
  • Click Add definition
meta feild meta object related image
  • Name: OSCP MOQ
  • Namespace and key: oscp.moq
  • Type: Single line text
  • Limit: 1–3 characters (example: 5)

Click Save

product-metafeild
metafeild-defination

Step 2: Add Variant MOQ Metafield

Go to Settings → Metafields and metaobjects

From the list, click Variants (this is the Product variants level shown on the page)

Click Add definition
Now enter the following details:

  • Name: OSCP MOQ
  • Namespace and key: oscp.moq
  • Type: Single line text
  • Limit: 1–3 characters (example: 5)

Click Save

 This will create the MOQ metafield at the variant level, allowing you to set different minimum quantities for each product variant.

Step 3: Set MOQ for Products

  1. Go to Products → Select your product
  2. Scroll to the Product metafields section
  3. Enter the MOQ value (example: 5) in OSCP MOQ
  4. Click Save
product metafeild

Step 4: Set MOQ for Variants

  1. Open the same product
  2. Go to the Variants tab
  3. Click on a variant (example: Black)
variants

Scroll to Variant metafields
Enter the MOQ value (example: 4) in OSCP MOQ

product editor variant tab

Click Save

Step 5: Enable Checkout Validation Rule

Go to Settings → Checkout

  1. Open Checkout rule for cart-checkout-validation (OSCP)
  2. Turn the rule ON
  3. Keep “Allow all customers to complete checkout” checked
  4. Click Save
Checkout Rule for Cart Validation

Step 6: Test the MOQ Rule

  1. Add items below the MOQ (example: 2 items when MOQ = 5)
  2. Proceed to checkout → an error message will be shown
  3. Add items equal to or above the MOQ
  4. Checkout will work successfully ✅

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

check for errors related image