Hi,
In the old OC (1.4.xx) i used to receive an order confirmation email which looked very similar to the email that is sent to the customer which shows billing address, delivery address and products etc. Now in OC v1.5.2.1 all i get is an email similar to below:
You have received an order.
Order ID: 248
Date Added: 25/03/2012
Order Status: Complete
Products
1x Nike air max trainer £99.99
Order Totals
Sub-Total: £99.99
Free Shipping: £0.00
Total: £99.99
This means that i have to log into the admin section to find delivery addresses etc. Is there a setting i am missing to duplicate the email sent to the customer??
In the old OC (1.4.xx) i used to receive an order confirmation email which looked very similar to the email that is sent to the customer which shows billing address, delivery address and products etc. Now in OC v1.5.2.1 all i get is an email similar to below:
You have received an order.
Order ID: 248
Date Added: 25/03/2012
Order Status: Complete
Products
1x Nike air max trainer £99.99
Order Totals
Sub-Total: £99.99
Free Shipping: £0.00
Total: £99.99
This means that i have to log into the admin section to find delivery addresses etc. Is there a setting i am missing to duplicate the email sent to the customer??
paulnic777 wrote:Hi,
In the old OC (1.4.xx) i used to receive an order confirmation email which looked very similar to the email that is sent to the customer which shows billing address, delivery address and products etc. Now in OC v1.5.2.1 all i get is an email similar to below:
You have received an order.
Order ID: 248
Date Added: 25/03/2012
Order Status: Complete
Products
1x Nike air max trainer £99.99
Order Totals
Sub-Total: £99.99
Free Shipping: £0.00
Total: £99.99
This means that i have to log into the admin section to find delivery addresses etc. Is there a setting i am missing to duplicate the email sent to the customer??
Go to this file: catalog/model/checkout/order.php
Find this line of code: (which is the confirmation function)
Code: Select all
public function confirm($order_id, $order_status_id, $comment = '', $notify = false) {
Code: Select all
// Admin Alert Mail
if ($this->config->get('config_alert_mail')) {
Find this line of code
Code: Select all
$text .= $language->get('text_new_order_id') . ' ' . $order_id . "\n";
Code: Select all
$text .= $language->get('text_new_order_id') . ' ' . $order_id . "\n";
$text .= "Customer Name" . ' ' . $new_variable_name . "\n";
$text .= "Customer Address" . ' ' . $new_variable_address . "\n";
$text .= "Customer Telephone" . ' ' . $new_variable_telephone . "\n";
$text .= "Customer Email" . ' ' . $new_variable_email . "\n";
Make a back up before you start messing. You MUST replace the dummy variables with actual variables such as"$new_variable_name" for this to work. I just wanted to get you started.
paulnic777 wrote:Hi,
In the old OC (1.4.xx) i used to receive an order confirmation email which looked very similar to the email that is sent to the customer which shows billing address, delivery address and products etc. Now in OC v1.5.2.1 all i get is an email similar to below:
You have received an order.
Order ID: 248
Date Added: 25/03/2012
Order Status: Complete
Products
1x Nike air max trainer £99.99
Order Totals
Sub-Total: £99.99
Free Shipping: £0.00
Total: £99.99
This means that i have to log into the admin section to find delivery addresses etc. Is there a setting i am missing to duplicate the email sent to the customer??
ok i had same problem this is how i fixed it
Go to this file: catalog/model/checkout/order.php
look for this bit of code under //Admin Alert Mail
Code: Select all
$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(html_entity_decode($subject, ENT_QUOTES, 'UTF-8'));
$mail->setText(html_entity_decode($text, ENT_QUOTES, 'UTF-8'));
$mail->send();
Code: Select all
$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(html_entity_decode($subject, ENT_QUOTES, 'UTF-8'));
$mail->setHtml($html);
$mail->setText(html_entity_decode($text, ENT_QUOTES, 'UTF-8'));
$mail->send();
after
This was the best way for me, try it http://forum.opencart.com/viewtopic.php?f=131&t=43539paulnic777 wrote:Hi,
In the old OC (1.4.xx) i used to receive an order confirmation email which looked very similar to the email that is sent to the customer which shows billing address, delivery address and products etc. Now in OC v1.5.2.1 all i get is an email similar to below:
You have received an order.
Order ID: 248
Date Added: 25/03/2012
Order Status: Complete
Products
1x Nike air max trainer £99.99
Order Totals
Sub-Total: £99.99
Free Shipping: £0.00
Total: £99.99
This means that i have to log into the admin section to find delivery addresses etc. Is there a setting i am missing to duplicate the email sent to the customer??
Cheers!

This I succeeded but I was still a problem because we need a simple e-mail that will be coming admin. This is the default one that suits me perfectly just do not know how to add addresses to napaltu and delivery. Pray your help we
Who is online
Users browsing this forum: No registered users and 15 guests