Post by avsrthe » Wed Mar 03, 2021 1:06 pm

Hi
For Opencart version 3.0.3.7,
Please tell me how to stop sending Confirmation email to customers and Owners when order fails or cancelled. There is one OCMOD extesnion available for free in Opencart market place but that seems to be for Opencart version 2.x . Instead of extension, I need the modification code for the same in respective PHP, Twig file or whatever deems fit technically. Just for this, I don't want to buy any extension as it can be done with little modification in codes. Only thing is that I don't have knowledge about what code needed to be used for this purpose. Can someone help me please?
Thanks and regards
avrthe

Newbie

Posts

Joined
Tue Jan 05, 2021 10:04 am

Post by xxvirusxx » Wed Mar 03, 2021 3:14 pm

avsrthe wrote:
Wed Mar 03, 2021 1:06 pm
There is one OCMOD extesnion available for free in Opencart market place but that seems to be for Opencart version 2.x .
Why you didn't posted the link?

Also see here for information
viewtopic.php?t=217341

My converted modules | Buy me a beer | Opencart upgrade service


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by avsrthe » Wed Mar 03, 2021 4:10 pm

Why you didn't posted the link? wrote:
The link you had given viewtopic.php?t=217341, is for order status change etc...
But I have requested for a solution that needs at the time of placing order itself and not during editing orders in admin

Here is the link of that extension for opencart 2 but it is not free. Only Gitbub OCMOD is free.
https://www.opencart.com/index.php?rout ... S_Bangloss

Here is the link on the topic at Github with someone provided OCMOD for opencart old versions I think. You may please refer Github also. The link is:
https://github.com/mollie/OpenCart/issues/67

Thanks
avsrthe

Newbie

Posts

Joined
Tue Jan 05, 2021 10:04 am

Post by xxvirusxx » Wed Mar 03, 2021 5:03 pm

If you use the code from first ocmod extension in order mail controller from catalog at function alert, then should work.

https://github.com/mollie/OpenCart/issu ... -320976181

My converted modules | Buy me a beer | Opencart upgrade service


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by avsrthe » Thu Mar 04, 2021 1:09 pm

xxvirusxx wrote:
Wed Mar 03, 2021 5:03 pm
If you use the code from first ocmod extension in order mail controller from catalog at function alert, then should work.

https://github.com/mollie/OpenCart/issu ... -320976181
I have already tried the code from first OCMOD in Github before posting the link but did not work. There is no such code $mail->send() or " Alert"present in the search path catalog/model/checkout/order.php mentioned in OCMOD.
So I searched in catalog/controller/mail/order.php and could find the code and I replaced this code $mail->send(); by:
if(!in_array($order_status_id, array('7','10')))
{
$mail->send();
}
at all instances and at certain instance also. But Still confirmation email is sent to customers when order failed.

Can you please tell me what I am missing? Please help
Thanks
avrthe

Newbie

Posts

Joined
Tue Jan 05, 2021 10:04 am

Post by Naheed » Thu Mar 04, 2021 11:21 pm

Hello,
Please go through the below link, it might solve your problem
viewtopic.php?t=216899

User avatar
Active Member

Posts

Joined
Mon Aug 10, 2020 11:19 pm
Who is online

Users browsing this forum: No registered users and 18 guests