Set shipping rates to specific days during the week or to a specific time of day
Using our template language, we can customize when to show a shipping rate in numerous ways. One is to only show the rate on a particular day of the week or even at a specific time of day.
Sometimes it may be necessary to create a limit to when a shipping rate should be available to customers in checkout. This can be created in Webshipper using conditions on the shipping rate.
To use this feature, enable "Advanced" expressions for a shipping rate.
Here you need to use the WEL variables:
and hour_of_day (from 0 to 24)
and day_of_week (1 to 7, starting with Monday)
price = 499 and price <=>= 0 and
and day_of_week in 5 and hour_of_day in 12-24
and day_of_week in 1-5 and hour_of_day in 12-24</=></=>
In the example above the rate will only be shown when:
- the checkout price exceeds 499
- in zip codes 1000-4999 (learn more about zip codes here)
- on Fridays between 12 noon and midnight
See the examples below:
Define by days
Only on weekends:
Only on weekdays Monday to Friday
Define by day and time
From midnight to noon Friday
From noon to midnight Friday