WooCommerce Bookings shows a form to book the product on its single page. The form includes a calendar and it may include other fields like persons and resources, based on the product configuration.

Also, always based on the product configuration, the form will show different strings to the user to communicate the product availability or other things.

How do you change these form strings? They are not always right, your product may require a different string.

As always, there’s a snippet!

Hands On The Code!

Open the functions.php file in wp-content/themes/your-child-theme-name/ and add this code at the end of it:

This code already includes all the default form strings used by WooCommerce Bookings. You can change any of them, and remove the ones that you don’t want to change, by deleting the entire line.

You can also actually leave them in the file, but I suggest not to, especially if your site language is not English. Leaving them there in English will cause localization issues since WooCommerce Bookings will not find those form strings for localization.

1 reply

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

You have to agree to the comment policy.

This site uses Akismet to reduce spam. Learn how your comment data is processed.