I have a woo single product. I embedded an enquiry pro form on the product. How can I get the product url and product title in my email. I tried using hidden fields but i think i missing some thing. I know fluent forms and ws forms can do this…how does bricks forge do it?
I followed this video: https://www.youtube.com/watch?v=Ni8VezPG-cg&t=131s
This is the code i used:
add_filter( ‘woocommerce_product_tabs’, ‘custom_tab’ );
function custom_tab( $tabs ) {
// Adds the new tab
$tabs[‘form’] = array(
‘title’ => __( ‘Send us an enquiry’, ‘woocommerce’ ),
‘priority’ => 30,
‘callback’ => ‘custom_tab_content’
);
return $tabs;
}
function custom_tab_content() {
// The new tab content
echo '<h4>Send us an enquiry</h4>';
echo '<p>Lorem ipsum dolor sit amet consectetur adipiscing elit ultricies convallis volutpat, placerat proin scelerisque eget velit tellus at nibh risus. </p>';
echo do_shortcode( '[bricks_template id="330"]' );
}