• Resolved hawaiibeach

    (@hawaiibeach)


    Hi and thanks for your plugin it’s great!

    I have a question for something you to implement. Currently the [open] shortcode displays the current weeks opening hours.

    Let’s say I have open 09:00 – 17:00 all week. But next week in monday it’s temporary closed.

    If I use the [open] shortcode the temporary close day will not appear in the list, which it should.

    The shortcode does not look ahead for temporary closes. I want them displayed if there is any.

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

    (@designextreme)

    @hawaiibeach I am not sure why the temporary closure should appear if it’s not in the current range (e.g. Monday to Sunday for the current week). If the closure occurs in the next week, then it won’t be visible yet, nor should it.

    The seven-day list view is the default. You can alter the start date and end date as you wish. You can also set just the start date and a count for the number of days you wish to show.

    The previous post in this forum covered this exact situation. There are Shortcode parameters that will display the opening hours for the days as required.

    If this hasn’t answered your question, please add a reply here.

    Thread Starter hawaiibeach

    (@hawaiibeach)

    You are wrong and let me explain why the the fastest way: here’s another plugin that does this correctly

    Let’s say I want to display current week (2023-12-25 – 2023-12-31) for my customers. The customers looks at my website on Friday. And on 1 January, we’re closed. Your plugin will not add it to the list.

    This other plugin sees temporary openings ahead and adds them even if they’re not in the current week. It’s very simple to understand.

    What you are recommending is not helping. I don’t want to display openings ahead, ONLY if there’s special opening hours.

    Plugin Author Design Extreme

    (@designextreme)

    You are wrong

    @hawaiibeach It’s not “right” or “wrong”. The plugin responds to what you ask of it and it’s not going to mind-read that you actually want to display more than the default 7 days. I don’t want this plugin to second-guess what business owners want, so I’ve added functionality to allow them to specify exactly what is needed.

    Please follow the advice I’ve listed in the other forum reply. For example, if you only what Special Opening hours, you can use the following:

    [open regular=false special=true start="2023/09/18" end="2023/09/24" day_format="full_date_month_first"]

    As this concerns special opening hours, you can set this to use their own date formatting – see the Shortcode tab for details.

    Or, if you want to have the next week and just the Monday (which happens to closed in this case):

    [open start="2023/09/18" end="2023/09/25"]

    You can always use a pair of Shortcodes, one with the regular and another with special-only opening hours. This will give a similar result to the one mentioned – albeit with two tables.

    Something that I am considering as new functionality is a conditional block to show holiday opening hours for a given time period or X days/months into the future. This will make it easier to give advanced notice to customers without having to set ranges like in the example.

    Now that you’ve mentioned the look-ahead functionality, I may consider a hybrid of regular and special opening hours, with separate date formatting. This is a good idea and would be helpful if well-implemented – so users have a choice to apply this exactly as specified.

    • This reply was modified 1 year, 5 months ago by Design Extreme. Reason: Two shortcodes paragraph
    Thread Starter hawaiibeach

    (@hawaiibeach)

    No I really mean it. You are in fact wrong. Lets say Monday is closed. It is impossible to know!! So the list is useless and am I supposed to change the code for every special opening that is on next week? No!

    Everyone, even you deep down agree with me. Setting hardcoded dates is not it cheif.

    We all need it to look ahead and is very easy to implement. 7 days forward as default.

    Plugin Author Design Extreme

    (@designextreme)

    @hawaiibeach Noted. I will consider this feature request.

    Thread Starter hawaiibeach

    (@hawaiibeach)

    Thank you! It would be awesome

    Plugin Author Design Extreme

    (@designextreme)

    @hawaiibeach I’ve updated the plugin (version 1.52) to have conditional special opening hours.

    This is not exactly what you’ve requested in this thread, but it will go some way to the functionality that you’ve requested.

    See the demonstration website for details.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[open] shortcode with special opening in next week’ is closed to new replies.