Probably the easiest way to do it would be
EDIT:
/library/cart/order.php
FIND:
AFTER, ADD:
This basically sends 2 emails.
The first to the customer
The second to the store email
EDIT:
/library/cart/order.php
FIND:
Code: Select all
$this->mail->setTo($this->data['email']);
$this->mail->setFrom($this->config->get('config_email'));
$this->mail->setSender($this->config->get('config_store'));
$this->mail->setSubject($this->data['email_subject']);
$this->mail->setText($this->data['email_text']);
$this->mail->setHtml(html_entity_decode($this->data['email_html']));
$this->mail->send();
Code: Select all
$this->mail->setTo($this->config->get('config_email'));
$this->mail->setFrom($this->config->get('config_email'));
$this->mail->setSender($this->config->get('config_store'));
$this->mail->setSubject($this->data['email_subject']);
$this->mail->setText($this->data['email_text']);
$this->mail->setHtml(html_entity_decode($this->data['email_html']));
$this->mail->send();
The first to the customer
The second to the store email
Last edited by Qphoria on Tue Jan 06, 2009 4:27 am, edited 1 time in total.
Q,
I am using latest version .7.9 rc5. No orders being forward to my email address in admin. I added modified coding as below below "data['email']". am getting an error.
I went to attached link, and added the cc coding to setting.php in admin/controller, language but still missing a file of template...
Please instruct me to fix it. Thanks!
I am using latest version .7.9 rc5. No orders being forward to my email address in admin. I added modified coding as below below "data['email']". am getting an error.
I went to attached link, and added the cc coding to setting.php in admin/controller, language but still missing a file of template...
Please instruct me to fix it. Thanks!
To your fix, only owner got the order confirmation email, customer did not receive it. Where is wrong?
if ($this->config->get('config_email_send') ) {
$this->mail->setTo($this->data['email']);
$this->mail->setTo($this->config->get('config_email'));
$this->mail->setFrom($this->config->get('config_email'));
$this->mail->setSender($this->config->get('config_store'));
$this->mail->setSubject($this->data['email_subject']);
$this->mail->setText($this->data['email_text']);
$this->mail->setHtml(html_entity_decode($this->data['email_html']));
$this->mail->send();
}
if ($this->config->get('config_email_send') ) {
$this->mail->setTo($this->data['email']);
$this->mail->setTo($this->config->get('config_email'));
$this->mail->setFrom($this->config->get('config_email'));
$this->mail->setSender($this->config->get('config_store'));
$this->mail->setSubject($this->data['email_subject']);
$this->mail->setText($this->data['email_text']);
$this->mail->setHtml(html_entity_decode($this->data['email_html']));
$this->mail->send();
}
Try this instead.
EDIT:
/library/cart/order.php
FIND:
REPLACE WITH:
EDIT:
/library/cart/order.php
FIND:
Code: Select all
$this->mail->setTo($this->data['email']);
Code: Select all
$this->mail->setTo(array($this->data['email'],$this->config->get('config_email')));
Touché...
Try this instead.
EDIT:
/library/cart/order.php
FIND:
REPLACE WITH:
Try this instead.
EDIT:
/library/cart/order.php
FIND:
Code: Select all
$this->mail->send();
Code: Select all
$this->mail->send();
$this->mail->setTo($this->config->get('config_email'));
$this->mail->send();
I take it that if I use this code by hm2k ... I should disregard the other coding Q describes ?
Will the code automatically find the merchants email address in config file ?
I humbly apologize for my ignorance.
socal
Will the code automatically find the merchants email address in config file ?
I humbly apologize for my ignorance.
socal
hm2k wrote: Try this instead.
EDIT:
/library/cart/order.php
FIND:REPLACE WITH:Code: Select all
$this->mail->setTo($this->data['email']);
Code: Select all
$this->mail->setTo(array($this->data['email'],$this->config->get('config_email')));
Don't use that one either.
Use his last one:
Use his last one:
hm2k wrote: Touché...
Try this instead.
EDIT:
/library/cart/order.php
FIND:REPLACE WITH:Code: Select all
$this->mail->send();
Code: Select all
$this->mail->send(); $this->mail->setTo($this->config->get('config_email')); $this->mail->send();
Who is online
Users browsing this forum: No registered users and 23 guests