1. Home
  2. Order Delivery Date Pro For WooCommerce – OLD
  3. Mandatory Selection of Delivery Date and Time
  4. Delivery Time Slot field Mandatory

Delivery Time Slot field Mandatory

In our previous post, we discussed how to set Delivery Date as required field. In this post, we will discuss how you can set Delivery Time field as required along with the Delivery Date field on the checkout page.

There are some businesses where the Delivery Time is mandatory to be selected along with the Delivery Date on the checkout page.

For example, you have online baby nutrition food shop were you deliver food for different month duration like 5 to 10 months foodstuff, 11 to 15 months foodstuff, 16 to 24 months foodstuff etc. Here you want that your customers should choose the delivery time from the pre-added time slots along with the delivery date on which they want the delivery.

So here you can set the time slot field mandatory on the checkout page from Order Delivery Date Pro for WooCommerce plugin.

You can setup this under Order Delivery Date -> General Settings -> Time Slot.

Set Delivery Time as a required field on WooCommerce Checkout Page - General Settings
General Settings

Time Slot field required: Admin Setting

To set the time slot field as a required field on the checkout page, you need to check the Mandatory Field? checkbox.

Set Delivery Time as a required field on WooCommerce Checkout Page - Time Slot Mandatory Field
Time Slot Mandatory Field

Time Slot field required: Checkout Page

If the field is set as required field there will be a red asterisk (*) mark next to the Time Slot label. This mark indicates that the field is compulsory to fill and cannot be left out.

Set Delivery Time as a required field on WooCommerce Checkout Page - Mandatory Field Checkout Page
Mandatory Field – Checkout Page

If the Time Slot field is left out while placing the order, when the field is set as required, then it will display an Error as “Time Slot is a required field”.

Set Delivery Time as a required field on WooCommerce Checkout Page - Time Slot Mandatory Field Error
Time Slot Mandatory Field Error

The customer then needs to select their preferred Time Slot along with the Delivery Date from the drop down and place the order. If you want the Time Slot field as an optional field, then you can uncheck the checkbox mentioned above.

Conclusion

In this post, we saw how you can set time slot as a required field on the WooCommerce checkout page. This feature is useful for the businesses where the Delivery Time is required along with the Delivery Date for the orders.

Was this article helpful to you? Yes 2 No

How can we help?