# WPLoyalty - Discount Rule Integration

**What is the purpose of the "WPLoyalty - Discount Rule Integration" addon?**

The purpose of the "WPLoyalty - Discount Rule Integration" addon is to seamlessly integrate the [Discount Rules for WooCommerce plugin](https://www.flycart.org/products/wordpress/woocommerce-discount-rules) developed by Flycart with the WPLoyalty plugin.

Once you install and activate this addon, you gain the ability to utilize the Levels created in WPLoyalty within the Condition/Rules section of the Discount Rules for WooCommerce plugin. This integration empowers you to provide permanent discounts to customers based on their specific levels.

**For instance,** **customers in the Platinum Level can enjoy a 10% storewide discount on all their orders.**

If you require additional integrations or have inquiries about the Discount Rules for WooCommerce plugin, please don't hesitate to contact our [Support Team](https://wployalty.net/support/).

This user guide provides detailed instructions on how to apply level-based discounts for customers in WPLoyalty within your WooCommerce store.

[**To download the "WPLoyalty - Discount Rule Integration" addon, Click Here.** ](https://wployalty.net/add-ons/discount-rule-integration/)

Once downloaded, install and activate the add-on.

{% hint style="info" %}
Before proceeding further, make sure you have already installed and activated the WPLoyalty PRO and free version of the [Discount Rules for WooCommerce plugin](https://wordpress.org/plugins/woo-discount-rules/). Please note that certain scenarios discussed below may require the PRO versions of both plugins.

[Get WPLoyalty PRO](https://wployalty.net/pricing/)&#x20;

[Get Discount Rules PRO](https://www.flycart.org/products/wordpress/woocommerce-discount-rules)
{% endhint %}

\
Let’s get started,&#x20;

**Step 1: Creating Level in WPLoyalty :**&#x20;

**Let’s create three levels in WPLoyalty for example:**

* Silver Level Customers&#x20;
* Gold Level Customers&#x20;
* Platinum Level Customers&#x20;

[To learn the step-by-step configuration for creating Levels, please Click Here. ](https://docs.wployalty.net/customers-levels-and-vip/creating-levels-badges)

**Step 2: Creating rules in Discount Rules for WooCommerce using the additional condition "Customer Level" :**&#x20;

**Example scenario: Platinum Level customers will get 10% storewide on all orders.**&#x20;

This scenario illustrates how to provide 10% storewide on all orders only for customers in Platinum Levels. This type of discount encourages customers to move up to the next level and increase sales.&#x20;

[Click here to know more about how to offer store wide discounts. ](https://docs.flycart.org/en/articles/3788550-product-adjustment)

To create this rule in Discount Rules for Woocommerce plugin, follow these steps

**Creating a Discount Rule:**

* Go to WordPress dashboard -> Woocommerce -> Woo Discount Rules -> Click on “Add New Rule” button
* Select the discount types as “Product adjustment”, since we are offering store wide discount (you can also choose other discount type like cart adjustment or bulk discount based on your requirement)&#x20;

**Here is the screenshot of the rule configuration that follows,**

<figure><img src="https://103140889-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FS9c8SKH3fobHhx7SjaLW%2Fuploads%2F86mhAxqCnGMiu4stl6w0%2Fscreenshot-localhost-2023.05.17-22_14_57.png?alt=media&#x26;token=ca50ec21-b74e-4c6e-ba05-72defe8ef548" alt="Cart Adjustment"><figcaption></figcaption></figure>

**Details of configurations are:**

* Choose "All Products" (storewide) from the filter options. You also have options like specific Categories, selected Products, Attributes, Tags, Sku’s and so on… You can choose the option depending upon your requirement.
* Set the discount type to a 10% percentage discount. You also have options to choose Fixed discount or Fixed price per item
* Include “Customer Level” as additional condition and add the “Platinum” Level  here
* Click on “SAVE” once you have successfully created the rule.

Now, customers who belong to the Platinum Level in WPLoyalty will receive a 10% discount on all products in the store. <br>

Similarly, separate rules can be created for customers in different levels, such as 5% off for Silver and Gold level customers, 10% off for Platinum level customers, 15% off for Diamond level customers, and so on. This ensures that customers in each level receive discounts based on their respective levels.

{% hint style="info" %}
Please note that the free pack of the Discount Rules for Woocommerce Plugin is sufficient to create the product adjustment rule. However, if you are interested in advanced features, you can consider upgrading to the [Discount Rules PRO version](https://www.flycart.org/products/wordpress/woocommerce-discount-rules).
{% endhint %}

**Refer this video for better understanding of Discount Rules Integration addon by WPLoyalty:**&#x20;

{% embed url="<https://youtu.be/H0WmKbmuilE>" %}

**You may also want to check out these helpful guides:**

* [Learn more about offering tiered discounts based on levels by clicking here.](https://docs.wployalty.net/customers-levels-and-vip/creating-tiered-levels-vip-customer-rewards)
* [Check out our cool feature, Launcher Widget.](https://docs.wployalty.net/add-ons/wployalty-launcher)
* [Discover more about our Referral Program by clicking here.](https://docs.wployalty.net/quick-start-guides/creating-a-referral-program)
* [Find out how to award customers points using a simple Point for Purchase Campaign.](https://docs.wployalty.net/campaign-types/points-for-purchase)
* [Learn about our simple reward program, Point Conversion.](https://docs.wployalty.net/reward-types/points-conversion)

\
**Still Unclear ?**

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


---

# 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.wployalty.net/add-ons/wployalty-discount-rule-integration.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.
