• Resolved Sturge08

    (@sturge08)


    Hi,

    When the forecourt opening times differ from the normal hours of Monday to Friday, 10:00 AM to 5:00 PM, such as on Saturday and Sunday, the opening times displayed do not accurately reflect what is inputted in the backend.

    As shown, the screenshot was taken at 8:28 AM on Sunday morning, and the opening hours for Sunday are 10:00 AM to 4:00 PM, not 5:00 PM.

    The backend inputted times are:

    Please can you point out where I might be going wrong with the backend settings?

    Regards,

    Rob

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Noah Hearle

    (@designextreme)

    @sturge08 Please can you share the entire conditional text Shortcode and contents?

    I think you may have the wrong replacement string in there.

    Thread Starter Sturge08

    (@sturge08)

    Hi,

    The shortcode is:

    [open_text update=”immediate” time_format=”12_colon”]%if_open% Open NOW: %hours_today% %end% %if_closed% Open again: %space% %hours_tomorrow% %end% [/open_text]

    Can you spot something wrong?

    Regards

    Plugin Author Noah Hearle

    (@designextreme)

    @sturge08 The logic you’re using is not correct. If it is Sunday morning and the business is closed, then you don’t want to ignore any potential opening later in the day. Use the logic for %if_open_later% to address this.

    [open_text update="immediate"]
    %if_open%
    Open NOW: %hours_today%
    %else%
    %if_open_later%
    We are open later: %hours_today%
    %else%
    Open again: %hours_tomorrow%
    %end%
    %end%
    [/open_text]
    Thread Starter Sturge08

    (@sturge08)

    Hi,

    Thank you for your help.

    We’ve made a test page to try out your suggestion.

    The shortcode we used is:

    [open_text update="immediate" time_format=”12_colon”]
    %if_open%
    Open NOW: %hours_today%
    %else%
    %if_open_later%
    We are open later: %hours_today%
    %else%
    Open again: %hours_tomorrow%
    %end%
    %end%
    [/open_text]

    For some reason we have hit another problem, it displays in 24-hour time format instead of 12-hour. Do you have any ideas why this might be happening?

    Regards,

    Rob

    • This reply was modified 1 year, 7 months ago by Sturge08.
    Plugin Author Noah Hearle

    (@designextreme)

    @sturge08 The time format parameter is not supported with the [open_text] Shortcode. I will be making some changes in the future to change this – including more individual formatting options for times and dates. Just ensure your general settings are set to 12-hour and the option that appears like 10:00am – 5:30pm.

    If you continue to have a problem, please let me know and I’ll make a note to add new functionality to an upcoming release.

    Thread Starter Sturge08

    (@sturge08)

    Hi,

    We added your shortcode to the original code which was in the header and it worked! So all good. I’m not sure what went wrong with the test snippet.

    Thanks again for your help on this.

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

The topic ‘Displaying incorrect times’ is closed to new replies.