> For the complete documentation index, see [llms.txt](https://docs.wployalty.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wployalty.net/guides/purchase-history-conditions-with-examples.md).

# Purchase History conditions with examples

**Purchase history based condition:**&#x20;

This condition will check for the number of orders/ products, which are previously purchased by customers. So if the conditions gets matched, then Points/ Rewards will be given.&#x20;

{% hint style="info" %}
Please note that before proceeding, you must have installed and activated the WPLoyalty PRO plugin. It is important to note that the below discussed Conditions requires the PRO version.

[Get WPLoyalty PRO](https://wployalty.net/pricing/)
{% endhint %}

**The available Purchase History based conditions are:**

* First order
* Last order&#x20;
* Last order amount&#x20;
* Number of orders made with the following products
* Number of orders made
* Number of quantities made with the following products
* Total spent
* Number of orders with order value or count

**Example 1: First order**

Scenario: Get 100 bonus Points if its customer's "**First Purchase**"&#x20;

(go to WPLoyalty -> Campaigns -> choose "**Reward Based on Spending**" campaign -> add additional condition as -> **First order** condition as shown like below)&#x20;

<figure><img src="/files/30y58SYlcCDbijIDTbE1" alt=""><figcaption></figcaption></figure>

**Example 2: Last order** &#x20;

Scenario: Get Free Shipping if the last order is placed within a week.&#x20;

**Step 1:** Creating a "**Free Shipping"** Reward as a Coupon (go to WPLoyalty -> Rewards -> choose Free Shipping)&#x20;

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

**Step 2:** Create a "**Reward Based on Spending**" Campaign and select the Free Shipping Coupon/ Reward here.&#x20;

(go to WPLoyalty -> Campaign -> choose Reward based on Spending -> select the Free Shipping Reward -> add additional condition as -> **Last Order** condition as shown like below)&#x20;

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

**Within Past:** While choosing "Within Past", last order placed within the current week will be taken into consideration.&#x20;

**Earlier than:** While choosing "Earlier than", last order placed before 7 days (before current week) will be taken into consideration.&#x20;

**Example 3: Last order amount**

Scenario:  30% reward if the “last order value” is greater than $500

**Step 1:** Creating a 30% off Reward as a Coupon (go to WPLoyalty -> Rewards -> choose "**Percentage Reward**")&#x20;

<figure><img src="/files/2ZAM0jgSAvsxqoyeDUiP" alt=""><figcaption></figcaption></figure>

**Step 2:** Create a "**Reward Based on Spending**" Campaign and select the 30% off Coupon/ Reward here.&#x20;

(go to WPLoyalty -> Campaign -> choose Reward based on Spending -> select the 30% off Reward -> add additional condition as -> **Last order amount** as shown like below)&#x20;

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

**Example 4: Number of orders made**

Scenario: Place at least 5 orders this month & earn $20 reward

**Step 1:** Creating $20 Reward as a Coupon (go to WPLoyalty -> Rewards -> choose "**Fixed Discount**")&#x20;

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

**Step 2:** Create a "**Reward Based on Spending**" Campaign and select the $20 off Coupon/ Reward here.&#x20;

(go to WPLoyalty -> Campaign -> choose Reward based on Spending -> select the $20 off Reward -> add additional condition as -> **Number of orders made** condition as shown like below)&#x20;

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

**Example 5:** **Number of orders Made following products**

Scenario: Complete at least 3 orders with Hoodies within a week and get a Hoody as free.&#x20;

**Step 1:** Creating a Free Product Reward and choose Hoody as Free (go to WPLoyalty -> Rewards -> choose "**Free Product**")&#x20;

<figure><img src="/files/73z8hUGnA3vkJc0sdoIY" alt=""><figcaption></figcaption></figure>

**Step 2:** Create a "**Reward Based on Spending**" Campaign and select the Free Product Coupon/ Reward in Campaign section.&#x20;

(go to WPLoyalty -> Campaign -> choose Reward based on Spending -> select the Free Product Reward -> add additional condition as -> **Number of orders Made following products** condition as shown like below)&#x20;

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

**Example 6: Number of quantities made with following products**

Scenario: Order at least 10 quantities of Hoodies (in a single or multiple orders) during the current year and earn 500 bonus points.&#x20;

(go to WPLoyalty -> Campaigns -> choose "**Reward Based on Spending**" Campaign -> add additional condition as -> **Number of quantities made with following products** condition as shown like below)&#x20;

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

**Example 7:** **Total spent**

Scenario: Spend over $1000 “during the last 6 months” & get $100 reward only once per customer&#x20;

**Step 1:** Creating $100 Reward as a Coupon (go to WPLoyalty -> Rewards -> choose "**Fixed Discount**")

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

**Step 2:** Create a Reward Based on Spending Campaign and select the $100 off Coupon/ Reward here.&#x20;

(go to WPLoyalty -> Campaign -> choose "**Reward based on Spending**" -> select the $100 off Reward -> add additional conditions as -> **Total spent and Usage Limit as** -> **1** as shown like below)&#x20;

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

We can set Usage Limit as -> 1, so that this $100 off will be given only once per customer in his lifetime.&#x20;

**Example 8: Number of orders with order value or count**

Scenario: Earn 100 points by making at least 5 orders, each with a minimum value of $50, within 6 months.&#x20;

(go to WPLoyalty -> Campaigns -> choose "**Reward Based on Spending**" campaign -> add additional condition as -> **Number of orders with order value or count** condition as shown like below)&#x20;

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

**Note:**&#x20;

* The above conditions are optional and condition get satisfies, then the customers will get Points/ Reward for their purchased products.
* Purchase History condition will get validated only for logged in/ registered users.&#x20;

The above discussed conditions requires PRO.&#x20;

[Click here to purchase WPLoyalty PRO.](https://wployalty.net/pricing/)&#x20;

**Video:**&#x20;

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

Still unclear ?\
Please submit a [support request](https://wployalty.net/support/). We are always happy to assist you :)
