Post by SoCal » Mon Dec 15, 2008 7:41 am

Gents,

I'm trying to find the contrib by Lev regarding email forwarding notice of the sale ...  to the mercant.

Do  you know where I would find that.

thx
socal

New member

Posts

Joined
Fri Nov 07, 2008 3:23 pm

Post by bruce » Mon Dec 15, 2008 8:23 am

perhaps this is what you are looking for?

Active Member

Posts

Joined
Wed Dec 12, 2007 2:26 pm

Post by Qphoria » Mon Dec 15, 2008 12:06 pm

Probably the easiest way to do it would be

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();
AFTER, ADD:

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();
This basically sends 2 emails.
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.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by yl » Tue Jan 06, 2009 3:38 am

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!

yl
New member

Posts

Joined
Tue Nov 25, 2008 6:46 am

Post by Qphoria » Tue Jan 06, 2009 3:54 am

I don't have any idea about the link to the BCC stuff. my fix above is a simple working fix that makes a change only to the file i specified

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by yl » Tue Jan 06, 2009 4:14 am

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();
    }

yl
New member

Posts

Joined
Tue Nov 25, 2008 6:46 am

Post by Qphoria » Tue Jan 06, 2009 4:25 am

no.

You guys must carefully read. You need to copy and paste the entire chunk and place it beneath the existing one. Don't add just that one line
Last edited by Qphoria on Tue Jan 06, 2009 4:28 am, edited 1 time in total.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by hm2k » Tue Jan 06, 2009 4:35 am

Try this instead.

EDIT:
/library/cart/order.php

FIND:

Code: Select all

$this->mail->setTo($this->data['email']);
REPLACE WITH:

Code: Select all

$this->mail->setTo(array($this->data['email'],$this->config->get('config_email')));

UK Web Hosting


User avatar
Global Moderator

Posts

Joined
Tue Mar 11, 2008 9:06 am
Location - UK

Post by Qphoria » Tue Jan 06, 2009 4:36 am

Show off!  ;D
But will the customer also see your email in the "To" list?

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by hm2k » Tue Jan 06, 2009 4:39 am

Touché...

Try this instead.

EDIT:
/library/cart/order.php

FIND:

Code: Select all

$this->mail->send();
REPLACE WITH:

Code: Select all

$this->mail->send();
$this->mail->setTo($this->config->get('config_email'));
$this->mail->send();

UK Web Hosting


User avatar
Global Moderator

Posts

Joined
Tue Mar 11, 2008 9:06 am
Location - UK

Post by Qphoria » Tue Jan 06, 2009 4:40 am

ah yes, much cleaner.  :)

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by yl » Tue Jan 06, 2009 4:58 am

Sorry, I miss-understood the coding. It's fixed, both customer and owner are happy now.. :D
Thank you Q and hm2k.  :-*

yl
New member

Posts

Joined
Tue Nov 25, 2008 6:46 am

Post by SoCal » Sun Jan 18, 2009 1:10 am

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

hm2k wrote: Try this instead.

EDIT:
/library/cart/order.php

FIND:

Code: Select all

$this->mail->setTo($this->data['email']);
REPLACE WITH:

Code: Select all

$this->mail->setTo(array($this->data['email'],$this->config->get('config_email')));

New member

Posts

Joined
Fri Nov 07, 2008 3:23 pm

Post by Qphoria » Sun Jan 18, 2009 4:04 am

Don't use that one either.

Use his last one:
hm2k wrote: Touché...

Try this instead.

EDIT:
/library/cart/order.php

FIND:

Code: Select all

$this->mail->send();
REPLACE WITH:

Code: Select all

$this->mail->send();
$this->mail->setTo($this->config->get('config_email'));
$this->mail->send();

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 23 guests