Scheduling form for the appointments is by default available as a WooCommerce product. But you can display the scheduling form anywhere on your site. For instance, inside a post that is related to the the appointable product.
Product page shortcodes
This is possible for any WooCommerce product, where you can practically embed a single product page anywhere you want on your website. Show a full single product page by ID or SKU.
Shortcodes:
[product_page id="99"] [product_page sku="FOO"]
Read more about arguments and WooCommerce shortcodes here
Appointment form shortcodes
Embed appointment form for your appointable products anywhere on your website. Also show/hide various data for the form, like title, price, ratings etc.
Shortcodes:
[appointment_form id="99"] [appointment_form sku="FOO"]
Arguments:
$array(
'id' => '', // use number
'sku' => '', // use string
'show_title' => 1, // use 1 or 0
'show_rating' => 1, // use 1 or 0
'show_price' => 1, // use 1 or 0
'show_excerpt' => 1, // use 1 or 0
'show_meta' => 1, // use 1 or 0
'show_sharing' => 1, // use 1 or 0
'availability_autoselect' => 0, // use 1 or 0
'customer_timezones' => 0, // use 1 or 0
);
Example:
[appointment_form id="1" show_title="0" show_rating="0" show_price="0" show_excerpt="0" show_meta="0" show_sharing="0" availability_autoselect="0" customer_timezones="1"]
How to find product ID?
To find the Product ID, go to the Products screen, hover over the product and the ID appears as shown below.
