• Resolved svanboeyen

    (@svanboeyen)


    I was able to configure the TIme Base to 5 minutes in the general settings, but the minimum time per appointment in the services time is still 10 minutes. It’s giving me this error at the top of the page: [Appointments] One of your services is not divisible by the time base. Please visit Services tab and after making your corrections save new settings.

    Is there a work around for this?

    Thanks!

    BTW: Absolutely LOVE the plugin. The amount of user control offered is stunning.

    https://wordpress.org/plugins/appointments/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hey there Scott,

    Glad to hear that you like our plugin 🙂

    Minimum allowed time base setting is 10 minutes. The reasoning for that is setting to lower then that may create additional load in your server.

    If you still want to do this there is a filter in the plugin that we could use to change that, to do this please try adding the following code to the bottom of your theme functions.php:

    function allow_5_min( $min_time ) {
    return 4;
    }
    add_filter( 'app_safe_min_time', 'allow_5_min' );

    This should allow you to set 5 minutes base time for your services.

    Hope this helps 🙂

    Cheers,
    Bojan

    Thread Starter svanboeyen

    (@svanboeyen)

    Bojan,

    Just added this piece of code to the bottom of my functions.php and it made the website crash. I went into c-panel and removed the piece of code to get it back up and running again. Forgive me as I’m not very knowledgable when it comes to php, but could there be something wrong with the piece of code you gave me?

    Thanks,
    Scott

    Hey Scott,

    I tested the code on my sandbox site before I posted it here so the problem should be elsewhere,

    I’m assuming it’s just a syntax error because you most likely placed it outside of php tag.

    So if your functions.php have this at the bottom “?>” please make sure to place the code above that line (this is a closing php tag, you have to place php code inside php tags in order for it to work).

    If it doesn’t help please let me know which theme you’re using so I can try to test that as well 🙂

    Cheers,
    Bojan

    Thread Starter svanboeyen

    (@svanboeyen)

    Bojan,

    It worked perfectly! It turns out that I’m just a Noob when it comes to code.

    Thanks a lot for your help!
    Scott

    Hey Scott,

    Glad I could help 🙂

    Have a nice day!

    Cheers,
    Bojan

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

The topic ‘Adding 5 Minute Service Option’ is closed to new replies.