Yöneticiye giden sipariş emailine adres ve telefon bilgisi nasıl eklenebilir?

nokta

OpenCart-TR
Katılım
14 Eki 2010
Mesajlar
118
Tepkime puanı
0
Puanları
0
1.5.x sürümü için Müşteriye giden mailin aynısının admine de gönderilmesi.

1. catalog/model/checkout/order.php dosyasını açın ama önce bir yedeğini alın ne olur, ne olmaz.

2. Bu satırları bulun (~LINES 475 - 488) arası satırlardır.
$mail = new Mail();
$mail->protocol = $this->config->get('config_mail_protocol');
$mail->parameter = $this->config->get('config_mail_parameter');
$mail->hostname = $this->config->get('config_smtp_host');
$mail->username = $this->config->get('config_smtp_username');
$mail->password = $this->config->get('config_smtp_password');
$mail->port = $this->config->get('config_smtp_port');
$mail->timeout = $this->config->get('config_smtp_timeout');
$mail->setTo($this->config->get('config_email'));
$mail->setFrom($this->config->get('config_email'));
$mail->setSender($order_info['store_name']);
$mail->setSubject($subject);
$mail->setText($text);
$mail->send();


3. Değiştirin:

// HTML
$template->data['text_greeting'] = $language->get('text_new_received') . "\n\n";
$template->data['invoice_no'] = '';
$template->data['text_invoice_no'] = '';
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/mail/order.tpl')) {
$html = $template->fetch($this->config->get('config_template') . '/template/mail/order.tpl');
} else {
$html = $template->fetch('default/template/mail/order.tpl');
}
$subject = sprintf($language->get('text_new_subject'), html_entity_decode($this->config->get('config_name'), ENT_QUOTES, 'UTF-8'), $order_id . ' (' . $order_total . ')');
$mail->setSubject($subject);
$mail->setTo($this->config->get('config_email'));
$mail->setHtml($html);
$mail->send();

Müşteriye giden mailin bir kopyası size gelecek adres, telefon, ip bilgileri olan mail.

Hepsi bu kadar, güle, güle kullanın.
 
Üst