Skip to main content

Change system message after shop is closed

More
12 years 1 week ago - 12 years 1 week ago #173788 by kontakt@friesbureau.dk
-- 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 week ago by kontakt@friesbureau.dk.

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

More
12 years 1 week ago #173789 by Jerome
Hi,

You have to change the line
Code:
$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.
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.243 seconds
Powered by Kunena Forum