Add a custom section in WooCommerce Single Product page using custom fields and shortcodes === **Goal: To add a new custom section to the WooCommerce Single Product page using custom fields and shortcodes** ![](https://i.imgur.com/FVAVGzM.jpg) Steps: 1) Setup a custom template that can use a short code e.g. "Templatera" or "Content Blocks" ![](https://i.imgur.com/3gFa8XR.png) 2) Open the FTP client and find the WooCommerce template file `content-single-product.php` on the child theme directory `XStore Child > content-single-product.php` ![](https://i.imgur.com/m1HSCeJ.png) 3) locate the `Upsell` section containing this lines of code ```php <?php if(etheme_get_option('upsell_location') == 'after_content') woocommerce_upsell_display(); ?> ``` 4) insert this snippet before the upsell section: ```php <!-- #JVG# Insert custom template hosting TIME MASTER SLIDER SECTION --> <?php echo do_shortcode(get_post_meta( get_the_ID(), 'tm_slider_video', true )); ?> <!-- #JVG# Insert custom template hosting TIME MASTER SLIDER SECTION --> ``` 5) setup a new custom field by adding it on the product backend and you can now use the template post ID as noted earlier: ![](https://i.imgur.com/8xA6rbe.png) 6) Save changes and inspect new setup Final output ![](https://i.imgur.com/Jy1ijwo.png) ###### tags: `shortcode` `custom fields` `echo do_shortcode` `echo` `templates` `templatera` `post meta` `custom` `custom section`