[英]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.