Change system message after shop is closed

  • Posts: 43
  • Thank you received: 1
10 years 7 months ago #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: "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: 10 years 7 months ago by kontakt@friesbureau.dk.

Please Log in or Create an account to join the conversation.

  • Posts: 26242
  • Thank you received: 4036
  • MODERATOR
10 years 7 months ago #173789

Hi,

You have to change the line

$app->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 & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: kontakt@friesbureau.dk

Please Log in or Create an account to join the conversation.

Time to create page: 0.054 seconds
Powered by Kunena Forum