New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow users to book maximum x number of events per day - per week - per month per calendar #74
Comments
Hello, This feature has been requested, I add your vote, thank you. I will post a custom code here for reference (you will need to adapt it to your needs, and maintain it) using the bookacti_validate_booking_form hook. The code below allows a logged-in user to book a maximum of 2 distinct events per month, and 10 bookings per month. This code is to be added in your child theme functions.php or with Code Snippets: EDIT:
|
Hi!! |
I would like this feature, too. Will try the code in the meantime. Please add my vote! Thank you. |
|
Thanks for letting me know. Maybe I'll need to find another plugin. |
I have updated the code for Booking Activities 1.9 and more. |
Ho Great job ! |
Sorry I missed your message. Thank you! Yes, you can adapt this code with your own conditions, this is only an example. |
Ok thank you |
I noticed that it won't let you reschedule and throws the same limit message with this code. ($max_bookings_per_month = 1; |
Hello Ray, sorry, this is just an example in the hope to help. You need to customize it to get it working as desired. |
I also need this feature ! will try to figure out custom code in the meantime |
Hello!
This is a great work that you have done here!
I would like to know if using a custom code or perhaps you could include this in an update if useful for others, to be able to block the users from booking more than x number of events per day, per week or per month per calendar
For instance: 1 user can maximum book 2 events a day for calendar A, the same user can maximum book 1 event a day for calendar B, the same user can maximum book 1 event a week for calendar C
This case could be useful in case of subscriptions and not letting people book all the events in a day.
Thank you!
The text was updated successfully, but these errors were encountered: