# Product Based Group Switching Settings

Here you can find settings to configure the extension to enable customer group switching based on products.

* **Auto Assign Groups Based on Products:** Enable it to switch the customer group based on products.
* **Switch to Customer Group:** Select the group to switch customers if the set condition for products is met. The group will be updated when the customer logs in. Only completed orders will be considered here.
* **Enter Product IDs:** Enter comma-separated product IDs to switch customers to the selected group. If the customer purchased the entered product ID, then the group will be assigned.

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


---

# 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://docs.magecomp.com/magento-2-auto-customer-group-switching-extension/product-based-group-switching-settings.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.
