How to add inquiry tab to your product in woocommerce using contact form 7
WooCommerce is the most popular WordPress eCommerce plugin. And it’s available for free. I guess one of the reason why you are here reading this is because you are using it.
Ever wonder how to use Contact Form 7 in your WooCommerce product as a method for inquiry purpose? Well, this is the topic all about. I will teach you how.
If you’re in a hurry and don’t want to read along, you can download this file, upload this to your plugins, then activate. But before that, make sure to replace the shortcode with yours. It’s in the bottom part that says echo do_shortcode(‘[contact-form-7 id=”1430″ title=”Contact form 1″]’);. Replace [contact-form-7 id=”1430″ title=”Contact form 1″] with your shortcode from contact form 7 settings. Look at line 49.
If you have done that, now look at your product item page!
Read the commented code to learn more…
Also, you can copy paste this to your functions.php file in your current theme.
Let me know in comments below if you have problems.
Also, this code is not limited to just Contact Form 7 and 1 additional tab 🙂 Use your imagination…
And after writing this post… a plugin was born… you can download and try it WooCommerce WooRei Easy Tab.
A new better way of adding Contact Form 7 as Product tab is here.