• Resolved ryandesigned

    (@ryandesigned)


    Hello!

    I have certain special days that have two sets of hours.

    For example, today we are open from 9:00 AM – 6:00 PM and then again from 7:30 PM – 11:30 PM.

    I see how you can add these additional hours while configuring, but is there a way to output each set separately in the shortcode? Specifically on these special days, is there an available shortcode that can produce a simple line of text like:

    DAY HOURS: 9:00 AM – 6:00 PM | NIGHT HOURS: 7:30 PM – 11:30 PM”

    I have tried this shortcode:

    [open_text]%if_open% DAY HOURS: %hours_today% %end%? %if_special_today%? | NIGHT HOURS: %hours_today% %end% %end% [/open_text]?

    However this results in both sets of hours being displayed:

    DAY HOURS: 9:00?AM – 6:00?PM, 7:30?PM – 11:30?PM? | NIGHT HOURS: 9:00?AM – 6:00?PM, 7:30?PM – 11:30?PM”

    Hope that makes sense, but please let me know if I need to clarify further.

    Thanks for the help!

Viewing 1 replies (of 1 total)
  • Plugin Author Design Extreme

    (@designextreme)

    Hello @ryandesigned. This is currently not possible using the replacement text, but thanks for the feature request.

    I have given this a little thought and it would require several new conditions and replacement text.

    Here is an example:

    [open_text]
    %if_open_today%
    	%if_open_today_1%
    		We are open today at %hours_today%.
    	%end
    	%if_open_today_2%
    		We are open during the day at %hours_today_1% and in the evening at %hours_today_2%.
    	%end%
    	%if_open_today_3%
    		We are open during the day at %hours_today_1%, in the afternoon at %hours_today_2% and in the evening at %hours_today_3%.
    	%end%
    %else%
    	We are closed today.
    %end%
    [/open_text]

    I will look into adding this functionality in a future release.

    In the meantime, please look at the structured opening hours on offer – this separates different groups into sub lists allowing for more control using CSS.

    [open structured]
    • This reply was modified 5 months, 4 weeks ago by Design Extreme. Reason: Added last part about [open structured]
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.