简体   繁体   English

Woocommerce 电子邮件新帐户模板通知名字

[英]Woocommerce Email NEW ACCOUNT template notification FIRST NAME

我需要电子邮件新帐户模板中的名字 [woocommerce]

my code -> https://pastebin.com/iTfM6Nmz

WooCommerce doesn't have this functionality built in. The new account email can be sent before an order is placed, which would mean it's before any user information has been captured like first name. WooCommerce 没有内置此功能。可以在下订单之前发送新帐户电子邮件,这意味着它在任何用户信息(如名字)被捕获之前发送。

After an order has been placed and you have billing information, then you could pull it in with something like在下订单并且您有帐单信息后,您可以使用以下内容将其拉入

"Hi" . $order->billing_first_name . "Your recent order on"

But that would be on order confirmation emails, or anything after account creation.但这将出现在订单确认电子邮件或帐户创建后的任何内容中。

You could also check out this thread: https://wordpress.org/support/topic/how-to-add-customer-name-to-new-customer-admin-order-email/您还可以查看此线程: https : //wordpress.org/support/topic/how-to-add-customer-name-to-new-customer-admin-order-email/

It's essentially recommending the Follow Up Emails extension to help customize emails.它本质上是推荐使用 Follow Up Emails 扩展来帮助自定义电子邮件。 Again it will struggle if the user hasn't added their account information when they register, though, so you might want to look for a way to require filling in WooCommerce user information during registration, assuming it's separate from the purchase flow.但是,如果用户在注册时没有添加他们的帐户信息,那么它也会很困难,因此您可能需要寻找一种方法来要求在注册期间填写 WooCommerce 用户信息,假设它与购买流程分开。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 Woocommerce 中将名字和姓氏添加到新帐户电子邮件通知 - Adding first name and last name to new account email notification in Woocommerce 在 Woocommerce“新帐户”电子邮件通知模板中获取用户电子邮件 - Get the user email in Woocommerce “New account” email notification template 将客户电子邮件地址添加到WooCommerce中的新帐户电子邮件通知 - Add customer email address to new account email notification in WooCommerce 在Woocommerce中将新帐户电子邮件通知作为密件抄送发送给管理员 - New Account Email Notification sent to Admin as BCC in Woocommerce 在WooCommerce新帐户电子邮件通知中显示客户电话 - Display the customer phone in WooCommerce new account email notification 如何在 WooCommerce 中的已完成订单 email 模板中添加新帐户信息 - How to add new account info on order completed email template in WooCommerce 从 Woocommerce 中的名称更改新订单电子邮件通知 - Change New Order email notification from name in Woocommerce Woocommerce 新订单电子邮件模板 - Woocommerce New Order Email Template 根据购物车中的当前产品类型在 WooCommerce 中禁用新帐户 email 通知 - Disable new account email notification in WooCommerce based on current product type in cart 在 Woocommerce 中根据客户处理订单电子邮件通知有条件地添加帐户电子邮件 - Add account email conditionally on Customer processing Order email notification in Woocommerce
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM