Support » Plugin: Pinpoint Booking System - #1 WordPress Booking Plugin » Only Allow Customer to See 3 months ahead in Calendar

  • Resolved kentnerd

    (@kentnerd)


    Hello 🙂

    I only want to give the customer the ability to book 3 months in advance. For example, if the current month displayed on the calendar is February 2020, then they can only book up to May 2020.

    Is there any way to do that?

    I tried looking for filters in the plugin, but there are so many. I also did not find any filters that looked like it would help me accomplish what I want.

    An idea I had was to use jQuery and try to prevent the user from being able to click on the arrow button more than 3 times. Not sure that would even work though…

    (Sorry if this is a duplicate post. I couldn’t find anything that talked about this.)

    • This topic was modified 7 months ago by kentnerd.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • kentnerd

    (@kentnerd)

    I implemented my jQuery solution and it totally worked.

    However, if there is a way to limit advanced bookings through filters and/or the Pinpoint Booking settings, then please let me know (i’m a wordpress dev that’s still learning 🙂

    Plugin Author DOTonPAPER

    (@dotonpaper)

    Hello,

    You can use the option “Stop booking x minutes in advance” from calendar >edit calendar settings.
    Calculate how many minutes are for 3 months and add the number in that field.

    Thank you!

    kentnerd

    (@kentnerd)

    Hi Dot,

    I tried it and it doesn’t work the way I expected it to.

    In Calendars > General Settings, under the section that says “Stop booking x minutes in advance”, I entered 43800 (the total number of minutes in an average month).

    I refreshed the page, and the calendar displayed March instead of February. I then entered -43800, refreshed the page, and the calendar displayed January instead of February.

    Basically, what I was hoping for was an option in the Pinpoint settings that would allow customers to only book appointments within a 3 month time frame starting from the current month. For example, this month is February. I want to allow customers to only make reservations for February + March, April, and May. And that’s it. I don’t want to let them book reservations so far into the future (e.g. June 2020 and up).

    I tested it, and the “Stop booking x minutes in advance” section does not work that way.

    But no worries. My jQuery solution works great 🙂
    I just disabled the > arrow button after the customer clicks on it 3 times. When they click the < arrow button, I re-enable the > arrow button. I keep a “counter” variable the whole time hahaha
    It’s a very amateurish solution, but it works great!

    Thank you so much for being so responsive, as always.
    And thank you for this plugin!

    Plugin Author DOTonPAPER

    (@dotonpaper)

    Hello,

    Indeed, the “Stop booking x minutes in advance” option will allow customers to make reservations only with a certain days/hours in advance. Sorry for misunderstanding your question.

    Anyway, we’re glad that you managed to find a solution.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Only Allow Customer to See 3 months ahead in Calendar’ is closed to new replies.