Post by JanneJanne » Fri Jul 30, 2010 7:15 pm

I've tried searching for a solution from these forums but couldn't find any so i thought to post here.
I noticed that there are people who have had similar problems but still none of them seemed to apply 100% to this situation.

I'm using a Linux server and the in-built MAIL function. I've set Alert e-mail to YES.

I'm getting all these e-mails:
- customer e-mails (order confirmation, forgotten password, order status change etc.)
- the contact form (to admin e-mail)

Everything else seems to go OK but:
- not getting any alert e-mails to shop owner (i've tried SEVERAL different e-mail addresses none are getting any)
- not getting any additional alert e-mails (this i don't even need. I just tried this one too incase it would have solved my problem ;))

I have changed the look of the site and changed the language etc. But this same thing has happened from the beginning. Clean install (of version 1.48) in english language didn't send any alert e-mails either. Later i updated it to 1.48b but there wasn't any change to this behaviour.

*
If i've understood correctly the alert e-mail to shop owner should be the same as the order e-mail to customer (with the minor exception of the change in the title). I was thinking if there's something "funky" going with the title change? But as much as i've tried to find it... i haven't found the code where this happens.
Last edited by JanneJanne on Sun Aug 01, 2010 1:47 am, edited 2 times in total.

OpenCart to the Finnish Masses!


New member

Posts

Joined
Sat Jul 03, 2010 10:44 pm

Post by JanneJanne » Sun Aug 01, 2010 1:36 am

I managed to get this to work by using the idea from this post:
http://forum.opencart.com/viewtopic.php?f=23&t=6114

Incase someone else is having the same problem, here's what i did:
-opened the order.php (from catalog/model/checkout)
- added the additional php code below to line 386 "

//Q: Send additional email to store owner.
$mail->setTo($this->config->get('config_email'));
$mail->send();

"
And presto! now i'm getting the alert e-mails. Of course it isn't that fancy and the alert e-mails are 100% same than the ones the customers is getting. But hey! it seems to work :)

OpenCart to the Finnish Masses!


New member

Posts

Joined
Sat Jul 03, 2010 10:44 pm

Post by redje70 » Thu Sep 09, 2010 9:48 pm

I had the same problem, found out that it has to do with the subject line in order.php (catalog/model/checkout). The $order_total caused the problem. Just delete this last part and it works fine with me.

line 375

Code: Select all

$subject = sprintf($language->get('text_subject'), html_entity_decode($this->config->get('config_name'), ENT_QUOTES, 'UTF-8'), $order_id . ' (' . $order_total . ')');
change into

Code: Select all

$subject = sprintf($language->get('text_subject'), html_entity_decode($this->config->get('config_name'), ENT_QUOTES, 'UTF-8'), $order_id);

New member

Posts

Joined
Tue Sep 07, 2010 12:34 am
Who is online

Users browsing this forum: Amazon [Bot] and 54 guests