WooCommerce-产品标题直接联系表7

发布于 2025-01-26 06:47:14 字数 608 浏览 2 评论 0原文

在我的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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ぃ弥猫深巷。 2025-02-02 06:47:14

我认为您可以设置带有产品名称的参数,并且可以进入联系表格。这就是您要做的:

  1. 将URL参数设置为链接。示例 https://wwwww.elitelelhrstellen.ch/kontellen.ch/kontellstellen.ch/kontakt?product-name-name-name-name name = my-product-name

  2. 在您的表格中添加此字段

    [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:

  1. Set a url param to the link. Example https://www.elitelehrstellen.ch/kontakt?product-name=my-product-name

  2. 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文