我们的使命

助力跨境卖家高效建立全球销售网络

喜报2021年我司获《江苏省国家高新技术企业》认定

分类目录

文章标签

热门推荐

相关咨讯

opencart定制,magento模板修改

2022-08-26 10:43:23 - 米境通跨境电商

    

    大多开源电子商务系统都具有发邮件的功能,如在会员注册成功后或会员成功下定单后,系统会自动向会员的邮箱里发送一封邮件,opencart当然也不例外。但和magento相比,OpenCart系统发新不能像Magento那样方便的在后台修改e-mail的内容模板,我们应该怎么办呢?

    唯一的办法就是修改语言文件来达到修改电子邮件内容的目的,我们以会员注册成功后发送邮件为例子,以英文语言包为例,默认的英文邮件就在

    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语法。
    联系我们
  • 24H客服
  • 联系电话:16651690460(龙经理)
  • 微信咨询:
南京天遥路联网络科技有限公司,版权所有 Copyright By ©米境通ERP4.0,2015-2025,苏ICP备:苏ICP备15044100号-2, 苏公网安备:32011402011043