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
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
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
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
https://github.com/mollie/OpenCart/issu ... -320976181
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
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.xxvirusxx wrote: ↑Wed Mar 03, 2021 5:03 pmIf 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
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
Who is online
Users browsing this forum: gazih and 63 guests