[英]How to send a woocommerce cart details in ninja form email?
我想从 ninja 表单插件发送 woocommerce 购物车详细信息是否有任何挂钩或任何插件可以通过电子邮件向用户发送购物车详细信息
You can create your custom form action and send an email with your custom content.您可以创建自定义表单操作并发送包含自定义内容的电子邮件。 See https://developer.ninjaforms.com/codex/custom-form-action/ for instructions.有关说明,请参阅https://developer.ninjaforms.com/codex/custom-form-action/ 。
Also, Ninja Forms provides the filter "ninja_forms_submit_data", this filter can be use to alter field values (you can populate a field with cart items).此外,Ninja Forms 提供过滤器“ninja_forms_submit_data”,此过滤器可用于更改字段值(您可以使用购物车项目填充字段)。 Here you can find detailed doc: https://developer.ninjaforms.com/codex/submission-processing-hooks/在这里你可以找到详细的文档: https : //developer.ninjaforms.com/codex/submission-processing-hooks/
Remember you can get cart content by calling WC()->cart->get_cart_contents()
function.请记住,您可以通过调用WC()->cart->get_cart_contents()
函数来获取购物车内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.