RuffRuff Order Limits

(Use Case) Block Sales to Blacklisted Members

This example restricts purchases by customers with the "blacklist" tag and sells to all other customers.

This example restricts purchases by customers with the "blacklist" tag and sells to all other customers. Use it when you want to stop purchases by customers with a specific customer tag, such as those who have caused problems.

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 "blacklist" tag you enter in the customer rule to the customers whose purchases you want to restrict.

You can check the behavior after setup in [Demo] Blacklisted Members Cannot Purchase.

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 without the blacklist tag: purchase is allowed.

  • Logged-in customers with the blacklist tag: purchase is not allowed.

  • Guests (not logged in): purchase is not allowed (because an account is required).

(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 blacklist to "Customers with the tags below are not 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 blacklist tag, while logged in without the tag, and while logged out.

  • If you uncheck "Require account," guests (not logged in) can also purchase, but the display timing is fixed to "Checkout only" and is not evaluated on the cart page. Guests don't have customer tags, so they are not subject to the blocked tag check.

  • If you set multiple tags to block, customers with any one of them cannot purchase.

  • Variables cannot be used in the product message or alert message for customer rules.