Post by joggvald » Tue Feb 24, 2015 7:07 pm

Hi,

As many of you know the 2.0 version sends a e-mail to the customer when you have a change in order status even if notify customer is not checked.

This is creating many "spam" mails to my customers, do any of you guys have a quick fix solution for this?

Newbie

Posts

Joined
Tue May 27, 2014 8:01 pm

Post by mooonwalker » Thu Apr 02, 2015 6:02 am

Same problem here, is there any solution?

Newbie

Posts

Joined
Wed Apr 01, 2015 5:16 am

Post by ainelena » Mon Apr 13, 2015 4:43 am

file /catalog/model/checkout/order.php is doing that (even though you are changing status in Admin, change comes from catalog anyways).
in that file there is a function addOrderHistory, where close to the very end - around line 773 - there is a code that is commented like this:
// If order status is not 0 then send update text email
within this piece of code find a line that actually sends the email, it looks like this:

Code: Select all

$mail->send();
and surround this line with an IF condition, so it now looks like this:

Code: Select all

if ($notify) {
    $mail->send();
}
After this change the status (or any other history) update will be send out as email to customer ONLY when flag "Notify Customer" is set.

Elena

Newbie

Posts

Joined
Mon Apr 13, 2015 4:39 am

Post by Food From Heaven » Mon Apr 27, 2015 10:49 pm

Did any of you have any luck with this problem?

We are not using the status updates because of the SPAM being send out....


Posts

Joined
Mon Apr 27, 2015 10:47 pm

Post by ainelena » Wed Apr 29, 2015 12:14 am

Yes. If you just read the post above yours - it describes how to fix it. Did you try that ?
I am now using status update and only send emails to customer when I want to.

Regards
Elena

Newbie

Posts

Joined
Mon Apr 13, 2015 4:39 am

Post by sunsys » Mon Aug 10, 2015 7:21 pm

ainelena wrote:Yes. If you just read the post above yours - it describes how to fix it. Did you try that ?
I am now using status update and only send emails to customer when I want to.

Regards
Elena
@Elena: Is this behaviour present even in ver OC-2.0.3.1 ?

Regards,
Sun Systems
Industrial Electronics and Instrumentation


User avatar
Active Member

Posts

Joined
Tue Jan 27, 2015 5:19 am

Post by kotysoft » Mon Oct 12, 2015 10:52 pm

ainelena wrote:file /catalog/model/checkout/order.php is doing that (even though you are changing status in Admin, change comes from catalog anyways).
in that file there is a function addOrderHistory, where close to the very end - around line 773 - there is a code that is commented like this:
// If order status is not 0 then send update text email
within this piece of code find a line that actually sends the email, it looks like this:

$mail->send();

and surround this line with an IF condition, so it now looks like this:

if ($notify) {
$mail->send();
}

After this change the status (or any other history) update will be send out as email to customer ONLY when flag "Notify Customer" is set.

Elena
Thank you it's worked O0
OC 2.0.1.1

New member

Posts

Joined
Sat Feb 06, 2010 10:01 pm

Post by wilek666 » Wed Apr 06, 2016 2:57 am

works like a charm for OC 2.0.1.1, thank you :)

http://www.ortopediko.pl
http://www.pszczelafarma.pl


User avatar
New member

Posts

Joined
Sun Dec 07, 2014 2:26 am
Location - Warsaw, Poland

Post by saliverdim » Fri Jun 03, 2016 5:57 am

hi,


Add below "{$mail->send();}"

if ($notify) {$mail->send();}
}


but dosn't work,update order and no sent email :( can you help me ?

2.0.3.1
journal 2

Active Member

Posts

Joined
Wed Oct 07, 2015 12:15 am

Post by wilek666 » Sat Jun 04, 2016 3:59 pm

maybe try to refresh modifications, what else I remember maintenance mode need to be switch off

http://www.ortopediko.pl
http://www.pszczelafarma.pl


User avatar
New member

Posts

Joined
Sun Dec 07, 2014 2:26 am
Location - Warsaw, Poland

Post by BLINT » Wed Sep 28, 2016 1:33 am

ainelena wrote:file /catalog/model/checkout/order.php is doing that (even though you are changing status in Admin, change comes from catalog anyways).
in that file there is a function addOrderHistory, where close to the very end - around line 773 - there is a code that is commented like this:
// If order status is not 0 then send update text email
within this piece of code find a line that actually sends the email, it looks like this:

$mail->send();

and surround this line with an IF condition, so it now looks like this:

if ($notify) {
$mail->send();
}

After this change the status (or any other history) update will be send out as email to customer ONLY when flag "Notify Customer" is set.

Elena
Hi, its still send email if i change the order status even if i dont checked the box.
Any idea? please

Newbie

Posts

Joined
Wed Apr 13, 2016 3:15 am

Post by maffe » Sun Dec 01, 2024 5:54 am

This doesn't work on OpenCart 2.3.0.2 regarding the payment module that sends multiple emails such as 'payment in progress', 'payment almost complete', and 'payment successful'. I would like the customer to only receive an email for the completed order. Nothing else.

Active Member

Posts

Joined
Sun Jun 12, 2011 5:21 am
Location - Lelystad

Post by Cue4cheap » Mon Dec 02, 2024 12:07 am

maffe wrote:
Sun Dec 01, 2024 5:54 am
This doesn't work on OpenCart 2.3.0.2 regarding the payment module that sends multiple emails such as 'payment in progress', 'payment almost complete', and 'payment successful'. I would like the customer to only receive an email for the completed order. Nothing else.
You are poking at the wrong area... I'd keep with this post: viewtopic.php?p=875439
Mike

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am
Who is online

Users browsing this forum: No registered users and 99 guests