> For the complete documentation index, see [llms.txt](https://docs.samita.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.samita.io/order-limit/order-limit-rules/create-new-order-limit/set-customer-conditions.md).

# Set customer conditions

Samita Order Limit allows you to control who a rule applies to by using customer conditions. This means you can apply different order limit rules to wholesale customers, logged-in users, guest users, or any custom customer segment defined by tags.

Use this guide to set up the customer-based targeting for your order limit rules.

***

### 🎯 Why Use Customer Conditions?

Customer conditions help you create personalized or restricted shopping experiences. For example:

* Apply minimum order amounts only for wholesale customers
* Prevent guest users from bulk ordering certain products
* Offer more flexible limits for logged-in or VIP customers

***

### 👣 How to Set Customer Conditions

When creating or editing a rule:

1. Open the Samita Order Limit app in your Shopify admin
2. Click on an existing rule or click **Create new order limit rule** button
3. Scroll to the  **Customer conditions** section
4. Under Customers, choose your targeting criteria:

***

#### 1. All Customers (Default)

* Simply select All customer options to apply the rule to all customers in your store.

#### 2. Based on Customer Tags

* In the "Customer tags" field, enter one or more tags that match your target group
* Only customers with these tags will be affected by the rule

📝 Example:\
To apply a rule only to wholesale customers, enter **Wholesale** as the tag.

<figure><img src="/files/QbQtfunfMGX0rQqYsFO3" alt=""><figcaption></figcaption></figure>

💡 Tip: Customer tags can be added in Shopify admin under Customers > \[Select customer] > Add tags

<figure><img src="/files/22kI03t3nTYcA4iRoXtO" alt=""><figcaption></figcaption></figure>

#### 2. Logged-in vs Guest Users

* Toggle the “Apply to Customers” option to select:
  * Logged-in customers only
  * Guest Users only

This is useful if you want to restrict access or apply different rules depending on whether the customer has logged into their account.

<figure><img src="/files/WcnFEyktMDEzB7lqDBKL" alt=""><figcaption></figcaption></figure>

📝 Example:\
Limit orders to 1 item only for guest users, while allowing logged-in users to purchase more.

***

### 🔎 Testing Customer-Based Rules

To verify the rule works:

* Use a test customer account with the correct tag or login status
* Try placing an order that meets and breaks the rule
* Confirm that the app properly blocks or allows the checkout

***

Need help with customer segments or setup? Contact our support team at <support@samita.io>. We’re here to assist!


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.samita.io/order-limit/order-limit-rules/create-new-order-limit/set-customer-conditions.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
