• Resolved PAWs FABRIK

    (@pawloui)


    Hi agian,

    Would it be possible to add a message displaying the next open day? For example, if Wednesday and Thursday are closed, could a message appear saying, “We will open again on Friday at 10:00”?

    Could the code look something like this:

    [open_text time_group_separator="|"]
    %if_open_today% %hours_today%
    Message when open.</span>%end%%if_closed_today%We are closed today%if_open_tomorrow%,%space%but we will open again tomorrow at %space% %tomorrow_start% %end%%if_closed_tomorrow%,%space%but we will open again %next_open_day_name_start% %end% at %next_open_day_start% %end% %space% %tomorrow_start% %end% %end%</span>
    [/open_text]
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Noah Hearle

    (@designextreme)

    @pawloui Currently, there are just checks for opening times covering today and tomorrow.

    So, if it is not opening today and not open tomorrow, then you can presume it is a certain day – and then have “We are open again on Friday”. There are no checks or variables available for the day after tomorrow, so you won’t be able to dynamically show the opening hours or the opening time for that day.

    This is something I plan on addressing at some point, but the logic starts to become a lot more complicated or, more specifically, verbose when you introduce more than 2 days.

    With your logic there, I recommend using %else% and nested conditions to ensure the various scenarios are covered.

    I hope this helps resolve your query.

    Thread Starter PAWs FABRIK

    (@pawloui)

    Thanks for the explanation. That makes a lot of sense, and I really appreciate the insight into how the logic works. I totally understand that adding more days would make things more complex.

    It’s great to hear that this is something you plan to address in the future. I’ll look forward to seeing it when the time comes. In the meantime, I’ll explore using %else% and nested conditions as you suggested.

    Thanks again for your help!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Message if closed for more than one day’ is closed to new replies.