修改 ZenCart给顾客发送的订单(更新)确认邮件内容

 修改  ZenCart给顾客发送的订单(更新)确认邮件内容

 

咱们喜欢把zencart靠山改成中文,这样运用起来就比较亲昵。然而大家劈头兴许不有缔造,由于你没有测试,定单形态产生篡改后,客户收到的是中文邮件不是英文,那样可欠安,老外看不懂。那咱们紧要批改。有两个方法: 
第一,先后盾都英文。这个方式我们是不希望运用的。 
第二,必要修改几个文件。如下提到的schinese文件各位看好了,是原本在安设中文英文转化时分的,非而今的,由于其时的你也找不到。 
1、把 \admin\includes\languages\english\email_extras.php 复制到 \admin\includes\languages\schinese\email_extras.php 
2、在\admin\includes\languages\schinese\orders.php文件中,下面代码改为英文即可 
define('EMAIL_SEPARATOR', '------------------------------------------------------'); 
define('EMAIL_TEXT_SUBJECT', '定单更新'); 
define('EMAIL_TEXT_ORDER_NUMBER', '订单号码:'); 
define('EMAIL_TEXT_INVOICE_URL', '详细发票:'); 
define('EMAIL_TEXT_DATE_ORDERED', '定单日期:'); 
define('EMAIL_TEXT_CO漂亮MMENTS_UPDATE', '<em>您定单的备注为: </em>'); 
define('EMAIL_TEXT_STATUS_UPDATED', '您的定单形态更新为:' . "\n"); 
define('EMAIL_TEXT_STATUS_LABEL', '<strong>新形态:</strong> %s' . "\n\n"); 
define('EMAIL_TEXT_STATUS_PLEASE_REPLY', '要是您有任何疑问, 请回来电子邮件.' . "\n"); 
改成如许 
define('EMAIL_SEPARATOR', '------------------------------------------------------'); 
define('EMAIL_TEXT_SUBJECT', 'Order Update'); 
define('EMAIL_TEXT_ORDER_NUMBER', 'Order Number:'); 
define('EMAIL_TEXT_INVOICE_URL', 'Detailed Invoice:'); 
define('EMAIL_TEXT_DATE_ORDERED', 'Date Ordered:'); 
define('EMAIL_TEXT_CO美女ENTS_UPDATE', '<em>The comments for your order are: </em>'); 
define('EMAIL_TEXT_STATUS_UPDATED', 'Your order has been updated to the following status:' . "\n"); 
define('EMAIL_TEXT_STATUS_LABEL', '<strong>New status:</strong> %s' . "\n\n"); 
define('EMAIL_TEXT_STATUS_PLEASE_REPLY', 'Please reply to this E-mail if you have any questions.' . "\n"); 
3、多么改完另有一处是中文,等于日期 
Date Ordered: 2011年06月01日 
在admin\includes\languages\schinese.php中 
setlocale(LC_TIME, 'zh_CN.UTF-8'); 
define('DATE_FORMAT_SHORT', '%Y/%m/%d');  // this is used for strftime() 
define('DATE_FORMAT_LONG', '%Y年%m月%d日'); // this is used for strftime() 
define('DATE_FORMAT', 'Y/m/d'); // this is used for date() 
define('PHP_DATE_TIME_FORMAT', 'Y/m/d H:i:s'); // this is used for date() 
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S'); 
define('DATE_FORMAT_SPIFFYCAL', 'yyyy/米女/dd');  //Use only 'dd', 'MM' and 'yyyy' here in any order 
改成 
setlocale(LC_TIME, 'en_US.UTF-8'); 
define('DATE_FORMAT_SHORT', '%m/%d/%Y');  // this is used for strftime() 
define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime() 
define('DATE_FORMAT', 'm/d/Y'); // this is used for date() 
define('PHP_DATE_TIME_FORMAT', 'm/d/Y H:i:s'); // this is used for date() 
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S'); 
define('DATE_FORMAT_SPIFFYCAL', '漂亮MM/dd/yyyy');  //Use only 'dd', 'MM' and 'yyyy' here in any order 

你可能感兴趣的:(ZENCART邮件)