Skip to content

Checkout Lock

Checkout for a guest blocked by a checkout lock: Sorry your order has been blocked, You need to log in before proceeding with checkout

What your customers see on the storefront.

Checkout Lock lets you control who is allowed to complete checkout, not just who can see products or prices.
This is especially useful for blocking bots, fraudulent orders, or unapproved customers at the final step.


Before using Checkout Lock, make sure:

Having this clear upfront makes rule configuration much easier.


You’ll see a configuration screen similar in spirit to the Rule Builder, but focused specifically on checkout.


Typical fields you’ll see in a Checkout Lock rule:

  • Rule name
    • Internal name to identify what the rule does, e.g.:
      • Block checkout for non-wholesale customers
      • Restrict checkout for restricted products
  • Status (Active / Inactive)
    • Active → rule is enforced.
    • Inactive → rule is saved but not applied.

Checkout rules usually work as “block if…” logic.
You define when checkout should be denied.

Common condition types:

  • Customer-based conditions
    • Customer is not tagged with wholesale / approved.
    • Customer email is on a blacklist/whitelist.
  • Cart/content-based conditions
    • Cart contains specific products or collections.
    • Cart total is below or above certain thresholds.
    • Cart contains restricted products (e.g., certain categories or tags).
  • Vendor and address conditions
    • Cart contains a product from a given Product vendor.
    • The Shipping province in the address entered at checkout matches (read from the shipping address, not the visitor’s IP).
    • Shipping country, Market, Customer order count, Date range, Time range and Discount code are marked Coming Soon and can’t be used yet. Checkout locks have no IP condition.

You can usually combine multiple conditions using AND/OR logic, for example:

  • Block checkout if:
    • Customer is not tagged wholesale AND cart contains products from the “Wholesale” collection.
  • Block checkout if:
    • Product vendor is Winery A AND Shipping province is MI.

When conditions are met (i.e., the rule is triggered), you specify what happens:

  • Block behavior
    • Prevent the order from being placed.
    • Stop the checkout at a certain step.
  • Error / info message shown to the customer
    • Short message displayed at checkout explaining why the order can’t be completed.
    • Examples:
      • “This checkout is only available for approved wholesale customers. Please log in with your wholesale account or contact us.”
      • “We are currently unable to process orders to your region. Please contact support for more information.”
  • Support or next-step link (if supported)
    • Link to contact form, B2B application form, or email address.

Good messages reduce confusion and guide legitimate customers toward the right next step.


Here are some common patterns you can implement with Checkout Lock:

1) Allow only approved wholesale customers to checkout

Section titled “1) Allow only approved wholesale customers to checkout”
  • Rule name: Checkout only for wholesale customers
  • Conditions:
    • Customer is not tagged with wholesale
  • Action: Block checkout
  • Message:
    • “Checkout is available only for approved wholesale accounts. Please apply for a wholesale account or log in with your approved email.”

Result:

  • Wholesale-tagged customers can check out normally.
  • Guest or non-tagged customers are blocked at checkout.

2) Block checkout when restricted products are in cart

Section titled “2) Block checkout when restricted products are in cart”
  • Rule name: Block restricted products checkout
  • Conditions:
    • Cart contains products from collection Restricted
    • Customer is not tagged approved
  • Action: Block checkout
  • Message:
    • “Your cart contains items that require additional approval. Please contact us before placing this order.”

Result:

  • Only approved/tagged customers can purchase restricted items.
  • Other customers can still buy non-restricted products (if you allow it via catalog rules).

3) Block one vendor’s products in one province

Section titled “3) Block one vendor’s products in one province”
  • Rule name: Block Winery A in Milan
  • Conditions: (Match conditions: All)
    • Product vendor → Winery A
    • Shipping province → MI
  • Action: Block checkout
  • Message:
    • “At this time we can’t ship these products to your region. Please contact us to discuss options.”

Result:

  • Orders with Winery A products shipping to that province are blocked at checkout.
  • Products from other vendors (for example Winery B) can still be bought there.
  • Use the 2-letter code Shopify shows at checkout for that address, not the full name. Place a test order to confirm the exact code.

1. Test with multiple scenarios

  • Use different test customers:
    • Guest
    • Retail customer
    • Wholesale/approved customer
  • Try carts with:
    • Only normal products
    • Only restricted products
    • Mixed carts

2. Start with simple rules

  • Begin with a single, clear condition (e.g., block everyone not tagged wholesale).
  • Add more complex conditions gradually to avoid unexpected blocks.

3. Align with catalog locks

  • Use Checkout Lock as the final safeguard.
  • Still use product/collection locks to hide content from the wrong users earlier in the journey.

4. Keep messages human and clear

  • Tell customers why the checkout is blocked.
  • Tell them what to do next (log in, contact support, request approval).

With Checkout Lock configured properly, you get a strong last line of defense against bots, fraud, and unauthorized orders, while keeping the experience smooth for legitimate, approved customers.


If you have questions or need assistance configuring BSS B2B Lock, our dedicated support team is here to help.

  • In-App Assistance: Click Need help? or use the in-app chat button within BSS B2B Lock.
  • Email Support: Contact us at [email protected] with your store URL and specific rule details.