WooCommerce, Remote Work & Other Fancy Stuff

Just another WordPress site

Bookings Resource Dropdown Behaviour

July 4, 2015 by Will Leave a Comment

Please consider leaving a donation if you appreciate this information. Lightning network now available

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?

Please consider leaving a donation if you appreciate this information. Lightning network now available

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.

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

We use cookies to ensure that we give you the best experience on our website. Continued use of this site is interpreted as your acceptance of our cookie policy.OkSee Our Cookie Policy