Disable dates in the checkout date picker
In short
Open your Date Picker and add rules under Disabled Date rules: Day of the week for weekends, Specific Date or Date Range for holidays, Dynamic for today or tomorrow. For cut-off times and lead times, use a Custom Liquid Expression.
✓ Applies to
- The Date Picker block
- Advanced and Deluxe plans
✕ Doesn't apply to
- Shopify's own delivery date or local delivery settings
- Limiting how many orders can book the same date
Before you start
- Add a Date Picker block first. See how.
Steps
Open the Date Picker
Open your block under Blocks and click the Date Picker.
Add a rule
Under Disabled Date rules, add a rule. Choose a Type and fill in its fields. Add one rule per thing you want to block.
Save
Click Done, then Save.
For date fields, click the date button and pick a date. It shows today until you do, but nothing is saved until you click one.
Rule types
A date is blocked if any rule matches. Start and end dates are always included.
| Type | Blocks |
|---|---|
| Day of the week | One weekday, every week |
| Specific Date | One date |
| Date Range | Start to end date |
| Date Before | That date and all before it |
| Date After | That date and all after it |
| Dynamic | Current Day, Next Day, Previous Day, or All days before today (includes today) |
| Custom Liquid Expression | Whatever your expression outputs |
Liquid recipes
Output dates (2026-12-25), day names (Saturday), ranges (2026-12-24--2027-01-02, --2026-10-01, 2026-10-01--) or months (2026-12), separated by commas.
Weekends and holidays in one rule
Saturday, Sunday, 2026-12-25, 2027-01-01
Block tomorrow after 12:00 (change 12 to your cut-off hour)
{% assign hour = currentDateTime | date: "%H" %}
{% if hour >= 12 %}
{{ currentDateTime | date: "%s" | plus: 86400 | times: 1000 | date: "%Y-%m-%d" }}
{% endif %}
After 12:00 on Friday, block next Monday
{% assign hour = currentDateTime | date: "%H" %}
{% assign day = currentDateTime | date: "%A" %}
{% if day == "Friday" and hour >= 12 %}
{{ currentDateTime | date: "%s" | plus: 259200 | times: 1000 | date: "%Y-%m-%d" }}
{% endif %}
Two-day lead time
--{{ currentDateTime | date: "%s" | plus: 172800 | times: 1000 | date: "%Y-%m-%d" }}
Each extra day is 86400 more after plus:. Always keep times: 1000.
Check it works
Open checkout. Blocked dates are greyed out and other dates can be picked. To test a cut-off, set it to hour >= 0, check, then put your real hour back.
Good to know
- Dynamic uses UTC time. Liquid uses the buyer’s device clock.
- Buyers can still check out without picking a date.
- There’s no limit on orders per date.
- Liquid supports
assign,if,unlessandfor. Notcapture,caseor JSON.
Not working?
- Liquid rule blocks nothing: output plain values, not JSON like
["Saturday"]. - A date in 1970 is blocked: add
times: 1000. - Wrong day near midnight: use a Liquid rule instead of Dynamic.
Frequently asked
How do I disable weekends? +
Add two Day of the week rules, one for Saturday and one for Sunday. Each rule takes one day.
How do I stop same-day and next-day orders? +
Add a Dynamic rule set to All days before today (this also disables today) and another set to Next Day. For a longer lead time, use the lead-time Liquid recipe on this page.
Can I disable tomorrow only after a cut-off time? +
Yes, with a Custom Liquid Expression. The cut-off recipe on this page disables tomorrow once the buyer's clock passes 12:00. Change 12 to your cut-off hour.
Are the boundary dates included? +
Yes. Date Range disables both its start and end dates, Date Before disables the chosen date too, and Date After disables the chosen date onwards.