Introduction #
Purchase History Conditions allow you to create promotions based on a customer’s previous orders and buying behavior.
While Customer Conditions evaluate customer information such as roles and email addresses, Purchase History Conditions evaluate what the customer has actually done in your store.
Purchase History Conditions are commonly used for:
- First-time customer promotions
- Loyalty rewards
- VIP customer campaigns
- Customer retention offers
- Win-back campaigns
- Product-specific rewards
These conditions help you reward customers based on their relationship with your store.
How Purchase History Conditions Work #
When a customer becomes eligible for a promotion, Ezhance can evaluate their previous order history.
The system can check:
- Whether the customer has ordered before
- How many orders they have placed
- How much they have spent
- When they last ordered
- Which products they have purchased
- Which categories they have purchased from
Example:
Purchase History Condition:
Order Count greater than or equal to 5
Customer History:
7 completed orders
Result:
The condition passes.
If the customer only had 2 orders, the condition would fail.
Quick Example #
In this example, we will create a loyalty reward for repeat customers.
Promotion Type:
- Cart Discount
Discount:
- 15% Off
Purchase History Condition:
- Order Count greater than or equal to 5
Result:
Customers who have placed at least 5 previous orders receive the discount.
Available Purchase History Conditions #
Ezhance provides several Purchase History Conditions.
Has Ordered Before #
Checks whether the customer has previously completed an order.
Available Values:
- Yes
- No
Examples:
Has Ordered Before = Yes
Result:
Returning customers qualify.
Has Ordered Before = No
Result:
Only first-time customers qualify.
Common Use Cases:
- First order discounts
- Returning customer rewards
- Welcome campaigns
Order Count #
Evaluates the number of completed orders placed by the customer.
Examples:
- Order Count greater than 5
- Order Count less than 20
- Order Count between 10 and 50
Common Use Cases:
- Loyalty tiers
- VIP rewards
- Frequent buyer incentives
Total Spend #
Evaluates the customer’s lifetime spending.
Examples:
- Total Spend greater than $500
- Total Spend greater than $5,000
- Total Spend between $1,000 and $2,000
Common Use Cases:
- VIP programs
- High-value customer rewards
- Lifetime value campaigns
Last Order Date #
Evaluates when the customer last placed an order.
Supported operators include:
- Is Before
- Is After
- Is On
- Is Not On
- Is In Range
- Is Within Last
- Is Not Within Last
- Is More Than
- Is Less Than
Examples:
- Last Order Date within last 30 days
- Last Order Date more than 90 days ago
- Last Order Date before January 1st
Common Use Cases:
- Win-back campaigns
- Customer retention programs
- Reactivation promotions
Purchased Products #
Checks whether a customer has previously purchased specific products.
Examples:
- Purchased Product = Coffee Grinder
- Purchased Product = Premium Membership
Common Use Cases:
- Cross-sell promotions
- Product upgrade campaigns
- Accessory recommendations
Purchased Categories #
Checks whether a customer has previously purchased products from specific categories.
Examples:
- Purchased Category = Coffee
- Purchased Category = Accessories
Common Use Cases:
- Category-specific promotions
- Cross-category marketing
- Product recommendation campaigns
First-Time Customer Promotions #
One of the most common use cases is rewarding first-time customers.
Condition:
Has Ordered Before = No
Result:
Only customers placing their first order qualify.
Example Promotion:
10% Off First Purchase
This is often used as a customer acquisition strategy.
Rewarding Loyal Customers #
Purchase History Conditions make it easy to reward your most valuable customers.
Example:
Order Count greater than or equal to 10
OR
Total Spend greater than $1,000
Result:
Long-term customers receive exclusive rewards.
Examples:
- VIP discounts
- Exclusive coupons
- Early access promotions
Using Last Order Date #
Last Order Date is commonly used for customer retention campaigns.
Example:
Last Order Date more than 90 days ago
Result:
Customers who have not purchased recently qualify.
Example Promotion:
“We Miss You” 20% Discount
This encourages inactive customers to return.
Using Purchased Products #
Purchased Products allow highly targeted follow-up promotions.
Example:
Purchased Product:
Coffee Machine
Result:
Customer becomes eligible for accessory promotions.
Example Promotion:
20% Off Coffee Filters
This helps increase customer lifetime value through cross-selling.
Using Purchased Categories #
Purchased Categories work similarly but at the category level.
Example:
Purchased Category:
Coffee Beans
Result:
Customer qualifies for coffee equipment promotions.
This allows broader customer segmentation without targeting individual products.
Combining Multiple Purchase History Conditions #
Multiple conditions can be combined together.
Example:
Order Count greater than or equal to 5
AND
Total Spend greater than $500
Result:
Only customers who meet both requirements qualify.
This allows advanced customer segmentation.
Purchase History Conditions vs Customer Conditions #
Customer Conditions evaluate customer information.
Examples:
- Customer Role
- Customer Email
- Guest Customer
- Account Created Date
Purchase History Conditions evaluate customer behavior.
Examples:
- Has Ordered Before
- Order Count
- Total Spend
- Last Order Date
- Purchased Products
- Purchased Categories
Think of Customer Conditions as evaluating the customer profile, while Purchase History Conditions evaluate customer activity.
Important Note About Guest Customers #
Purchase History Conditions require customer order history.
Guest customers may not have a customer account that can be reliably evaluated.
For best results, Purchase History Conditions should be used with registered customers.
Example:
Guest Customer = No
AND
Order Count greater than or equal to 3
This ensures customer history can be accurately evaluated.
Common Use Cases #
First Order Discount #
Condition:
Has Ordered Before = No
Example:
10% Off First Purchase
VIP Customer Rewards #
Condition:
Total Spend greater than $1,000
Example:
Exclusive VIP discounts.
Frequent Buyer Incentives #
Condition:
Order Count greater than or equal to 10
Example:
Reward long-term customers.
Win-Back Campaigns #
Condition:
Last Order Date more than 90 days ago
Example:
20% Off Return Purchase.
Product Upgrade Campaigns #
Condition:
Purchased Product = Starter Plan
Example:
Upgrade customers to premium products.
Best Practices #
Start With Simple Conditions #
Use a single Purchase History Condition before combining multiple requirements.
Reward Customer Loyalty #
Order Count and Total Spend are excellent indicators of customer value.
Use Last Order Date for Retention Campaigns #
Re-engaging inactive customers can significantly increase repeat purchases.
Combine With Customer Conditions #
Purchase History Conditions become even more powerful when combined with Customer Roles or other customer-based targeting.
Common Mistakes #
Confusing Customer Conditions With Purchase History #
Customer Conditions evaluate customer information.
Purchase History Conditions evaluate previous orders.
Creating Overly Restrictive Rules #
Combining too many requirements may result in very few qualifying customers.
Forgetting That New Customers Have No History #
New customers will not satisfy conditions that require previous orders.
Using Purchased Products When Categories Are Better #
If you want broader targeting, Purchased Categories are often easier to manage than individual products.

