• Hi, I am working on a site where I have an issue setting the opening hours.

    The opening hours are like this:

    • Monday to Wednesday 12:00 – 00:00
    • Thursday & Sunday 12:00 – 01:00
    • Friday & Saturday 12:00 – Late

    I know that “Late” isn’t an option, but it is possible to only set the start time and have it displayed as “From 12:00”, so I entered this:

    And the result is this

    I expected it to show “From 12:00” for friday and saterday, but it pics up the closing time from the thursday.

    Is there a way to fix that?

    Thanks
    JP

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support jaysupport

    (@jaysupport)

    Hi JP,

    You cannot set your closing time to 00:00 or later, as this indicates a closing time earlier than your opening time, resulting in no visible times. The latest possible closing time is 23:45. If you are open past this time, please create a separate scheduling rule (e.g., from 00:00 to 02:00).

    Yes you can, you see in the screenshot that it is open up to 01:00.
    But that is not the problem. The problem is that there is no end time for fr+sa and that it still shows 01:00.

    Here is screenshot from my test site. You see that the first one has no end time and the others go past 00:00 without a problem. The sunday however has no closing time, like the monday, but it copies the 23:00 closing time from the previous day. And that’s the problem I am reporting here. I explicitly used 23:00 for the previous day to show that the issue is unrelated to a closing time past 00:00.

    Plugin Support jaysupport

    (@jaysupport)

    This is all happening because, as mentioned, you have set closing times past 23:45. You cannot set closing times past 23:45. If you set a closing time past then, as mentioned, it indicates a closing time earlier than your opening time, resulting in no visible times, and it will mess up the schedule, as you’ve seen. You cannot set a closing time past 23:45 for any scheduling rule. If you make that correction and follow the advice from my first reply, it will correct your issue.

    Well then, here is a screenshot where I have set all closing times at 23:00 except for Monday and Sunday and the issue still exists: Sunday picks up the closing time of the previous day and Monday doesn’t do that because there is no previous day.

    Plugin Support jaysupport

    (@jaysupport)

    First of all, we’ve been assuming that your issue is with the reservations plugin and booking times, since you are posting the forum for the reservations plugin, so we’ve been trying to figure out what you’re even trying to do. Because we thought your issue was with the reservations plugin, that is why we’ve been saying you can’t have a closing time that is past 23:45. Because it would mess up the time picker and not display any available booking times. Now, from the looks of it, it seems as though you have perhaps just posted in the wrong forum and have no issue at all with the reservations plugin, but just with the contact card in the business profile plugin. Is this correct?

    Anyway, in the business profile plugin, you have to set both an open and close time for each scheduling rule. I know it’s possible to clear the field and save it as such, but it isn’t designed to be used that way. So you would need to choose a closing time and update your scheduling rules to reflect the hours you want.

    If it would help, in a future update, we can look into adding an option to the time picker called “custom” or something like that, with an associated input to specify the text you want for that option.

    Oops I am sorry for that mistake, yes this was supposed to go in the support forum of your business profile plugin. Sorry for that. Do you want me to repost in the correct forum?

    The original developer of the business profile plugin has for sure designed the plugin for use cases with just an open time and no/flexible closing time as well as just a closing time and no/flexible opening times.

    There is no need to add a custom option in the time picker to show a custom text because the plugin already contains text labels for situations where the start or open time is empty. See this code on line 642-644.

    The only thing that’s wrong is that it doesn’t work correctly if the previous day has a time specified, in which case it uses that time in stead of keeping it unspecified.

    if ( empty( $start ) ) {
    642 $string = sprintf( _x( '%s open until %s', 'Brief opening hours description which lists the days followed by the closing time. Example: Mo,Tu,We open until 9:00pm', 'business-profile' ), $days_string, $end->format( get_option( 'time_format' ) ) );
    643 } elseif ( empty( $end ) ) {
    644 $string = sprintf( _x( '%s open from %s', 'Brief opening hours description which lists the days followed by the opening time. Example: Mo,Tu,We open from 9:00am', 'business-profile' ), $days_string, $start->format( get_option( 'time_format' ) ) );
    Plugin Support jaysupport

    (@jaysupport)

    Ok, thanks for the update. We’ll look into it and see if there is a way to make it work for your use case.

    Thanks, much appreciated!

    Have a nice weekend.
    JP

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.