Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[Решено] Не приходит на почту полностью информация о заказе


 Share

Recommended Posts

Доброго всем дня! На почту приходят только лишь уведомления о заказах. Как сделать , что бы приходила полностью информация с ФИО, номер телефона, товар, адрес доставки и т.д. Хотя на opencart 2,x у меня все работало. Ниже креплю скрин.

image.png.1c9e7c3d4594e1c4e3e5668352d65e76.png

Edited by Minas
Link to comment
Share on other sites


  • 1 month later...

Самый простой вариант - дублировать себе письмо покупателя.

 

Идем в catalog/controller/mail/order.php и находим

$mail->setHtml($this->load->view('mail/order_add', $data));
$mail->send();

после вставляем

// Send to additional alert emails
$emails = explode(',', $this->config->get('config_mail_alert_email'));

$emails[] = $this->config->get('config_email');

foreach ($emails as $email) {
  if ($email && filter_var($email, FILTER_VALIDATE_EMAIL)) {
    $mail->setTo($email);
    $mail->send();
  }
}

находим

public function alert(&$route, &$args) {

после вставляем

return;

Решение не проверялось. Применять с осторожностью.

Link to comment
Share on other sites

  • 1 month later...
  • 5 weeks later...

Добрый день! Помогите пожалуйста решить проблемку с почтой, при оформлении заказа уведомление не приходит на почту. При этом сам заказ формируется нормально. 

В логе вот такая ошибка выходит 

[24-Feb-2018 23:10:05 UTC] mail() on [/home/httpd/vhosts/******.ru/httpdocs/system/library/mail/mail.php:77]: To: info@*****.ru -- Headers: MIME-Version: 1.0 Date: Sat, 24 Feb 2018 23:10:05 +0000 From: =?UTF-8?B?0JzQsNCz0LDQt9C40L0g0LTQtdGC0YHQutC40YUg0Y3Qu9C10LrRgtGA0L7QvNC+0LHQuNC70LXQuSAg?= <zakaz@****.ru> Reply-To: =?UTF-8?B?0JzQsNCz0LDQt9C40L0g0LTQtdGC0YHQutC40YUg0Y3Qu9C10LrRgtGA0L7QvNC+0LHQuNC70LXQuSAg?= <zakaz@****.ru> Return-Path: zakaz@***** X-Mailer: PHP/5.6.33 Content-Type: multipart/mixed; boundary="----=_NextPart_340b00b5b0d5c19afd3d8223d2d6cde8"

 

код файла /home/httpd/vhosts/*****.ru/httpdocs/system/library/mail/mail.php:77

 

    $message .= '--' . $boundary . '--' . PHP_EOL;

        ini_set('sendmail_from', $this->from);

        if ($this->parameter) {
            mail($to, '=?UTF-8?B?' . base64_encode($this->subject) . '?=', $message, $header, $this->parameter);
        } else {
            mail($to, '=?UTF-8?B?' . base64_encode($this->subject) . '?=', $message, $header);     ----- 77 строка 
        }
    }
}

 

Буду признателен за любую помощь!

Link to comment
Share on other sites


  • 1 month later...

У меня сработало, но письмо приходило с некорректными данными. Подозреваю, что из-за установки модуля, который я не смог нормально настроить.
Поэтому, в том же модуле сделал настройку и базовое сообщение на почту начало присылать все данные.

Link to comment
Share on other sites


  • 5 months later...
В 21.12.2017 в 01:42, SooR сказал:

Самый простой вариант - дублировать себе письмо покупателя.

 

Идем в catalog/controller/mail/order.php и находим


$mail->setHtml($this->load->view('mail/order_add', $data));
$mail->send();

после вставляем


// Send to additional alert emails
$emails = explode(',', $this->config->get('config_mail_alert_email'));

$emails[] = $this->config->get('config_email');

foreach ($emails as $email) {
  if ($email && filter_var($email, FILTER_VALIDATE_EMAIL)) {
    $mail->setTo($email);
    $mail->send();
  }
}

находим


public function alert(&$route, &$args) {

после вставляем


return;

Решение не проверялось. Применять с осторожностью.

Не работает на 3.0.2.0... 500 ошибка при отправки заказа. Что может быть?

Link to comment
Share on other sites


  • 2 months later...
В 13.09.2018 в 11:39, rihterok сказал:

Не работает на 3.0.2.0... 500 ошибка при отправки заказа. Что может быть?

работает. проверьте правильность

Link to comment
Share on other sites


  • 1 month later...
В 22.02.2018 в 16:19, Muzlook сказал:

А если нет такой папки mail/order.php  ???

 

 

тоже нет папки mail, как быть? (версия 2.3.0.2.3)

Edited by booss
Link to comment
Share on other sites


  • 10 months later...
  • 7 months later...

SooR спасибо!
все работает, только комментарий клиента не приходят в письме.

Edited by Stlc
Link to comment
Share on other sites


  • 1 month later...
В 20.12.2017 в 23:42, SooR сказал:

Самый простой вариант - дублировать себе письмо покупателя.

 

Идем в catalog/controller/mail/order.php и находим


$mail->setHtml($this->load->view('mail/order_add', $data));
$mail->send();

после вставляем


// Send to additional alert emails
$emails = explode(',', $this->config->get('config_mail_alert_email'));

$emails[] = $this->config->get('config_email');

foreach ($emails as $email) {
  if ($email && filter_var($email, FILTER_VALIDATE_EMAIL)) {
    $mail->setTo($email);
    $mail->send();
  }
}

находим


public function alert(&$route, &$args) {

после вставляем


return;

Решение не проверялось. Применять с осторожностью.

не советую использовать данный метод

да он рабочий и письмо будет приходить правильное, но через время корзина будет загружаться несколько минут и если стоит модуль новой почты то кружки с перезагрузкой крутятся очень долго.

 

если у кого есть решение, чтоб корзина быстро работала и отправлялось правильное письмо сообщите буду благодарен 

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

×
×
  • 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.