# Display Option Based on Customer Group and Country

## Step 1: Create Option Sets

Start by creating the option set with the specific options (e.g., size, color, warranty) you want to display only to certain customer groups or countries.

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

{% hint style="info" %}
[How to create an option set](/building-options/step-2-create-option-sets.md)
{% endhint %}

***

## Step 2: Assign the Option Set to Products

1. While editing the option set, go to the **Product Selection** section.
2. Select the products where this option set should appear.

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

***

## Step 3: Apply Filters Based on Customer Group or Country

### Customer Group Filter

You have three visibility settings under the **Customer Group** section:

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

**1. All Customers**\
This option set is visible to everyone without any filtering.

**2. Manual**\
Select specific customers manually to display the option set to.

**3. Automated**\
Display the option set based on dynamic rules like customer tags, email, login status, or whether the user is a guest.

**Automated Option Set Display Rules**\
Configure conditions to display the option set only when specific criteria are met.

**Available Conditions:**

* Customer tags
* Customer name
* Customer email
* Logged-in customer
* Guest (non-logged-in customer)

**Condition Matching Options:**

* All conditions must be met
* Any condition can be met

**Example:**

* Rule: Customer tag is equal to "Specials"
  * Only customers with the "Specials" tag will see the option set.

***

### Country Filter

You can control which countries see the option set using country-based rules.

<figure><img src="/files/169LSiL8OY6bqcav6aux" alt=""><figcaption></figcaption></figure>

**1. All Countries (Toggle ON)**

* Option set is shown in all countries by default.

**2. Include (Show only in selected countries)**

* Turn ON the **Include** toggle.
* Select countries where this option set should appear.
* Example: Select United States, Canada → Option set will only appear to users in those countries.

**3. Exclude (Hide in selected countries)**

* Turn ON the **Exclude** toggle.
* Select countries where the option set should not appear.
* Example: Select France, Germany → Option set will be hidden from customers in these countries.

**4. Country Selector List**

* Use the searchable country list to easily find and select countries.
* You can filter by Market or Country tab.

***

## Testing the Setup

1. Use a customer account with the appropriate tags or status.
2. Log in from a specific country (use a VPN for testing if needed).
3. Visit the product page.
4. Verify that the correct option set appears or is hidden, based on the conditions.

***


---

# Agent Instructions: 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:

```
GET https://options-docs-v2.avisplus.io/building-options/step-2-create-option-sets/display-option-based-on-customer-group-and-country.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
