At the bottom of every product I want to add the sentence:
Any Questions about "Product Name", get in touch with us
The code I'm using is
<h1>Questions about <?php the_product); ?> get in touch</h1>
This however doesn't seem to work, how do I pull the product name in Woocommerce?
It's outdated question, but if anybody is looking like me these days:
<? echo $product->post->post_title; ?>
or get full html title element:
<? echo woocommerce_template_single_title(); ?>
Works for Woocommerce 2.5+
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With