How to integrate contact form 7 with woocommerce .?

三世轮回 提交于 2021-02-08 10:46:34

问题


I am just a beginner and don't know alot about coding. I made a conditional order form with the help of contact form 7 wordpress plugin.

I am trying to find a plugin or any way where form shows on woocommerce product page without picture and tabs OR after filling the contact form 7, Checkout will be done through woocommerce.

Reason for checkout through woocommerce is becuause of the order history and order email of the user. Any idea how to do that .?

so far i have tried to put the below code but nothing happens and its just change the url to id like this "#wpcf7-f597-p77-o1".

document.addEventListener( 'wpcf7mailsent', function( event ) {
location = 'http://www.website.com/checkout/?add-to-cart=ID';}, false );

Edit:

Add a code in contact form 7 Additional Settings area nothing happens instead it just change the url

Secondly the product shows like this

I want only to show form

来源:https://stackoverflow.com/questions/54128005/how-to-integrate-contact-form-7-with-woocommerce

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!