To block Shopify orders outside business hours, define the exact days, times, and time zone when checkout should be unavailable, then configure a time-based validation that rejects orders outside that window. Tell shoppers when ordering reopens and offer another way to get help.
This approach is useful when every accepted order needs immediate staff review, regulated goods may only be sold during staffed hours, or a local operation cannot safely accept unattended orders. It is not a substitute for inventory, delivery-date, or fulfillment-capacity controls.
Should you block checkout or only show a notice?
Use a notice when shoppers may still place an order and wait for the next staffed period. Use a blocking rule only when accepting the order itself would violate an operational or legal policy.
Blocking checkout creates friction and can reduce completed orders. Before enforcing it, consider whether one of these options solves the problem more gently:
- Keep checkout open and state the next processing time.
- Restrict only products that require staff authorization. If the restriction is about one item sharing a cart, use a rule to require that product to be purchased separately.
- Limit same-day delivery rather than all orders.
- Pause a sales channel during a short closure.
If the policy truly applies to order acceptance, document the business reason and the owner who can approve schedule changes.
Define when to block Shopify orders outside business hours
Write the rule as a schedule, including:
- The store time zone used for evaluation.
- Every open day and its start and end time.
- Holidays and one-off closures.
- Whether the exact opening and closing minute is allowed.
- Products, markets, or customers that are exempt.
For example:
| Policy field | Example |
|---|---|
| Time zone | America/New_York |
| Open window | Monday–Friday, 9:00 a.m.–5:00 p.m. |
| Invalid state | Current store time is outside the open window |
| Exception | Wholesale customers tagged approved-24-hour
|
| Shopper correction | Return during open hours or contact support |
Avoid writing “local time” without saying whose local time you mean. The shopper, store, warehouse, and Shopify admin can all be in different time zones.
How to create a time-based CartBlock validation
CartBlock lists time among its supported rule-condition categories. Interface labels and plan availability can change, so confirm the installed rule builder before launch.
1. Create and name the validation
Open CartBlock in Shopify admin, create a validation, and give it a descriptive internal name such as Block checkout outside staffed hours — Eastern time.
2. Add the closed-time conditions
Configure the rule to trigger outside each permitted ordering window. If the interface expresses only valid ranges, invert the schedule carefully. Overnight windows, such as 6:00 p.m.–2:00 a.m., may need separate conditions because they cross midnight.
3. Add any narrow exceptions
Apply product, customer-tag, market, or other conditions only when the installed configuration supports them. Keep exceptions explicit. A broad exception can silently defeat the policy.
4. Write the shopper message
State the schedule, time zone, and next action:
Online ordering is available Monday–Friday, 9:00 a.m.–5:00 p.m. Eastern time. Please return during those hours or contact us for urgent assistance.
Do not show an internal rule name or a vague “checkout unavailable” error.
5. Save and test in a controlled workflow
Test before activating the rule on the live store. Confirm that the message appears only during closed periods and disappears when the store opens.
Business-hours test matrix
| Test | Expected result |
|---|---|
| 1 minute before opening | Blocked |
| Exact opening time | Allowed, according to written policy |
| Middle of open window | Allowed |
| Exact closing time | Matches the documented boundary rule |
| 1 minute after closing | Blocked |
| Weekend | Blocked unless scheduled open |
| Daylight-saving transition | Correct for the store time zone |
| Exempt customer | Allowed only when the exemption applies |
| Express checkout | Same policy outcome as standard checkout |
Also test after changing the Shopify store time zone and from a device in another time zone. The device clock should not unexpectedly control a store-level policy.
Common mistakes
Forgetting daylight-saving time
Use a named time zone where possible, not a fixed UTC offset, and retest when clocks change.
Treating fulfillment hours as ordering hours
If orders can queue safely overnight, explain processing hours instead of blocking checkout.
Leaving holiday closures manual
Maintain a holiday calendar and assign an owner. A weekly schedule does not automatically cover special closures.
Creating a dead-end message
Give the shopper the next opening time or a support path. A clear recovery step reduces confusion.
Troubleshooting a time-based checkout rule
If the rule fires at the wrong hour, first compare the Shopify store time zone, the time zone shown in the CartBlock rule, and the test timestamp. Record all three before changing anything. For an overnight window, test both sides of midnight and the exact boundary minutes.
If a shopper can still complete checkout after closing, repeat the test through the standard cart, cart drawer, Buy now button, and enabled accelerated checkout paths. Shopify explains that cart and checkout validations can enforce requirements before an order is completed; the installed configuration still needs to be tested on the store’s actual surfaces.
For seasonal hours, duplicate the test matrix for the temporary schedule and put a reversal date on the team calendar. This avoids a holiday rule remaining active after normal hours resume.
Example: a staffed specialty-food counter
Suppose the team accepts regulated-item orders from 9:00 a.m. to 5:00 p.m. Eastern time on weekdays. The blocked state is any regulated item outside that window, while ordinary merchandise remains eligible. The message should name Eastern time and the next opening period. Test an ordinary cart after hours, a regulated cart at 4:59 p.m., and that same cart at 5:00 p.m.
Related CartBlock guides
For adjacent policies, see how to require customer login before Shopify checkout and how to create Shopify checkout validation rules.
Frequently asked questions
Can Shopify stop checkout at certain times?
Shopify supports app-based cart and checkout validation. A validation app can use available time conditions to reject an invalid checkout and return a shopper-facing message.
Can I block only one product after hours?
Yes, if the installed rule builder supports combining the relevant time and product conditions. Test unrelated products to confirm they remain available.
What happens to carts created before closing?
The important point is when the validation evaluates the cart. Test a cart created during open hours but submitted after closing, and document the result for staff.
Keep the schedule precise and recoverable
A reliable business-hours rule has a defined time zone, unambiguous boundaries, narrow exceptions, and a message that tells shoppers when to return. Explore CartBlock on the Shopify App Store and verify the current time-based conditions and plan eligibility before activating the rule.

Install Now