Post by fantastico » Thu Jun 01, 2017 9:45 pm

Hello,
How can i disable the email sent to admin on order success in oc 2.3.0.2?
I tried commenting out the following in /catalog/model/checkout/order.php but this gives error on order status history update.

Code: Select all

// Admin Alert Mail
//if (in_array('order', (array)$this->config->get('config_mail_alert'))) {
//$subject = sprintf($language->get('text_new_subject'), html_entity_decode($this->config->get('config_name'), ENT_QUOTES, 'UTF-8'), $order_id);
Thanks.

New member

Posts

Joined
Wed Feb 20, 2013 2:47 am

Post by sdsoftware » Fri Jun 02, 2017 12:45 am

On the same file catalog/model/checkout/order Find and Comment out the first

Code: Select all

$mail->send();


After the lines you Posted. For me its line #746 before the comment

Code: Select all

// Send to additional alert emails
be carefull cause there are other sentmail inits there. For the Customers etc dotn disable those!!!

Also If you go to store->settingd->mail i Think you can Uncheck the notification under "MAIL ALLERTS"

Software Support And Development www.sdware.eu
Ccookie Module || Admin Category/Manufactory/Attribute Filter || Admin Customizer || Bank Tranfer Extended
Business Inquiries Here
My extensions Page Here


User avatar
New member

Posts

Joined
Mon May 29, 2017 3:37 pm


Post by fantastico » Fri Jun 02, 2017 1:16 am

Thanks sdsoftware for your reply.

Actually it is the second $mail->send(); the first one is on line 658. is it correct and the same on your end?

In store->settings->mail is only for additional emails, it does not affect the main admin order emails.

Many thanks.

New member

Posts

Joined
Wed Feb 20, 2013 2:47 am

Post by sdsoftware » Fri Jun 02, 2017 2:23 am

You are welcome.
Actually it is the second $mail->send(); the first one is on line 658. is it correct and the same on your end?
Yes thats what I am trying to explain but my English are getting Worse when I am in a hurry! :D

Try->catch->error And you will find the solution :) Its one of those for sure.
In store->settings->mail is only for additional emails, it does not affect the main admin order emails.
Oh I see.. Thank you for the Info :-)

Software Support And Development www.sdware.eu
Ccookie Module || Admin Category/Manufactory/Attribute Filter || Admin Customizer || Bank Tranfer Extended
Business Inquiries Here
My extensions Page Here


User avatar
New member

Posts

Joined
Mon May 29, 2017 3:37 pm


Post by fantastico » Fri Jun 02, 2017 8:26 pm

Thanks for your help sdsoftware. can you please explain how to use Try->catch->error for finding out the correct one?
Can anyone confirm which $mail->send(); should be commented out to stop admin order emails?

New member

Posts

Joined
Wed Feb 20, 2013 2:47 am

Post by sdsoftware » Fri Jun 02, 2017 11:18 pm

Its a phrase me and my team use . It means give it a try on test environment.
TRY - > commenting the second one
Place a test order
Catch the error -> If there is one.
See if it worked. If didnt send you a mail then you commented the right one.

Ans it is the one before the comment "// Send to additional alert emails"!

Software Support And Development www.sdware.eu
Ccookie Module || Admin Category/Manufactory/Attribute Filter || Admin Customizer || Bank Tranfer Extended
Business Inquiries Here
My extensions Page Here


User avatar
New member

Posts

Joined
Mon May 29, 2017 3:37 pm


Post by fantastico » Sun Jun 04, 2017 8:10 pm

Many thanks sdsoftware!

New member

Posts

Joined
Wed Feb 20, 2013 2:47 am
Who is online

Users browsing this forum: thekrotek and 53 guests