1. Home
  2. Booking & Appointment Plugin for WooCommerce – NEW
  3. Resources
  4. Validation messages for Resources

Validation messages for Resources

With the Booking & Appointment for WooCommerce, a single resource can offer multiple services, but not simultaneously. Thus, understanding how validations apply to these resources is crucial.

Let’s dive into how resource validations work to ensure seamless service scheduling and avoid overlaps.

You have added the Resource – Kinjal to all 3 examples of different booking types explained here.

Let’s see how the availability of this resource appears in the booking calendar for the customers to select and how they are restricted to different services for the same day.

There are 2 types of validations:

1. Availability message validation

2. Cart Page validation

1. Availability message validation

The Availability message gives information about the product’s availability based on the chosen booking details. It is displayed above the booking field.

INSTANCE 1

Let’s say that a customer has already added the bookable product to the cart. They revisit the product page and select the same resource and booking details. 

The availability notification message will show ‘The booking is already added to the cart.’

Validation messages for Resources - Tyche Softwares Documentation

Adding the same date and resource again 

INSTANCE 2

Let’s say a customer books the resource Kinjal for 20th March 2018 for the One Day Bridal Package product.

After this, they return to the product page and select the same product with the same date and resource. However, here, the resource has reached its maximum availability.

In such an instance, the following message will be displayed:

You have all available spaces for this date in the cart. Please visit the cart to place the order.’ 

Since the customer has added all the available booking slots for this resource to the cart, it is recommended that they return to their cart to place the order.

Validation messages for Resources - Tyche Softwares Documentation

Resource selected for One Day Bridal Package product

INSTANCE 3

Let’s say an Order has been placed for 20th March 2018 for the resource Kinjal:Validation messages for Resources - Tyche Softwares Documentation

Order details for the booking

The Availability Quantity for this resource – Kinjal is set to 1 for each day as shown below:

Validation messages for Resources - Tyche Softwares Documentation

Maximum bookings to be taken for each day is 1

If some other customer books the same product for Kinjal for the same date 20th March 2018, then the booking calendar will show this date disabled as the availability for Kinjal for the given date is set to 1.

Validation messages for Resources - Tyche Softwares Documentation

Resource booked for 20th March 2018

20th March 2018 will show a ‘Booked’ message in the booking calendar when a customer hovers on that date.

That’s because Kinjal is booked for the One Day Bridal Package on the same date.

2. Cart Page validation

Let’s say a customer adds a particular resource and booking details for service in the cart.

If the same resource with a different service is already present in the cart with the maximum available quantity for the selected dates, then such an action should be validated.

For Example – A customer has booked Kinjal for Outdoor Wedding Bookings from 1st February 2018 to 19th February 2018.

Validation messages for Resources - Tyche Softwares Documentation

The cart shows resource Kinjal

Now if you try to add the One Day Bridal Package for 9th February 2018 for the same Resource Kinjal, it will show the following error message:

You have all available spaces for Kinjal on date 02/09/18 in your cart. Please visit the cart to place the order.’

It would mean that all the availability slots for the Resource Kinjal on the date 02/09/18 have already been added to the customer’s cart.

The customer needs to move to the cart page to place the order.

Validation messages for Resources - Tyche Softwares Documentation

The cart shows an error message

On the Cart page, when a customer tries to increase the quantity of the product for more than the resource’s availability, a notification message will appear.

It will say ‘Kinjal can provide only 1 service for the date 02/09/18.’

Validation messages for Resources - Tyche Softwares Documentation

A notification message appears when the quantity exceeds

Kinjal is available for only 1 quantity.

If the customer tries to increase it, the notification message displayed above will be displayed.

The validations will thus be applied in this manner to all of your resources based on the conditions applied.

Was this article helpful to you? Yes No

How can we help?