HI Everyone
This sounds.like a completely stupid question
I have setting up my new shop with 1.26 I have setup the Email in the admin settings
I created test client account & can to all the ordering & checkout stuff no probs. & the client gets a email
but I as the store admin done appear to get a email stating that a new order has being placed
what am I missing or doing wrong.
Thanks in advance
OpenCart Version 1.2.6
For simple mail notify:
http://forum.opencart.com/viewtopic.php ... e_5#p17538
OR for mail notify with details, i have this mod:
in catalog/model/checkout/order.php
row ~ 131:
after this code i have added:
Now, i need know:
1) how to send this mail in html format ?
2) how to insert in this mail also name-surname-address of customer ?
3) How to visualize correct text for accent in mail (eg: i have in text of mail: "sarà" - I need to have "sarà")
4) How to send this mail also a another address (cc: address)
Only with adding point 1-2-3-4 this mod is very complete...
Enjoy,
Thanks for support
For simple mail notify:
http://forum.opencart.com/viewtopic.php ... e_5#p17538
OR for mail notify with details, i have this mod:
in catalog/model/checkout/order.php
row ~ 131:
Code: Select all
$message .= $this->language->get('mail_new_order_footer');
$mail = new Mail();
$mail->setTo($order_query->row['email']);
$mail->setFrom($this->config->get('config_email'));
$mail->setSender($this->config->get('config_store'));
$mail->setSubject($subject);
$mail->setText($message);
$mail->send();
after this code i have added:
Code: Select all
// Added Store owner notify
$store_owner_message = 'Order ID: ' . $order_id . "\n" .
'Order Date: ' . date($this->language->get('date_format_short'), strtotime($query->row['date_added'])) . "\n" .
'Order Status: #' . $query->row['status'] . "\n";
$store_owner_message .= $this->language->get('mail_new_order_order') . ' ' . $order_id . "\n";
$store_owner_message .= $this->language->get('mail_new_order_date_added') . ' ' . date($this->language->get('date_format_short'), strtotime($order_query->row['date_added'])) . "\n";
$order_status_query = $this->db->query("SELECT * FROM order_status WHERE order_status_id = '" . (int)$order_status_id . "' AND language_id = '" . (int)$order_query->row['language_id'] . "'");
$store_owner_message .= $this->language->get('mail_new_order_order_status') . ' ' . @$order_status_query->row['name'] . "\n\n";
$store_owner_message .= $this->language->get('mail_new_order_product') . "\n";
$order_product_query = $this->db->query("SELECT * FROM order_product WHERE order_id = '" . (int)$order_id . "'");
foreach ($order_product_query->rows as $result) {
$store_owner_message .= $result['quantity'] . 'x ' . $result['name'] . ' (' . $result['model'] . ') ' . $this->currency->format($result['total'], $order_query->row['currency'], $order_query->row['value']) . "\n";
}
$store_owner_message .= "\n";
$store_owner_message .= $this->language->get('mail_new_order_total') . "\n";
$order_total_query = $this->db->query("SELECT * FROM order_total WHERE order_id = '" . (int)$order_id . "' ORDER BY sort_order ASC");
foreach ($order_total_query->rows as $result) {
$store_owner_message .= $result['title'] . ' ' . $result['text'] . "\n";
}
$store_owner_message .= "\n";
$store_owner_message .= $this->language->get('mail_new_order_invoice') . "\n";
$store_owner_message .= html_entity_decode($this->url->http('account/invoice&order_id=' . $order_id)) . "\n\n";
$order_download_query = $this->db->query("SELECT * FROM order_download WHERE order_id = '" . (int)$order_id . "'");
if ($order_download_query->num_rows) {
$store_owner_message .= $this->language->get('mail_new_order_download') . "\n";
$store_owner_message .= $this->url->http('account/download') . "\n\n";
}
if ($comment) {
$store_owner_message .= $this->language->get('mail_new_order_comment') . "\n\n";
$store_owner_message .= $comment . "\n\n";
}
$store_owner_message .= $this->language->get('mail_new_order_footer');
$mail_store_owner = new Mail();
$mail_store_owner->setTo($this->config->get('config_email'));
$mail_store_owner->setFrom($this->config->get('config_email'));
$mail_store_owner->setSender($this->config->get('config_store'));
$mail_store_owner->setSubject($subject);
$mail_store_owner->setText($store_owner_message);
$mail_store_owner->send();
1) how to send this mail in html format ?
2) how to insert in this mail also name-surname-address of customer ?
3) How to visualize correct text for accent in mail (eg: i have in text of mail: "sarà" - I need to have "sarà")
4) How to send this mail also a another address (cc: address)
Only with adding point 1-2-3-4 this mod is very complete...
Enjoy,
Thanks for support
Who is online
Users browsing this forum: No registered users and 191 guests