# Enable Cost of Goods Deduction

**GoAffPro** provides you with the option to enable the cost of goods deduction for calculating commissions.

{% hint style="info" %}
The cost of goods deduction option lets you deduct the cost of goods before calculating commissions for referral sales. It allows for a more accurate calculation of commissions by accounting for the cost of goods sold.
{% endhint %}

To enable the cost of goods deduction, go to the **Advanced** section in the **Settings** tab of the GoAffPro admin panel.&#x20;

<figure><img src="/files/fUDA3Aripl1eYEpvzyfx" alt=""><figcaption><p>Settings > Advanced</p></figcaption></figure>

Here, go to the Cost of Goods deduction section.

<figure><img src="/files/k5yJAEv8nh2W2v4eg2Ku" alt=""><figcaption><p>Cost of Goods deduction</p></figcaption></figure>

Now, enable the **toggle**.

<figure><img src="/files/Ifo8QoalmOE7o2fQEr5Z" alt=""><figcaption><p>Enable the toggle</p></figcaption></figure>

You will need to **activate** the cost of goods deduction on your store.

<figure><img src="/files/dxKBjUo1XipX86Oiougl" alt=""><figcaption><p>Activate the feature on your store</p></figcaption></figure>

After this, the app automatically takes the costs from Shopify's cost of goods field and deducts them from the product price before calculating the commission.

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

{% hint style="info" %}
Your store products must have an SKU set for this feature to work.
{% endhint %}

{% embed url="<https://youtu.be/HXsC7abMfoU>" %}
Enable Cost of Goods Deduction
{% 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/advanced-settings/enable-cost-of-goods-deduction.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.
