RuffRuff Order Limits

Customer Rule

This explains the settings for customer rules and how they evaluate login status, customer tags, customer metafields, and email domain.

Customer rules let you restrict which customers can purchase eligible items based on conditions. You can combine login status, customer tags, customer metafields, and the order email address to set up member-only sales, restrictions on specific customers, and more.

Note: Shopify allows up to 25 active checkout rules per store in total, including rules enabled by other apps. Each enabled customer rule uses one of these.

Field

Description

Title

The name used to identify the rule

Limit details

The conditions for customers who can purchase

Eligible items

The scope of products the limit applies to

Product message

The purchase-condition notice shown on the product page

Alert message

The message and display timing shown when the limit applies

Status

Whether the customer rule is enabled or disabled

This is an administrative name to identify the rule. It is not shown to customers. When creating multiple rules, use a name that makes them easy to distinguish.

Set the conditions for customers who can purchase. When you combine multiple conditions, only customers who meet all of them can purchase.

Set whether logging in to an account is required.

Value

Description

"Require account" is checked

Customers who are not logged in cannot purchase

Unchecked

Guests (not logged in) can also purchase

Note: If you uncheck "Require account," the alert message display timing is fixed to "Checkout only." It is not evaluated on the cart page.

Allow or block purchases based on the customer tags assigned to customers.

Value

Description

Only customers with the tags below are allowed to make purchases

Only customers with any of the configured tags can purchase

Customers with the tags below are not allowed to make purchases

Customers with any of the configured tags cannot purchase

  • When you set multiple tags, they are combined with OR: having any one of the tags is enough to match.

  • Guests (not logged in) don't have customer tags, so if you set allowed tags, they cannot purchase. They do not match blocked tags.

Note: Do not set the same tag for both "allow" and "block." Customers with the tag would match the block condition, and customers without it would fail the allow condition, so no customer would be able to purchase.

Allow or block purchases based on a customer metafield value. Specify the namespace, key, and type, and enter the values to allow or block.

Type

Description

Single line text

Matched by an exact string match

Number (integer)

Matched by an exact number match

True or false

Matched by an exact true/false value

  • Values are matched exactly. Partial matches are not supported. If you want to match multiple values, add each value separately.

  • If you set allowed values, customers without the metafield set cannot purchase.

Note: If you select "True or false" as the type, enter the value in lowercase as true or false. Values such as True or TRUE will not match.

Block purchases based on the domain of the email address entered at checkout. Domains are matched by suffix: setting "example.com" also matches "sub.example.com". You can add Japanese carrier email domains all at once from a preset.

Note: If you use email domain restrictions, the alert message display timing is fixed to "Checkout only." It is not evaluated on the cart page.

Select the scope of products the limit applies to.

Value

Description

All items

All products in the store

Specific collections

Products and variants included in the selected collections (up to 50 collections)

Specific products

The selected products or variants (up to 50 products and up to 50 variants)

Products with specific tags

Products with any of the specified tags (up to 50 tags, OR condition)

Note: If you set eligible items to a collection that includes only some of a product's variants, the purchase limit is evaluated only for the variants included in the collection. The product message, however, is shown on all variants of the product that variant belongs to.

This is the message shown above or below the cart button on the product page of eligible items. Leave it blank if you don't need to notify customers of the purchase condition in advance.

Prerequisite: To show the product message, enable the app embed in your main theme. If you only use customer restrictions in the cart or at checkout, the app embed is not required.

Variables are not available in the product message for customer rules.

Set the message shown when the limit applies, and the display timing. Variables are not available in the alert message either.

Value

Description

Cart updated and checkout

When the cart is updated and at checkout

Checkout only

At checkout

If either of the following applies, the display timing is fixed to "Checkout only".

  • "Require account" is not checked

  • You are using order email address restrictions

A customer rule you create is not applied to the store until you enable it.

Value

Description

Enabled

The limit from the customer rule is applied.

Disabled

The limit from the customer rule is not applied.