{"id":1745,"date":"2024-09-26T13:44:50","date_gmt":"2024-09-26T13:44:50","guid":{"rendered":"http:\/\/docs"},"modified":"2024-09-26T13:44:50","modified_gmt":"2024-09-26T13:44:50","password":"","slug":"single-product-builder-hooks","status":"publish","type":"docs","link":"https:\/\/www.8theme.com\/documentation\/xstore\/additional-customisation\/single-product-builder-hooks\/","title":{"rendered":"Single Product Builder Hooks"},"content":{"rendered":"<p>Xstore theme comes with a Single Product builder feature (Theme Options &gt; WooCommerce). Single product builder allows you to create unique customizable product layouts that suit your needs and company style.<\/p>\n<p>But sometimes you need to customize that in addition or add any information of the third-party plugin. You can override\/customize the Single Product Page via your child theme\u2019s functions. You can remove default elements, you can add your custom elements by picking the correct positioned \u201chook\u201d and triggering your function.<\/p>\n<p>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 :<\/p>\n<pre>etheme_woocommerce_template_single_title\netheme_woocommerce_template_single_rating\netheme_woocommerce_template_single_price\netheme_woocommerce_template_single_excerpt\netheme_woocommerce_template_single_add_to_cart\netheme_woocommerce_template_single_meta\netheme_woocommerce_template_woocommerce_breadcrumb\nwoocommerce_share\netheme_woocommerce_template_single_sharing\netheme_woocommerce_show_product_images\netheme_woocommerce_output_product_data_tabs\netheme_woocommerce_output_upsell_products\netheme_woocommerce_output_cross_sells_products\netheme_woocommerce_output_related_products\netheme_product_single_size_guide\netheme_product_single_size_guide\netheme_product_single_button\netheme_product_single_widget_area_01\netheme_product_single_custom_html_01\netheme_product_single_custom_html_02\netheme_product_single_custom_html_03\netheme_product_single_additional_custom_block\netheme_product_single_product_description\netheme_product_single_wishlist\netheme_product_single_compare\n<\/pre>\n<p>You can use it as you did with the default ones. Please, add code to your <code class=\"inline-code\">child-theme\/functions.php<\/code><\/p>\n<p>Example:<\/p>\n<pre>add_action(&#39;etheme_woocommerce_template_single_title&#39;, function() {\u2028\n\tglobal $product;\u2028\n\techo $product-&gt;get_id();\u2028\n});\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Xstore theme comes with a Single Product builder feature (Theme Options &gt; WooCommerce). Single product builder allows you to create unique customizable product layouts that suit your needs and company style. But sometimes you need to customize that in addition or add any information of the third-party plugin. You can override\/customize the Single Product Page [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"doc_category":[42],"doc_tag":[],"class_list":["post-1745","docs","type-docs","status-publish","hentry","doc_category-additional-customisation"],"aioseo_notices":[],"year_month":"2026-04","word_count":266,"total_views":"5210","reactions":{"happy":"0","normal":"0","sad":"1"},"author_info":{"author_nicename":"docs","author_url":"https:\/\/www.8theme.com\/documentation\/author\/docs\/"},"doc_category_info":[{"term_name":"Additional Customization","term_url":"https:\/\/www.8theme.com\/documentation\/xstore\/additional-customisation\/"}],"doc_tag_info":[],"author_list":[{"ID":"1","user_login":"docs","display_name":"docs","id":"1"}],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.8theme.com\/documentation\/wp-json\/wp\/v2\/docs\/1745","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.8theme.com\/documentation\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.8theme.com\/documentation\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.8theme.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.8theme.com\/documentation\/wp-json\/wp\/v2\/comments?post=1745"}],"version-history":[{"count":0,"href":"https:\/\/www.8theme.com\/documentation\/wp-json\/wp\/v2\/docs\/1745\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.8theme.com\/documentation\/wp-json\/wp\/v2\/media?parent=1745"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.8theme.com\/documentation\/wp-json\/wp\/v2\/doc_category?post=1745"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.8theme.com\/documentation\/wp-json\/wp\/v2\/doc_tag?post=1745"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}