Feature Pack 5 or later

Date Condition

Use this condition in a price rule if you need to add a condition based on date and time. This condition defines the start date and end date, the days in the week and time of day when the date condition is effective. For example, you might want to create a condition where the discount applies at midnight for a midnight madness sale.

Use this price rule condition to create specific times and dates for a discount. You can create a weekly discount, or a discount for a special time. For example, you can create a discount for midnight madness sale that begins at 11:00 pm and ends at 2:00 am.

Date condition defines a price rule with two branches.
  • Branch 1: A date condition gives a 10% off discount on Sunday from 1:00-2:00 pm
  • Branch 2: No condition, no discount.
If the shopper purchases products on Sunday between 1:00 and 2:00 pm, they receive the 10% off discount.

If the start time is later than the end time, the day of the week needs to be interpreted differently. For example, the end time is 2:00 am and the start time is 11:00 pm, If the discount is to start at 11:00 pm on Wednesday and ends at 2:00 am on Thursday, the condition must be evaluated to TRUE.

This condition allows either the parameters to be passed from a pricing service request or a runtime system time.

How the Date Condition works in a price rule

To create a Date Condition price rule:
  • Open the Catalog Filter and Pricing tool.
  • Create a price rule, or open an existing price rule.
  • Add a condition branch to the rule.
  • On each path of the branch, add Date Condition.
  • Define the flows after the branch to make the price rule complete.
  • The price rule is defined.
  • Save the price rule.