# Set Commission Calculation Settings

**GoAffPro** provides you with the option to set the commission calculation settings for affiliates.

To set the commission calculation settings for affiliates, go to the **General** section in the **Settings** tab of the GoAffPro admin panel.&#x20;

<figure><img src="/files/ZJpYOsojJSNQCgYx1Fhg" alt=""><figcaption><p>Settings > General</p></figcaption></figure>

Now, go to the Sales section.

![Sales](/files/-MAzTYhtPiwGRuAEtVUK)

### Include discounts

Enable the "**Include discounts**" option. You can adjust the commission calculation by the discount percentage, the discount amount, or a custom percentage. Also, you can create exceptions for coupon codes assigned to affiliates.

Additionally, you can enable the "**Also adjust for automatic store discounts**" option, which would adjust the commissions for automatic store discounts.

{% hint style="info" %}
When the "Include discounts" option is enabled, the commission will be calculated based on the discounted product price rather than the full order amount.

For example, if a customer spends $100 in the store using an affiliate's referral, applies a 10% discount, and the commission rate is 20%, the commission will be calculated on the discounted product price. In this case, the calculation would be: $100 - $10 = $90, and the affiliate's commission would be 20% of $90, which equals $18.
{% endhint %}

![Include discounts](/files/-MDFfrqkycmMn9ICGpeL)

### Exclude shipping and taxes

Enable the "**Exclude shipping and taxes**" option. It can be used to exclude the shipping fee from the commission calculation.&#x20;

![Exclude shipping and taxes](/files/-M4sysWhweIaIlKHt13O)

### Exclude VAT

Enable the "**Exclude VAT**" option. You also have the option to include the VAT in shipping. It is used to deduct the VAT from the product price before calculating the commission on the order.

![Exclude VAT](/files/-M4t6rse2zioUSZl3JLn)

{% embed url="<https://youtu.be/mwbXI1B3fUg>" %}
Set Commission Calculation Settings
{% endembed %}


---

# 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.goaffpro.com/program-settings/setup-referred-sales-settings/set-commission-calculation-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.
