# Sales Based Group Switching Settings

Once you have enabled the extension, you can see the settings to configure the extension to enable customer group switching based on sales.

* **Auto Assign Groups Based on Order Total**: Enable it to switch customer group based on order total.
* **Switch to Customer Group**: Select the group to switch customers if the set condition for the order total is met. The group will be updated when the customer logs in. Only completed orders will be considered here.
* **Minimum Order Total**: Enter the minimum order total to switch customers to the selected group.
* **Auto Assign Groups Based on Number 0f Orders**: Enable it to switch customer group based on number of orders.
* **Switch to Customer Group**: Select the group to switch customers if the set condition for a number of orders is met. The group will be updated when the customer logs in. Only completed orders will be considered here. The customer must meet the minimum number of completed orders to qualify.
* **Minimum Number of Orders**: Set a minimum number of orders to switch customers to the selected group.

<figure><img src="/files/YQo7kEXtgLi3B0GQiMsz" 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/sales-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.
