Shortcodes
Use shortcodes if you are not using the block editor.
Product page shortcodes
Embed a full product page anywhere on your site so the form appears wherever you need it.
[product_page id="99"]
[product_page sku="FOO"]
You can use this shortcode inside posts, tabs, or custom layouts when you want the entire product layout (including the booking form) to appear in context.
Appointment form shortcodes
Embed the booking form for a product without the rest of the WooCommerce template:
[appointment_form id="99"]
Show or hide the title, price, rating, and other metadata with shortcode attributes so the form matches the surrounding layout.
Attributes
| Attribute | Default | Description |
|---|---|---|
id | Required | ID of the appointable product. |
sku | — | Use SKU instead of id. |
show_title | 1 | Show product title (1 or 0). |
show_price | 1 | Show product price (1 or 0). |
show_rating | 1 | Show star rating (1 or 0). |
show_excerpt | 1 | Show product excerpt (1 or 0). |
show_meta | 1 | Show product metadata (1 or 0). |
show_sharing | 1 | Show sharing links (1 or 0). |
customer_timezones | 0 | Enable customer timezone conversion (1 or 0). |
availability_autoselect | — | Automatically select the first available slot (1 or 0). |
Example
[appointment_form id="123" show_title="0" customer_timezones="1" availability_autoselect="1"]
Finding the product ID
To embed either shortcode you need the WooCommerce product ID (not the post ID). In the Products list, hover over your appointable product and the ID pops up in a tooltip as shown below.
