Help CenterContact support
All Checkora: Hide Shipping Method articles

How do I hide a delivery option by day, date or cut-off time?

Updated

On this page
  1. Create the rule
  2. Check it in the simulator
  3. Limits

Rules can check when the buyer checks out: the Day of the week, a Date period that repeats every year, and the Time of day. All three use your store’s time zone, set in Shopify under Settings > General. Typical uses: hide Express after a 14:00 cut-off on Fridays, hide Next day at weekends, or block checkout for a fragile product line during the holiday season.

Create the rule

  1. Open Rules and click Add rule.
  2. Under Conditions, click Add condition and pick a Condition type:
    • Day of the week: tick one or more Days.
    • Date: under Match, choose is one of or is not one of, then enter From (MM-DD) and To (MM-DD), for example 12-20 and 01-06. Both days count, and a period that ends before it starts runs over New Year.
    • Time of day: under Match, choose is before or is at or after, then enter the Time (HH:MM, 24-hour), for example 14:00.
  3. Under Action, choose Hide delivery options or Block checkout, and save the rule.
  4. On the Rules page, under Checkout functions, click Turn on next to Time and address rules. Hide rules with a day, date or time condition run in this function. Block rules keep running in Checkout blocks.

Example: a rule with Day of the week = Friday and Time of day is at or after 14:00, all conditions matching, that hides options whose Title contains Express.

Check it in the simulator

The Simulator has a Date and time section. It starts with your computer’s current date and time; change them to test the moment you care about, for example a Friday at 13:59 and at 14:00. The simulator does not convert time zones, so enter the time as it is in your store’s time zone.

Limits

These limits come from Shopify Functions, which can only hide, rename or reorder delivery options, never add them:

  • Day, date and time conditions work with Hide delivery options and Block checkout only, not with rename or move.
  • A hide rule with a day, date or time condition cannot also check the customer (customer tag, login or B2B company). Split it into two rules.
  • Block checkout works with day and date conditions, not with the time of day.
  • All your hide rules together can use at most two different times of day, for example 12:00 and 14:00.
  • Shopify gives a function the store’s local date and time, not the buyer’s. The cut-off is always in your store’s time zone.

Built and supported by StoreFleet, Shopify app developers since 2021.