[Skip to main content](#vessel-content)

#   Change system message after shop is closed

##

- **[kontakt@friesbureau.dk](/forum/user/32901-kontakt-friesbureau-dk "View kontakt@friesbureau.dk's Profile")**
- [![kontakt@friesbureau.dk's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar32901.jpg)](/forum/user/32901-kontakt-friesbureau-dk "View kontakt@friesbureau.dk's Profile") Topic Author
- [ Offline](/forum/user/32901-kontakt-friesbureau-dk)

Less More

- Posts: 43
- Thank you received: 1
-
-
-
-

12 years 1 month ago -  12 years 1 month ago [\#173788](#173788) by [kontakt@friesbureau.dk](/forum/user/32901-kontakt-friesbureau-dk "View kontakt@friesbureau.dk's Profile")  *[Change system message after shop is closed](/forum/27-checkout/871992-change-system-message-after-shop-is-closed#173788 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4 -- Browser(s) name and version -- : Latest  Hi Hikasupport  I managed to put in this code to get my shop closed on tuesdays.: if(date('w')==2){$closed = true;}  Nevertheless, the system message just seem to copy the opening hours such as: &quot;The shop's opening hours are 15-23&quot;, even though i closed the shop for the entire day.  Is there some way to customize the system message, to something like: &quot;The shop is closed on tuesday's&quot; ?  Best regards  Carsten")* was created by *[kontakt@friesbureau.dk](/forum/user/32901-kontakt-friesbureau-dk "View kontakt@friesbureau.dk's Profile")*

-- HikaShop version -- : 2.3.3
-- Joomla version -- : 3.3.3
-- PHP version -- : 5.4
-- Browser(s) name and version -- : Latest

Hi Hikasupport

I managed to put in this code to get my shop closed on tuesdays.: if(date('w')==2){$closed = true;}

Nevertheless, the system message just seem to copy the opening hours such as: "The shop's opening hours are 15-23", even though i closed the shop for the entire day.

Is there some way to customize the system message, to something like: "The shop is closed on tuesday's" ?

Best regards

Carsten

Last edit: 12 years 1 month ago by [kontakt@friesbureau.dk](/forum/user/32901-kontakt-friesbureau-dk "View kontakt@friesbureau.dk's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3MTk5Mi1jaGFuZ2Utc3lzdGVtLW1lc3NhZ2UtYWZ0ZXItc2hvcC1pcy1jbG9zZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 1 month ago [\#173789](#173789) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Change system message after shop is closed](/forum/27-checkout/871992-change-system-message-after-shop-is-closed#173789 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4 -- Browser(s) name and version -- : Latest  Hi Hikasupport  I managed to put in this code to get my shop closed on tuesdays.: if(date('w')==2){$closed = true;}  Nevertheless, the system message just seem to copy the opening hours such as: &quot;The shop's opening hours are 15-23&quot;, even though i closed the shop for the entire day.  Is there some way to customize the system message, to something like: &quot;The shop is closed on tuesday's&quot; ?  Best regards  Carsten")*

Hi,

You have to change the line Code:

$app-&gt;enqueueMessage(JText::sprintf('THE_STORE_IS_ONLY_OPEN_FROM_X_TO_X',$open_hour.':'.sprintf('%02d', $open_minute),$close_hour.':'.sprintf('%02d', $close_minute)));

Which display always the same message so you will display your message depending your conditions.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [kontakt@friesbureau.dk](/forum/user/32901-kontakt-friesbureau-dk "View kontakt@friesbureau.dk's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3MTk5Mi1jaGFuZ2Utc3lzdGVtLW1lc3NhZ2UtYWZ0ZXItc2hvcC1pcy1jbG9zZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.046 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
