465 votes35 comments · WooCommerce » Extension - WooCommerce Bookings · Flag idea as inappropriate… · Admin →
103 votesDavid commented
This feature could then also encourage further use with WooCommerce Memberships & WooCommerce Subscriptions, as this feature would mean an individual could purchase a subscription product which grants them membership that, upon activation of aforementioned membership, block books all classes the membership makes them eligible for, for the next month (or whatever the duration of the membership is). Enabling customers to pay monthly to be able to attend classes, weekly PT Sessions, or driving lessons. If such a feature existed this WooCommerce Bookings and WooCommerce as a whole would be opened up to a world more use cases, as well as making other great extensions from the Woo Themes team even more tantalizing.
I really suggest this one guys, I see from the documentation that it is possible to programmatically create bookings; adding this feature would be effectively just enabling people with little PHP knowledge, or those who just generally avoid coding actions themselves, to now create recurring or block bookings for their customers using whatever far simpler intuitive GUI I'm sure you would create for them to set the bookings up.
I personally don't know PHP but I'm going to guess what this feature may look like coded, so that I actually contribute something somewhat useful to the developers who will read this, other than my purchase..
Example: on frontend customer selects 'recurring booking' checkbox option, they then select the recurrence rules. This may look something like setting up recurrence rules in the Events Calendar plugin by Modern Tribe. So.. https://theeventscalendar.com/content/uploads/2014/12/Screen-Shot-2015-09-02-at-10.47.21-AM-665x365.png and https://theeventscalendar.com/content/uploads/2014/12/Screen-Shot-2015-09-02-at-10.53.57-AM-665x154.png
Or this could be used as inspiration for the bank end design for setting up recurrence or block booking ‘packages’
After this is selected, let’s say the user chose a start date of today so.. (2016-10-08 20:00 – 21:00) and end date of 2.5 months from now so they get 10 weeks of this bookable product at this time, then for recurrence rules selects every week. Then the code could be something like..
For booking in range (start-date, end-date, 1 week):
create_wc_booking( $product_id, $new_booking_data = array(), $status = 'confirmed', $exact = false )
$defaults = array(
'product_id' => $product_id, // Booking ID
'start_date' => '',
'end_date' => '',
'resource_id' => '',
And then maybe create some kind of parent booking or order or special unique tag, so if the entire block needs to be deleted, or replaced it can be done so in one hit,
And then to put the cherry on the cake if one booking could be broken from the series, let’s say the student or teacher is ill and therefore desires to reschedule just that one booking for the next day.
Kinda wish I worked at WooThemes or actually just knew PHP I would try and code this stuff and put it on github as a mini-extension or something.
But this plugin has got a heck of a lot of potential, people pay so much for solutions that don’t even touch this. This feature, and some of the others I’ve seen on ideas.woothemes.com are just killer. I’ve become a little carried away in this comment aha, it’s become a little long
Good luck guys