【发布时间】:2017-11-01 21:44:41
【问题描述】:
我们一直在使用来自 Woocommerce 的电子邮件通知,它在 3.2 的新更新中破坏了部分通知,我不知道如何修复。我查看了正在生成电子邮件通知的文件“class-wc-emails.php”(woocommerce/includes/class-wc-emails.php),它有一条模棱两可的消息,上面写着“在以前的版本中到 3.2 这用于笔记、电话和电子邮件,但这些数据已移动。”
我回顾了我们保存的存档站点,它有这段代码似乎可以调用我希望添加回通知的笔记、电话和电子邮件
// Code prior to 3.2
$fields = array();
if ( $order->get_customer_note() ) {
$fields['customer_note'] = array(
'label' => __( 'Note', 'woocommerce' ),
'value' => wptexturize( $order->get_customer_note() ),
);
}
if ( $order->get_billing_email() ) {
$fields['billing_email'] = array(
'label' => __( 'Email address', 'woocommerce' ),
'value' => wptexturize( $order->get_billing_email() ),
);
}
if ( $order->get_billing_phone() ) {
$fields['billing_phone'] = array(
'label' => __( 'Phone', 'woocommerce' ),
'value' => wptexturize( $order->get_billing_phone() ),
);
}
我尝试将其包含在内,但似乎没有将备注、电话和电子邮件添加到我的电子邮件通知中。有谁知道我需要做什么才能显示客户详细信息(备注、电话和电子邮件)在我们的新订单通知中?
【问题讨论】:
-
您指的是哪个特定的电子邮件通知?客户还是管理员?
-
管理员通知
标签: wordpress woocommerce