2022-09-29 10:25:14 - 米境通跨境電商
OpenCart系統(tǒng)發(fā)新不能像Magento那樣方便的在后臺(tái)修改e-mail的內(nèi)容模板
但是能夠通過(guò)修改語(yǔ)言文件修改發(fā)信內(nèi)容.
注冊(cè)用戶成功郵件的模板在語(yǔ)言文件夾的mail/account_create.php中修改.
例如,默認(rèn)的英文郵件就在catalog/language/english/mail/ccount_create.php文件中.內(nèi)容如下
//Text
$_['text_subject']='%s-Thankyouforregistering';
$_['text_welcome']='Welcomeandthankyouforregisteringat%s!';
$_['text_login']='YouraccounthasnowbeencreatedandyoucanloginbyusingyouremailaddressandpasswordbyvisitingourwebsiteoratthefollowingURL:';
$_['text_approval']='Youraccountmustbeapprovedbeforeyoucanlogin.OnceapprovedyoucanloginbyusingyouremailaddressandpasswordbyvisitingourwebsiteoratthefollowingURL:';
$_['text_services']='Uponloggingin,youwillbeabletoaccessotherservicesincludingreviewingpastorders,printinginvoicesandeditingyouraccountinformation.';
$_['text_thanks']='Thanks,';
里面內(nèi)容不多做解釋了.%s為替換的對(duì)應(yīng)變量,不懂的可以對(duì)應(yīng)著郵件修改.
相應(yīng)的,此文件夾下的其他文件也為對(duì)應(yīng)的郵件模板.支持html語(yǔ)法.