There are 2 ways you can manually install back-in-stock widgets. Below are examples for each back-in-stock triggers.
Inline Button
Shortcodes
Use the following shortcode. Replace ID with back-in-stock ID.
[onvoard_back_in_stock_inline_button id="12345"]
Paste it to section where you want display widget.
Render Function
If you are familiar with php, you can call render function directly to display widget. In this example, we are using visual hook to render widget display. Replace ID with back-in-stock ID.
add_action('woocommerce_product_meta_start',
'render_onvoard_back_in_stock_inline_button'); function render_onvoard_back_in_stock_inline_button() { if (class_exists('OnVoardRender')) { OnVoardRender::onvoard_back_in_stock_inline_button(array( "id" => "12345" )); } }
See how you can use code snippets to add render function.
Inline Text
Shortcodes
Use the following shortcode. Replace ID with back-in-stock ID.
[onvoard_back_in_stock_inline_text id="12345"]
Paste it to section where you want display widget.
Render Function
If you are familiar with php, you can call render function directly to display widget. In this example, we are using visual hook to render widget display. Replace ID with back-in-stock ID.
add_action('woocommerce_product_meta_start',
'render_onvoard_back_in_stock_inline_text'); function render_onvoard_back_in_stock_inline_text() { if (class_exists('OnVoardRender')) { OnVoardRender::onvoard_back_in_stock_inline_text(array( "id" => "12345" )); } }
See how you can use code snippets to add render function.
Inline Form
Shortcodes
Use the following shortcode. Replace ID with back-in-stock ID.
[onvoard_back_in_stock_inline_form id="12345"]
Paste it to section where you want display widget.
Render Function
If you are familiar with php, you can call render function directly to display widget. In this example, we are using visual hook to render widget display. Replace ID with back-in-stock ID.
add_action('woocommerce_product_meta_start',
'render_onvoard_back_in_stock_inline_form'); function render_onvoard_back_in_stock_inline_form() { if (class_exists('OnVoardRender')) { OnVoardRender::onvoard_back_in_stock_inline_form(array( "id" => "12345" )); } }
See how you can use code snippets to add render function.