Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi slorduck,

    It’s possible but only in a round-about way. For this to work your Time Interval needs to be set to greater than 15 minutes.

    Then you can set up two rules in the Bookings > Settings > Scheduler > Exceptions setting. One for 2pm-2:15pm and one for 5pm-5:15pm.

    This will result in only the 2pm and 5pm slots being available.

    Thread Starter slorduk

    (@slorduk)

    Hi, thanks for the fast reply. Yes I figured that way of doing it but it’s very important to retain the 15 minute intervals for the restaurant.

    Hi slorduk,

    Are you comfortable making small changes to the PHP files? Normally I wouldn’t recommend it, but in this case you can make a temporary change, set up your rules, then set it back to it’s original state. In this way you’ll be able to accomplish what you what — I think (I haven’t tested it).

    If so, you’ll need to open the /wp-content/plugins/restaurant-reservations/includes/ (code):

    array(
    				'id'				=> 'schedule-closed',
    				'title'				=> __( 'Exceptions', 'restaurant-reservations' ),
    				'description'		=> __( "Define special opening hours for holidays, events or other needs. Leave the time empty if you're closed all day.", 'restaurant-reservations' ),
    				'time_format'		=> $this->get_setting( 'time-format' ),
    				'date_format'		=> $this->get_setting( 'date-format' ),
    				'disable_weekdays'	=> true,
    				'disable_weeks'		=> true,
    				'strings' => $scheduler_strings,
    			)

    Make sure this is the scheduling exception settings (schedule-closed). Add a new line underneath the strings line:

    array(
    				'id'				=> 'schedule-closed',
    				'title'				=> __( 'Exceptions', 'restaurant-reservations' ),
    				'description'		=> __( "Define special opening hours for holidays, events or other needs. Leave the time empty if you're closed all day.", 'restaurant-reservations' ),
    				'time_format'		=> $this->get_setting( 'time-format' ),
    				'date_format'		=> $this->get_setting( 'date-format' ),
    				'disable_weekdays'	=> true,
    				'disable_weeks'		=> true,
    				'strings' => $scheduler_strings,
    				'time_interval' => 5,
    			)

    Make sure the code is exactly like that. A small typo, or uppercase letter, or missing quote mark can cause an error.

    Once you’ve done that, you should be able to go in and set your scheduling exception rules at every 5 minute interval. In this way, you’ll be able to set 2:00-2:05pm and 5:00-5:05pm.

    Hopefully, with those settings, you’ll only see the 2pm and 5pm slots available on that day. If it’s working how you want, you can go back and remove that line you added to the code.

    As long as you never reset those particular scheduling exceptions, they should remain as they are.

    Thread Starter slorduk

    (@slorduk)

    Thank you, that’s very helpful. I won’t try it yet until my client really pushes for the feature but I appreciate you try to help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Several 'sitting' options?’ is closed to new replies.