Setting up cart/checkout validation with Locksmith
Learn how to set up a cart/checkout validation in Shopify using Locksmith. This feature ensures that products tagged with a specific product tag cannot be purchased without a specific customer tag.
Prerequisites:
You must have the Locksmith app installed.
Your products should be tagged appropriately in Shopify.
You'll want to have customer tags set up for specific customers.
Step 1: Navigate to Checkout Rules in Shopify
Scroll down to the bottom of the Checkout settings to find the Checkout rules section.
Click Add rule:
Step 2: Add rule:
From the dropdown list, select Require customer tag to purchase specific products. This rule will restrict purchases based on product and customer tags.
In the Product tag field, add the product tag you want to use (e.g.,
nobots
).In the Customer tag field, add the customer tag that will allow the product to be purchased (e.g.,
notabot
).Save your changes:
Click the Turn on button to enable the rule:
You should be all set. :) Don't forget to test using a private browsing session to ensure the rule is working: How to use a private browsing session
Last updated