修改opencart模版,magento吧
2022-09-23 10:26:25 - 米境通跨境电商
OpenCart系统发新不能像Magento那样方便的在后台修改e-mail的内容模板
但是能够通过修改语言文件修改发信内容.
注册用户成功邮件的模板在语言文件夹的mail/account_create.php中修改.
例如,默认的英文邮件就在catalog/language/english/mail/ccount_create.php文件中.内容如下
//Text
$_['text_subject']='%s-Thankyouforregistering';
$_['text_welcome']='Welcomeandthankyouforregisteringat%s!';
$_['text_login']='YouraccounthasnowbeencreatedandyoucanloginbyusingyouremailaddressandpasswordbyvisitingourwebsiteoratthefollowingURL:';
$_['text_approval']='Youraccountmustbeapprovedbeforeyoucanlogin.OnceapprovedyoucanloginbyusingyouremailaddressandpasswordbyvisitingourwebsiteoratthefollowingURL:';
$_['text_services']='Uponloggingin,youwillbeabletoaccessotherservicesincludingreviewingpastorders,printinginvoicesandeditingyouraccountinformation.';
$_['text_thanks']='Thanks,';
里面内容不多做解释了.%s为替换的对应变量,不懂的可以对应着邮件修改.
相应的,此文件夹下的其他文件也为对应的邮件模板.支持html语法.