This example allows only logged-in customers with the "VIP" tag to purchase the eligible items. Use it when you want to sell exclusively to customers with a specific customer tag, such as VIP members or premium members.
Prerequisite: The initial setup for Customer limits must be complete. If you haven't done this yet, see "Initial Setup (Customer Limits)".
Prerequisite: In the Shopify admin, assign the same "VIP" tag you enter in the customer rule to the customers you want to allow to purchase.
You can check the behavior after setup in [Demo] VIP Members-Only Sale.
When the customer rule is enabled, it checks the customer's login status and customer tags whenever the cart contains an eligible item.
Logged-in customers with the VIP tag: purchase is allowed.
Logged-in customers without the VIP tag: purchase is not allowed.
Guests (not logged in): purchase is not allowed.
(1) Create a customer rule
Open the app admin → "Customer rules" → "Create rule".
(2) Enter the settings
Configure the following.
Field | Value |
|---|---|
Title | Any administrative title |
Customer accounts | "Require account" is checked |
Customer tags | Add VIP to "Only customers with the tags below are allowed to make purchases." |
Eligible items | Products where the purchasing customer is restricted |
Product message | Enter if needed |
Display timing | Cart updated and checkout |
Alert message | Enter if needed |
(3) Save and enable the customer rule
After saving the settings, select "Enable." Saving alone does not apply the customer limit.
(4) Check the behavior
Add the eligible item to the cart, and check the result when the cart is updated and at checkout, while logged in with the VIP tag, while logged in without the VIP tag, and while logged out.
If you set multiple tags to allow, customers with any one of them can purchase.
Guests (not logged in) don't have customer tags, so they cannot purchase even if you uncheck "Require account."
Variables cannot be used in the product message or alert message for customer rules.