我正在设法将Authorize.net ID (而不是woocommerce客户ID)添加到管理订单模板中。Authorize.net ID显示在订单屏幕上:
我想把ID #写进电子邮件里。以下是电子邮件模板:
<?php
/**
* Admin new order email
*
* This template can be overridden by copying it to yourtheme/woocommerce/emails/admin-new-order.php.
*
* HOWEVER, on occasion WooCommerce will ne
每当客户下订单时,他们都会收到一封电子邮件。此电子邮件在以下位置的文件中生成:/woocommerce/emails/customer-processing-order.php
我想自定义这封电子邮件,并从客户填写的字段中获取字段值。例如,我想添加这样的内容:亲爱的名字。名字是一个变量。我该如何实现这一点?
当前电子邮件模板如下所示:
<?php
/**
* Customer processing order email
*
* This template can be overridden by copying it to yourtheme/woocommerce/emails
我对WordPress非常陌生,并且用WooCommerce创建了一家电子商务商店.
在客户下订单后,我收到一封电子邮件,客户收到一封电子邮件--一封给我说出他们订购了什么,另一封作为感谢邮件发给他们。
在这封谢谢您的电子邮件中,在我的functions.php文件中,我学会了将标题的主题更改为包含它们的名称,如下所示:
//add the first name of the person to the person getting the reciept in the subject of the email.
add_filter('woocommerce_email_subje
我在我的functions.php文件中使用一个函数在Woocommerce客户电子邮件中显示产品的购买记录。看起来是这样的:
function sww_add_note_woocommerce_emails( $output, $order ) {
// set a flag so we don't recursively call this filter
static $run = 0;
// if we've already run this filter, bail out
if ( $run ) {
return $
我为我的WooCommerce用户提供了一些自定义变量,如:
billing_pin
billing_piva
等等。
当一个新客户被创建,它会收到一个新帐户的电子邮件,我已经修改了它。
现在我的电子邮件是:
<?php
/**
* Customer new account email
*
* This template can be overridden by copying it to yourtheme/woocommerce/emails/customer-new-account.php.
*
* HOWEVER, on occasion WooCommerce wil