Answer the question
In order to leave comments, you need to log in
Why doesn't the email template change in OpenCart?
Faced such a problem, it was necessary to slightly correct the data in the letter that comes to the buyer after placing an order. I found all the files that are responsible for this, first order.php then order.tpl, everything seemed to work out, I checked, I made about 50 orders, all letters came to the mail with the necessary changes BUT sometimes clients still receive letters in the old form, why is that? why do my emails come as they should and sometimes to clients in the old form? I looked at the screen of the letters that they receive and they are slightly different, there the letters go without HTML but simply in text, but I did not find other letter templates on the site, what could be the problem why one receives a normal letter and the other does not?
Answer the question
In order to leave comments, you need to log in
Because the letter for the client is sent in two formats at once - html and text
This is done for those who do not support html or are prohibited.
View in text format is edited in order.php model
for example, in opencart 2, the letter template is also indicated in prntscr.com/8w1yi7
, maybe this is somehow connected, in earlier versions everything should be the same.
but in general, just look among all the files of the controller and model where you send letters in the php code and check each of the pieces of code found, maybe there is an exception somewhere, for example, for a certain group of users
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question