Introduction #
Shop Conditions allow you to control when a promotion should be available based on the current date and time.
Unlike Customer Conditions and Purchase History Conditions, which evaluate customer information, Shop Conditions evaluate the current environment of your store.
Shop Conditions are commonly used for:
- Flash sales
- Weekend promotions
- Holiday campaigns
- Seasonal offers
- Happy hour discounts
- Limited-time promotions
These conditions help automate promotions without requiring manual activation and deactivation.
How Shop Conditions Work #
When a customer visits your store, Ezhance evaluates the current date and time against the configured Shop Conditions.
If all configured Shop Conditions pass, the promotion becomes eligible.
Example:
Shop Condition:
Current Day = Saturday
Today:
Saturday
Result:
The promotion applies.
If today was Tuesday, the condition would fail and the promotion would not be available.
Quick Example #
In this example, we will create a weekend sale.
Promotion Type:
- Cart Discount
Discount:
- 15% Off
Shop Condition:
- Current Day = Saturday OR Sunday
Result:
Customers receive a 15% discount only during weekends.
Available Shop Conditions #
Ezhance provides several Shop Conditions.
Current Date #
Evaluates the current store date.
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:
- Current Date is after January 1st
- Current Date is before December 31st
- Current Date is in range November 25th to November 30th
Common Use Cases:
- Holiday promotions
- Seasonal campaigns
- Limited-time offers
Current Time #
Evaluates the current store time.
Supported operators include:
- Is Before
- Is After
- Is On
- Is Not On
- Is In Range
Examples:
- Current Time is after 9:00 AM
- Current Time is before 5:00 PM
- Current Time is between 6:00 PM and 10:00 PM
Common Use Cases:
- Happy hour discounts
- Lunch specials
- Evening sales
Understanding Date Operators #
Date-based Shop Conditions support both absolute and relative date comparisons.
Absolute Date Operators #
Absolute operators compare against a specific date.
Available operators:
- Is Before
- Is After
- Is On
- Is Not On
- Is In Range
Example:
Current Date is in range:
November 25, 2026
to
November 30, 2026
Result:
The promotion only runs during Black Friday week.
Relative Date Operators #
Relative operators compare using a duration.
Available operators:
- Is Within Last
- Is Not Within Last
- Is More Than
- Is Less Than
Example:
Current Date is within last:
7 Days
Result:
The condition evaluates relative to the configured timeframe.
Relative operators support:
- Hours
- Days
- Weeks
- Months
- Years
Current Date Examples #
Black Friday Promotion #
Condition:
Current Date is in range:
November 25th to November 30th
Result:
Promotion automatically activates during Black Friday week.
Christmas Sale #
Condition:
Current Date is on:
December 25th
Result:
Promotion runs only on Christmas Day.
Seasonal Promotion #
Condition:
Current Date is after:
March 1st
AND
Current Date is before:
May 31st
Result:
Promotion runs throughout the spring season.
Current Time Examples #
Happy Hour Sale #
Condition:
Current Time is in range:
6:00 PM to 9:00 PM
Result:
Promotion only applies during happy hour.
Morning Promotion #
Condition:
Current Time is before:
12:00 PM
Result:
Promotion is available only before noon.
Evening Discount #
Condition:
Current Time is after:
5:00 PM
Result:
Promotion becomes active after business hours.
Shop Conditions vs Promotion Schedule #
A common question is:
Should I use Shop Conditions or Promotion Schedule?
The answer depends on your goal.
Promotion Schedule #
Promotion schedules control when the promotion exists.
Examples:
- Start Date
- End Date
If the promotion is outside its schedule, Ezhance does not evaluate it.
Shop Conditions #
Shop Conditions are evaluated every time a customer visits the store.
Examples:
- Current Date
- Current Time
They allow more advanced and flexible timing rules.
Example:
Promotion Schedule:
January 1st to December 31st
Shop Condition:
Current Time between 6:00 PM and 9:00 PM
Result:
The promotion exists all year but only activates during the specified hours.
Combining Multiple Shop Conditions #
Multiple Shop Conditions can be combined together.
Example:
Current Date is in range:
November 25th to November 30th
AND
Current Time is after:
6:00 PM
Result:
The promotion only applies during evening hours of Black Friday week.
This allows highly targeted promotional schedules.
Common Use Cases #
Flash Sales #
Condition:
Current Time is in range
Example:
2-hour promotional campaigns.
Black Friday Campaigns #
Condition:
Current Date is in range
Example:
Holiday sales and shopping events.
Weekend Offers #
Condition:
Current Date matches weekend schedule
Example:
Special discounts available only on weekends.
Happy Hour Promotions #
Condition:
Current Time is in range
Example:
Evening discounts and limited-time offers.
Seasonal Campaigns #
Condition:
Current Date falls within a seasonal period
Example:
Spring, Summer, Back-to-School, or Holiday promotions.
Best Practices #
Use Promotion Schedules for Long Campaigns #
Promotion schedules are ideal for controlling campaign start and end dates.
Use Shop Conditions for Advanced Timing #
Shop Conditions are best when promotions need to activate during specific dates or times.
Keep Time-Based Rules Simple #
Complex timing structures can make promotions difficult to troubleshoot.
Test Date and Time Conditions Carefully #
Always verify that promotions activate and deactivate when expected.
Common Mistakes #
Confusing Shop Conditions With Promotion Schedules #
Schedules determine whether a promotion exists.
Shop Conditions determine whether it should currently apply.
Creating Overlapping Date Rules #
Multiple date conditions can unintentionally prevent promotions from activating.
Forgetting Time Restrictions #
A promotion may appear inactive simply because the current time falls outside the configured range.
Making Conditions Too Restrictive #
Combining too many date and time conditions can significantly reduce eligibility.

