Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Изменение темы письма о заказе


A132
 Share

Recommended Posts

Приветствую всех!

Возник икой вопрос: как добавить в теме письма о заказе к его номеру ещё и дату формирования? Т.е. чтобы тема письма имела следующий вид "Магазин Рога и Копыи - Заказ 777 от 01.09.2021"

Догадываюсь, что править нужно файл /catalog/model/checkout/order.php и конкретно строку

$subject = sprintf($language->get('text_new_subject'), html_entity_decode($order_info['store_name'], ENT_QUOTES, 'UTF-8'), $order_id);

и в файле /catalog/language/ru-ru/mail/order.php подправить $_['text_new_subject']          = '%s - Заказ %s ';

но знаний, что конкретно надо дописать уже не хваиет.

Погделитесь умными мыслями, пожалуйси...

Edited by A132
очепятки
Link to comment
Share on other sites


Разобрался. Отвечу сам на свой же вопрос. Нужно дописать:

 

$subject = sprintf($language->get('text_new_subject'), html_entity_decode($order_info['store_name'], ENT_QUOTES, 'UTF-8'), $order_id, $order_info['date_added']);

 

И:

 

$_['text_new_subject']          = '%s - Заказ %s%s ';

Edited by A132
  • +1 1
Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.