Post by openwes » Thu Apr 02, 2020 5:06 pm

Hello everyone,

I have imported customer accounts from an external system into OC 3.0.3.2.
Now I would like to manually add old orders to those customer accounts.
But when I add an order and save it, there is an order confirmation email sent automatically to the customer.
I would like to stop the sending of this email to the customer.
Could you please advice how to do this?

Thanks and regards

Newbie

Posts

Joined
Wed Feb 05, 2020 9:11 pm

Post by openwes » Thu Apr 02, 2020 6:38 pm

For everyone who is looking for the same solution,
with big thanks to Alexandre (from GeekoDev who make great extensions) for providing this solution:

edit the file /catalog/controller/mail/order.php an remove all occurences of :
$mail->send();

or add // before to comment.

You can do that temporary while you insert the orders and once done you can restore the original file.

Newbie

Posts

Joined
Wed Feb 05, 2020 9:11 pm

Post by paulfeakins » Thu Apr 02, 2020 7:03 pm

openwes wrote:
Thu Apr 02, 2020 5:06 pm
But when I add an order and save it, there is an order confirmation email sent automatically to the customer.
You're adding these manually? How many are there?

You could pay a developer such as ourselves or post a job in the Commercial Support Forum.

Could save you a lot of time.

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

Post by emilymoore » Wed Sep 23, 2020 7:38 pm

Thank you guys. I was looking for the same solution.

Newbie

Posts

Joined
Wed Sep 23, 2020 7:26 pm


Post by letxobnav » Wed Sep 23, 2020 9:28 pm

you could have just disabled the mail events in admin.

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan
Who is online

Users browsing this forum: No registered users and 24 guests