The Booking & Appointment Plugin for WooCommerce helps you provide resources on your store with Variable Subscription product type.
For this, you will need the WooCommerce Subscriptions plugin.
You can provide resources for different booking types offered by the Booking plugin. Let’s look at an instance of using resources for the Booking type ‘Fixed Time’.
a) Booking Type: Fixed Time
Start by creating a variable subscription product titled ‘English lessons for kids.’
Under the product data, choose Variable subscription & add your custom product attributes.
Give them a Name & different Values as shown below:
Attributes tab
After saving them, move to the Variations tab & add the prices for the subscription of your different attributes.
For example:
$50/month for 3 months & $10 sign-up fee for Grammar
$70/month for 3 months & $10 sign-up fee for LSRW Skills
$60/month for 3 months & $10 sign-up fee for Creative Writing.
Variations tab
Once done, click the ‘Save changes’ button and move to the Booking meta box.
Enable Booking & choose your Booking type as Fixed Time under the General settings tab as shown below:
General tab in the Booking meta box
Next, move toward the Availability tab and enter the days & timeslots.
Enable bookings from Mondays to Fridays
Availability tab in the Booking meta box
Add the timeslots from 9 am to 10 am & 10 am to 11 am as shown below:
Availability tab in the Booking meta box
Go to the Resources tab next and enable the module. Add the Label Teacher.
Scroll down and add your Resources Ajay and Kinjal along with their prices. Click the Save Settings button.
Resource tab in the Booking meta box
Lastly, publish the product.
Now go to the Edit Resource pages of the respective resources to ensure that they are available from Mondays to Fridays.
Do this by following the pathway Booking & Appointment > Resources > View Resource > Ajay and Kinjal.
Select Range of Days under Range Type and make it bookable from Mondays to Fridays.
Here’s how both the edit pages of the resources will appear:
Edit Resource page for Ajay
Edit Resource page for Kinjal
Don’t forget to click the Update Resource button for both.
Frontend view
Here’s how your published Variable Subscription product will appear on the front end.
The first one is the Grammar variable subscription:
Product page when subscription variable ‘Grammar’ is selected
The second one is the LSRW Skills variable subscription:
Product page when subscription variable ‘LSRW Skills’ is selected
Lastly, you have the Creative Writing variable subscription:
Product page when subscription variable ‘Creative writing’ is selected
Let’s go ahead by choosing the Creative writing option. This would mean that you will be charged $60/month.
At the Checkout Page, you will pay $60 + $10 (sign-up fee) = $70.
You can select the Resource – Kinjal. For this resource, you will be charged $15.
This would make your subtotal $85.
You can select your booking dates & time slot as 18th June 2021, 9 am to 10 am.
Here’s how our selection will appear on the product page:
Product page with all the booking details filled in
After adding it to the cart, here’s how it will appear with your Resource, Booking Time, Start Date, and Price:
Cart Pages
Finally, here’s how the Checkout Page will be displayed:
Checkout Page
In this manner, you can make your resources compatible with the Variable Subscription Product Type.