Popular guides:
Single Product Builder Hooks
Xstore theme comes with a Single Product builder feature (Theme Options > WooCommerce). Single product builder allows you to create unique customizable product layouts that suit your needs and company style.
Xstore theme comes with a Single Product builder feature (Theme Options > WooCommerce). Single product builder allows you to create unique customizable product layouts that suit your needs and company style.
If you need to add your custom actions for a single product while you are using the builder, please use the next actions for that :
etheme_woocommerce_template_single_title etheme_woocommerce_template_single_rating etheme_woocommerce_template_single_price etheme_woocommerce_template_single_excerpt etheme_woocommerce_template_single_add_to_cart etheme_woocommerce_template_single_meta etheme_woocommerce_template_woocommerce_breadcrumb woocommerce_share etheme_woocommerce_template_single_sharing etheme_woocommerce_show_product_images etheme_woocommerce_output_product_data_tabs etheme_woocommerce_output_upsell_products etheme_woocommerce_output_cross_sells_products etheme_woocommerce_output_related_products etheme_product_single_size_guide etheme_product_single_size_guide etheme_product_single_button etheme_product_single_widget_area_01 etheme_product_single_custom_html_01 etheme_product_single_custom_html_02 etheme_product_single_custom_html_03 etheme_product_single_additional_custom_block etheme_product_single_product_description etheme_product_single_wishlist etheme_product_single_compare
You can use it as you did with the default ones. Please, add code to your child-theme/functions.php
Example:
add_action('etheme_woocommerce_template_single_title', function() {
global $product;
echo $product->get_id();
});