Creating a Checkout lock
This Lock type prevents customers from completing checkout with restricted products. Customers can still add those products to the cart, but the order will be blocked once they proceed to checkout.
An error message will appear to inform customers of the reason:

Step to manage:
From the app's dashboard page > go to Locks page > Create lock > Choose lock content: Checkout lock

Set up name for the lock in the Lock information part.
In the Checkout rules setting, set up condition to apply this lock for products.
If a customer proceeds to checkout and either the cart items or the customer information match the rules configured in the app, the system will automatically display an error message on the checkout page. In this case, the customer will not be able to complete the checkout and create the order.
There are currently 7 conditions. It can be applied based on Product condition or Customer condition:

For example, restrict 2 products from being paid at checkout
Please use condition: Select products


Click Add another condition to have more rules for this lock:

There are two types of error messages:
Custom message – a general notification shown to the customer.
Condition-based messages – displayed based on the specific conditions configured in the app, helping the customer understand the exact reason why checkout is not allowed.

In this case, the default error messages shown to customers are:
‘Product {title} cannot be checked out’ and ‘Your email is not eligible for checkout’
These appear based on the conditions you configured: Select products (block listed) and Customer email (is equal to)
How to translate the texts there to another language?
After finishing the setup, click Save.
You have finished the Lock setup part. Now to officially activate the lock rule at checkout page, you have to add Sami B2B Lock to your Shopify Checkout page.
Go to Shopify Settings > Checkout > Scroll down to the bottom of the page > Checkout rules > Add rule:


Click Validation to complete the checkout rules:


Turn on the validation:


The configuration is completed. You can check the result in the front store now.
Last updated
Was this helpful?