---
title: "Open Hours (time-based restriction)"
description: "The Open Hours app allows you to restrict orders from customers based on your store’s operational timings."
url: "https://docs.j2commerce.com/apps/open-hours-time-based-restriction"
markdown_url: "https://docs.j2commerce.com/apps/open-hours-time-based-restriction.md"
last_updated: "2026-10-23T02:33:38+00:00"
version: "J2Store 4"
breadcrumbs:
  - title: "Home"
    url: "https://docs.j2commerce.com/"
  - title: "Apps"
    url: "https://docs.j2commerce.com/apps"
  - title: "Open Hours (time-based restriction)"
    url: "https://docs.j2commerce.com/apps/open-hours-time-based-restriction"
---

# Open Hours (time-based restriction)

The Open Hours app allows you to restrict orders from customers based on your store’s operational timings. You can configure your store’s opening and closing times for all days of the week. This means any orders coming in after closing hours will not be accepted.

Make sure that you set the 24-hour format for time configuration.

## Requirements

[PHP 8.1.0 + Joomla! 4.x/ Joomla! 5.x + J2Commerce / J2Store 4.x + Purchase the App](https://docs.j2commerce.com/apps/open-hours-time-based-restriction#requirements)

[**Step 1:** Go to our](https://docs.j2commerce.com/apps/open-hours-time-based-restriction#requirements) [J2Commerce website](https://www.j2commerce.com/extensions) > Extensions > Apps

**Step 2:** Locate the Open Hours App > click View Details > Add to cart > Checkout.

**Step 3:** Go to your My Downloads under your profile button at the top right corner and search for the app. Click Available Versions > View Files > Download Now

## Install the App:

Go to System > Install > Extensions > Install the app

![Custom Tabs](https://docs.j2commerce.com/images/docs/v4/assets/user-group-3%20%287%29.webp)

## Enable the App

Go to J2Commerce > Apps > search for the Open Hours app

Click on the 'X' under Status to enable it.

![Enable custom tab app](https://docs.j2commerce.com/images/docs/shared/open-hours-enable.webp)

Click on "Open App" or the Title to start setting up the app

![J2Commerce All Apps list searched for "opening", with the Open App button highlighted on the enabled Opening Hours row](https://docs.j2commerce.com/images/docs/shared/open-hours-open.webp)

## Setting up Store Hours:

### Error Message

This is the place to show an error message when the customer places an order outside the store’s operational hours.

Enter your custom error message here. You may also enter a language string and write a language override.

For eg: Sorry! Orders are accepted only after %s and before %s. The first %s will be from time and the second %s will be to time in the below configuration.

![Opening Hours app, Basic tab, with the note about restricting orders and the Closed Store Message field showing a language constant](https://docs.j2commerce.com/images/docs/shared/open-hours-error.webp)

### Available Store Hours

For instance, if your store’s operational timing is from 10.00 am to 11.00 pm on weekdays and closed on weekends (Saturday and Sunday), you will have to configure your store timing like below.

**Note:** The above time is configured in a 24 hrs time format. Which means, 11:00 AM is considered as 11:00 and 2:00 PM is considered as 14:00 (12+2). Please make sure you enter the time in a 24-hour format.  
  
**The Timezone this app works in is the timezone you have selected in your Joomla Global configurations.**

**On weekdays**

From time 10.00

To time - 23.00

![oh01](https://docs.j2commerce.com/images/docs/shared/open-hours-times.webp)

Now, if a customer tries to place an order before opening time or after closing time on weekdays, the customer will be displayed with a message informing them that orders cannot be placed right now.

**On weekends**

To set the shop closed on weekends (Saturday and Sunday), you will have to set just 1 minute for Saturday and Sunday. Refer image below,

![oh02](https://docs.j2commerce.com/images/docs/v4/doc-images/apps/open%20hours/oh_02.png)

If the customer tries to purchase on weekends, he will be informed that orders cannot be placed.
