Documents
-
Bookings REST API Reference
The REST API Reference is targeted at WooCommerce Bookings 1.14.0+ only and written for developers looking to extend or customize WooCommerce Bookings. It requires an advanced understanding of PHP and WordPress development. Booking Slots Slots Properties Attribute Type Description product_ids string Product IDs for slots you want to query. (Comma-separated IDs) category_ids string Category IDs […]
-
Bookings Snippets: Tips and Tweaks
In this document, you will find many useful snippets for customizing the functionality of WooCommerce Bookings. To use a snippet, you can copy the contained code into your child theme‘s functions.php file. Snippets Make calendar default to first available booking By default the current month will be shown on the Bookings calendar for performance reasons. […]
-
Bookings: Action and Filter reference
Actions and filters listed on this page are specific to WooCommerce Bookings. Actions Available For Bookings The following table includes actions that you can use with WooCommerce Bookings. Action Args Description wc_bookings_updated Fires after a new plugin version is installed. woocommerce_admin_booking_data_after_booking_details Int: Booking ID Fires after customer select box when viewing/editing a booking in […]
-
Creating Bookings Programatically
Bookings can be created programmatically using PHP, should you wish to create a follow-up booking or bookings from other plugins. The function you use is create_wc_booking. The create_wc_booking function Thecreate_wc_booking function takes the following arguments: create_wc_booking( $product_id, $new_booking_data = array(), $status = ‘confirmed’, $exact = false ) Booking Data Array The $new_booking_data argument is passed to […]
-
WooCommerce Bookings Calendar CSS Style Elements
If you want to change the color scheme of the WooCommerce Bookings calendar of the customer view, you can do so by modifying a few CSS styles. If you are using a block theme you can enter custom CSS in the site editor. CSS Styles Below are the CSS styles you can use to modify […]
-
WooCommerce Bookings Helper
The Bookings Helper plugin helps you troubleshoot the WooCommerce Bookings setup by allowing you to quickly export/import settings to a JSON file. To use the plugin, download, install, and activate the Bookings Helper plugin. Then go to Tools > Bookings Helper. Global Availability Rules Importing global availability rules will overwrite all rules. Since this is […]
-
WooCommerce Bookings Pages and Emails Customization
WooCommerce Bookings template files contain the markup and template structure for Bookings-related pages and HTML emails for your store. Template files can be found within the /woocommerce-bookings/templates/ directory of the Bookings extension, and can be overridden just like WooCommerce core template files. Template List The table below contains the location and a description of each template Bookings uses. The location is relative to […]
-
Embedding Bookings Calendar on a custom page/post
WooCommerce Bookings does not have a feature to embed a calendar on a single page or post. However, as a workaround, we can use the WooCommerce One Page Checkout plugin. This can be done using the shortcode [woocommerce_one_page_checkout product_ids=”11″ template=”product-single”] . The only issue is that it also displays other information, such as the Product’s image, title, checkout form, […]
-
Translating WooCommerce Bookings
WooCommerce Bookings can be translated into different languages by modifying the related Bookings language files, either manually or through the use of a third-party extension. You can also utilize this approach to customize the default text provided by the plugin according to your preference. How to find and edit the Bookings language files The language […]