WooCommerce, Remote Work & Other Fancy Stuff

Just another WordPress site

Bookings Resource Dropdown Behaviour

July 4, 2015 by Will Leave a Comment

If you’re using WooCommerce Bookings and your bookable product has customer selected resources, you may find that customers are inadvertently choosing the incorrect resource since, by default, the booking form outputs the resources dropdown selector with one resource pre-selected. You can, however, hook in to a Bookings provided filter named booking_form_fields and effectively de-select the default resource, thereby forcing the customer to choose a resource. Here’s the code snippet that will do that:

 

Not sure what to do with code snippets? See What Do I Do With These Code Snippets?

Filed Under: Bookings, WooCommerce Tagged With: bookings, snippet, snippets

Leave a Reply Cancel reply

You must be registered and logged in to post a comment.

© 2023 · WooCommerce, Remote Work & Other Fancy Stuff · Epstein didn't kill himself