• Resolved tp911

    (@tp911)


    Hi, we have a schedule like,
    Tuesdays – closed
    Monday,Wednesday, Thursday, Friday – 11.00 – 14.00 & 17.00 – 22.00
    Saturday – 16.00 – 22.00
    Sunday – 11.00 – 22.00

    So, we really want to display messages when store is closed according to our schedule.
    Like,
    Tuesdays- “Store is closed, we will open by tomorrow at 11.00am”
    Monday – “We are closed now, we will open at 17.00 again”

    How can we specify like this?

    Your guidance will be appreciated.

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author bizswoop

    (@bizswoop)

    Store Hours plugin doesn’t have admin settings to show custom store status messages based upon the day of the week. If you would like to build custom daily messages as you described, you could develop this functionality.

    To develop a solution, use the function for the Store status.

    To check if plugin is active
    defined("\Zhours\ACTIVE") && constant("\Zhours\ACTIVE")

    To get current store status
    \Zhours\get_current_status()

    To get schedule for the day
    apply_filters('get_period_schedule_by_day', <day>);
    The day parameter must be ‘monday’, ‘tuesday’ and etc…

    Hopefully these code snippet references will allow you to develop the custom messages you want.

    Thread Starter tp911

    (@tp911)

    Hi, thanks for the reply. Where should i insert this functionality?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Displaying different messages when store is closed’ is closed to new replies.