Post by Cue4cheap » Mon Jun 08, 2020 10:13 am

I'm using OC 2.3.0.2.
I *thought* that order update emails went to the admin email address too?
If they are supposed to where is that setting?
If they do not natively then how do we get it to do that?
I would assume I would duplicate the new email lines

Code: Select all

				$mail = new Mail();
				$mail->protocol = $this->config->get('config_mail_protocol');
				$mail->parameter = $this->config->get('config_mail_parameter');
...
				$mail->send();
but change it to have the sendto as $this->config->get('config_email')

Could someone clear this up for me?
Thank you,
Mike
Last edited by Cue4cheap on Tue Jun 09, 2020 9:40 pm, edited 1 time in total.

cue4cheap not cheap quality


Active Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by pprmkr » Mon Jun 08, 2020 2:47 pm

Order update email is not send to admin.
Take a look at catalog/model/checkout/order.php starting at line 761 ...

If you add:

Code: Select all

				$mail->setTo($this->config->get('config_email'));
				$mail->send();
After the last $mail->send(); at line 804, then the update email is send to admin.

User avatar
Active Member

Posts

Joined
Sat Jan 08, 2011 11:05 pm
Location - Netherlands

Post by Cue4cheap » Mon Jun 08, 2020 7:41 pm

pprmkr wrote:
Mon Jun 08, 2020 2:47 pm
Order update email is not send to admin.
Take a look at catalog/model/checkout/order.php starting at line 761 ...

If you add:

Code: Select all

				$mail->setTo($this->config->get('config_email'));
				$mail->send();
After the last $mail->send(); at line 804, then the update email is send to admin.
Interestingly enough I did try in that location but with my test nothing was sent to admin (even after refreshing modifications) so I was thinking it must be the wrong place since it was under the catalog path and I was updating in admin.
I'll put it there and leave it there and see what happens.
Thank you,
Mike

cue4cheap not cheap quality


Active Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by Cue4cheap » Tue Jun 09, 2020 9:07 am

BTW pprmkr it does work as you wrote but only if "notify customer" is checked which is perfect for us.

Thank you,
Mike

cue4cheap not cheap quality


Active Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by paulfeakins » Tue Jun 09, 2020 5:05 pm

Cue4cheap wrote:
Tue Jun 09, 2020 9:07 am
BTW pprmkr it does work as you wrote but only if "notify customer" is checked which is perfect for us.
If this is now solved please add [SOLVED] to the beginning of the post title.

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Guru Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom
Who is online

Users browsing this forum: No registered users and 17 guests