duan111112
2015-11-02 13:43
浏览 36
已采纳

如何在opencart中的电子邮件中添加额外的文本

Hello i want to change the e-mail answer after a successfull order in my Opencart store.

I just want to add more text in the email.

As far as i know i need to go in :

catalog/view/theme/default/template/mail/order.tpl

and change the code there but when I do so ,nothing changes.

I am so sorry for my bad English.

图片转代码服务由CSDN问答提供 功能建议

您好我想在Opencart商店中成功订购后更改电子邮件答案。 \ n

我只想在电子邮件中添加更多文字。

据我所知,我需要进入:

   catalog / view / theme / default / template / mail / order.tpl 
   
 
 

并在那里更改代码,但是当我这样做时,没有任何变化。< / p>

我很抱歉我的英语不好。

  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • dongtanhe4607 2015-11-03 01:23
    已采纳

    You are not supposed to go inside the .tpl file

    Go here:

    /catalog/language/bulgarian/mail/order.php
    

    you will find this line:

    $_['text_new_greeting']         = "Your text HERE";
    

    Chnage the text inside the "" marks.

    That is for Opencart 1.x (i am not sure for 2.0)

    已采纳该答案
    打赏 评论
  • doushe8577 2015-11-03 04:36
    1. Go in the language file /catalog/language/*/mail/order.php.

    2. At the end of file, paste this $_['text_new'] = "Your Text";. The model catalog/model/checkout/order.php automatically calls language file so you wont have to call it, but you would have to declare the variable in your model. Go through it and see where mail variables are being made. Add your variable over there. $data['text_new'] = $this->language->get('text_new');

    3. Go to catalog/view/theme/default/template/mail/order.tpl and call your the variable $text_new where ever you need.

    That's it.

    打赏 评论

相关推荐 更多相似问题