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?
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?
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:
and surround this line with an IF condition, so it now looks like this:
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
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();
Code: Select all
if ($notify) {
$mail->send();
}
Elena
Did any of you have any luck with this problem?
We are not using the status updates because of the SPAM being send out....
We are not using the status updates because of the SPAM being send out....
@Elena: Is this behaviour present even in ver OC-2.0.3.1 ?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
Regards,
Sun Systems
Industrial Electronics and Instrumentation
Thank you it's workedainelena 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

OC 2.0.1.1
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
Add below "{$mail->send();}"
if ($notify) {$mail->send();}
}
but dosn't work,update order and no sent email

2.0.3.1
journal 2
maybe try to refresh modifications, what else I remember maintenance mode need to be switch off
Hi, its still send email if i change the order status even if i dont checked the box.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
Any idea? please
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=875439maffe wrote: ↑Sun Dec 01, 2024 5:54 amThis 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.
Mike
cue4cheap not cheap quality
Who is online
Users browsing this forum: No registered users and 99 guests