WooCommerce-产品标题直接联系表7
在我的WordPress网站上,客户应选择一个产品,但是如果他们单击链接,则不应将产品添加到购物车中,它应该将其转发到我的联系表中。 id通过本手册已经做到了这一点: https> https: //seropointdevelopment.com/woocommerce-change-add-to-cart-button-text-and-url/
是否也可以获得产品的标题并将其直接粘贴到联系人表格中?否则,客户选择该产品,将转发到联系表格,然后他必须再次选择产品。.
网站: https://elitelehrstellen.ch/angebote
感谢您的帮助!
On my wordpress site, customer should choose a product but if they click on the link it should not add the product to cart, it should forward them to my contact form. Id did this already fine with this manual: https://zeropointdevelopment.com/woocommerce-change-add-to-cart-button-text-and-url/
Is it possible to get also the title of the product and paste it directly into the subject of the contact form? Otherwise the customer is choosing the product, will be forwarded to contact form and then he have to choose the product again..
The site: https://elitelehrstellen.ch/angebote
Thanks for help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您可以设置带有产品名称的参数,并且可以进入联系表格。这就是您要做的:
将URL参数设置为链接。示例 https://wwwww.elitelelhrstellen.ch/kontellen.ch/kontellstellen.ch/kontakt?product-name-name-name-name name = my-product-name
在您的表格中添加此字段
[text* product-name默认值:获取默认值:post_meta“我的产品名称”]
您可以在 docs
I think you can set a parameter with the name of the product and you can get in into contact form. That's what you have to do:
Set a url param to the link. Example https://www.elitelehrstellen.ch/kontakt?product-name=my-product-name
In your form add this field
[text* product-name default:get default:post_meta "My Product Name"]
You can see more examples in the docs