最模板 - 外贸网站建设,外贸网站模板

最模板

当前位置: 首页 > ZenCart > ZenCart教程 >

ZenCart改成前台英文后台中文后订单更新邮件是中

时间:2014-05-29 04:46来源:未知 作者:VCPHP网站模板 点击:
客户问:我的zencart网站后台变成中文的后,在后台更新订单状态,系统发给客户的邮件变中文的怎么办啊? 以下解决方法: 1.把 \admin\includes\languages\english\email_extras.php 复制到\admin\includes\lan

客户问:我的zencart网站后台变成中文的后,在后台更新订单状态,系统发给客户的邮件变中文的怎么办啊?

以下解决方法:

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_COMMENTS_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_COMMENTS_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 email if you have any questions.' . "\n");

3.在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/MM/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
(责任编辑:最模板)
------分隔线----------------------------
栏目列表
推荐内容