• bozemantech

    (@bozemantech)


    Ideally, I would like to block off appointments 2 days ahead of time. But I will settle for stopping the same day. At first, I set the block time to 2880 minutes which was working to block for 2 days. Since then there has been atleast one update to this plugin and a bunch of configuration. I can’t see why this would stop working. If you have any ideas, let me know

Viewing 1 replies (of 1 total)
  • Thread Starter bozemantech

    (@bozemantech)

    Somewhere when get_open_slots is called blocktime is not properly passed down and it resets to the default of 0…

    For now I patched this by changing ./src/logic.php:77
    from
    $block_time = $time_now + $block_before * 60;
    to
    $block_time = $time_now + (int)$this->options->get_option_value('block.time', 0) * 60;

Viewing 1 replies (of 1 total)

The topic ‘Block Time not working’ is closed to new replies.