How to set minimum order value and minimum quantity rules for B2B customers in Shopify?

Hi everyone,

I’m setting up a Shopify store that serves both B2C and B2B customers, and I need to apply specific purchase rules only for B2B customers.

Here are the requirements for B2B orders:

  • First order: minimum order value of €500

  • Following orders: minimum order value of €300

  • Product-level rule: minimum 3 pieces per SKU on every B2B order

My questions are:

  1. Is it possible to set different minimum order values for first-time vs returning B2B customers?

  2. Can Shopify enforce a minimum quantity per SKU only for B2B customers?

  3. What is the best approach to implement this?

    • Shopify native features (B2B on Shopify / customer tags / functions)?

    • Shopify Functions?

    • Apps?

    • Custom code?

If anyone has experience implementing similar B2B rules or can recommend a clean and scalable solution, I’d really appreciate your advice.

Thanks in advance!

Based on your requirements, the best way is to use the shopify app. There are multiple shopify apps that you can use for to setup the min order Quantity.

Some of the apps that listed below.

You can use any app that suits you best.

If you’re using Shopify Functions:

  • Use a Cart/Checkout Validation Function
  • Query Input.cart.buyerIdentity.customer.numberOfOrders (new customers have 0 orders so far)
  • Query Input.cart.buyerIdentity.purchasingCompany to ensure it’s a B2B customer
  • Determine order minimums based on number of orders and reject if the minimums are not met.

That should be enough context to vibe code a simple custom app. :wink:

Best,

Tobe