# Rule-Based Commission

Rule-Based Commission is an affiliate program offers advanced configuration settings where you will find more sophisticated setup options. It is a per-line item choice commission type and it does not apply to the order total.

Store owners who want to implement diverse affiliate strategies can take advantage of the extensive configuration options provided by the rule-based affiliate program.

Additionally, Wprelay provides options to set affiliate commission rates based on product / category.

**Note**: The rule tab will be enabled only after a program is created.

To Create a Rule-Based Commission Type,

* Go to WPrelay dashboard -> Manage -> Create program
* Enter the title and description to create an affiliate program
* Commission type -> rule-based
* Save program

<figure><img src="https://wprelay.com/wp-content/uploads/2024/09/Creating-an-affiliate-program-1-1024x541.png" alt="Creating an affiliate program" height="541" width="1024"><figcaption></figcaption></figure>

(i) To set affiliate commission rates for all products,

* Go to manage -> Rules -> Add Rule
* Enter rule title
* Select ‘All Products’ in the product/category section
* Then choose ‘Fixed’ or ‘Percentage’ according to your commission plan.
* From the conditions, select ‘ All affiliates’ or ‘specific affiliate’ as per your preference.

<figure><img src="https://wprelay.com/wp-content/uploads/2024/09/Setting-affiliate-commission-rates-for-all-products-using-WPrelay-1024x997.png" alt="Setting affiliate commission rates for all products using WPrelay" height="997" width="1024"><figcaption></figcaption></figure>

(ii) To set affiliate commissions for specific products,

* Go to manage -> Rules -> Add Rule
* Enter rule title
* Select ‘ Specific Products’ in the product/category section
* Then choose the products you want to give commission for affiliates from the drop-down
* Set ‘Fixed’ or ‘Percentage’ according to your commission plan.
* From the conditions, select ‘ All affiliates’ or ‘specific affiliate’ as per your preference.

<figure><img src="https://wprelay.com/wp-content/uploads/2024/09/Setting-affiliate-program-commission-rates-for-specific-products-1-990x1024.png" alt="Setting affiliate program commission rates for specific products" height="1024" width="990"><figcaption></figcaption></figure>

(iii) To set affiliate commission rates for All products except a few,

* Go to manage → Rules
* Enter title
* Select ‘All Products Except These’ in the product/category section
* Then choose the products you don’t want to provide commission for affiliates from the drop-down
* Set ‘Fixed’ or ‘Percentage’ according to your commission plan.
* From the conditions, select ‘ All affiliates’ or ‘specific affiliate’ as per your preference.

<figure><img src="https://wprelay.com/wp-content/uploads/2024/09/Setting-affiliate-marketing-commission-rate-for-all-products-except-a-few-using-WPrelay-1024x684.png" alt="Setting affiliate marketing commission rate for all products except a few using WPrelay" height="684" width="1024"><figcaption></figcaption></figure>

(iv) To set commission rates for Specific categories,

* Go to manage → Rules
* Enter title
* Select ‘Specific Category’ in the product/category section
* Then choose the categories you want to provide commission rates for affiliates from the drop-down
* Set ‘Fixed’ or ‘Percentage’ according to your commission plan.
* From the conditions, select ‘ All affiliates’ or ‘specific affiliate’ as per your preference.

<figure><img src="https://wprelay.com/wp-content/uploads/2024/09/Setting-affiliate-marketing-commission-rate-for-specific-category-using-WPrelay-1024x692.png" alt="Setting affiliate marketing commission rate for specific category using WPrelay" height="692" width="1024"><figcaption></figcaption></figure>

(v) To set commission rates for categories except a few,

* Go to manage → Rules
* Enter title
* Select ‘All Categories Except These’ in the product/category section
* Then choose the categories you don’t want to provide commission for affiliates from the drop-down
* Set the ‘Fixed’ or ‘Percentage’ commission type according to your commission plan.
* From the conditions, select ‘ All affiliates’ or ‘specific affiliate’ as per your preference.

<figure><img src="https://wprelay.com/wp-content/uploads/2024/09/Setting-affiliate-commission-rates-for-all-categories-except-a-few-using-Wprelay-1024x689.png" alt="Setting affiliate commission rates for all categories except a few using Wprelay" height="689" width="1024"><figcaption></figcaption></figure>

**Still Unclear ?**

If you need any assistance, please create a [support request](https://wprelay.com/support/) at our ticket system. We are always happy to assist you :)


---

# 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.wprelay.com/manage-affiliate-marketing/program/commissions/rule-based-commission.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.
