Mian Waqas Posted September 15, 2021 Share Posted September 15, 2021 Hi, When a customer orders with "Bank Wire" module, he receives 2 emails, "Order confirmation & Awaiting payment by bank transfer" so i want to disable the "Order confirmation" email for bank wire only. Please note that this email shall be sent with other payment methods. the method in below link remove this email entirety from all payment modules. so if anyone know {IF} statement to be wrote here so that when its "bank wire" method the email shall not sent. http://www.module-addon.com/2019/02/disable-order-confirmation-email-in.html Thanks in advance Link to comment Share on other sites More sharing options...
ComGrafPL Posted September 16, 2021 Share Posted September 16, 2021 Did you check on statuses? Link to comment Share on other sites More sharing options...
Mian Waqas Posted September 16, 2021 Author Share Posted September 16, 2021 (edited) 6 minutes ago, ComGrafPL said: Did you check on statuses? the order confirmed emails are never in the status. please read my request again. Thanks Edited September 16, 2021 by SMTmardan (see edit history) Link to comment Share on other sites More sharing options...
ps8modules Posted September 16, 2021 Share Posted September 16, 2021 This is not the right guide. PaymentModule.php must be overwritten in the classes. Just find the part where the order_conf email template is sent and add a condition. Link to comment Share on other sites More sharing options...
Mian Waqas Posted September 16, 2021 Author Share Posted September 16, 2021 (edited) 17 minutes ago, WebSoft said: This is not the right guide. PaymentModule.php must be overwritten in the classes. Just find the part where the order_conf email template is sent and add a condition. but what condition ? so that it should not send the email if bank transfer is the payment mode. not other payment methods Edited September 16, 2021 by SMTmardan (see edit history) Link to comment Share on other sites More sharing options...
ps8modules Posted September 16, 2021 Share Posted September 16, 2021 (edited) . Edited December 29, 2022 by prestashopfree.com (see edit history) Link to comment Share on other sites More sharing options...
Mian Waqas Posted September 16, 2021 Author Share Posted September 16, 2021 2 hours ago, WebSoft said: sorry , where is this page? in modules? Link to comment Share on other sites More sharing options...
ps8modules Posted September 16, 2021 Share Posted September 16, 2021 (edited) if ($order->module != 'ps_wirepayment') No, this is not a module from Prestashop. I found him on the internet (click image).It is a module from a person who had a great reputation here on the forum, but unfortunately left the forum. You just need to add a condition for example. But if you don't know php and you are a beginner in Prestashop, it will be better to hire someone or buy a module. Edited September 17, 2021 by WebSoft (see edit history) 1 Link to comment Share on other sites More sharing options...
Mian Waqas Posted September 16, 2021 Author Share Posted September 16, 2021 this works but a minor change of $order rather then "order" if ($order->module != 'ps_wirepayment') { 1 Link to comment Share on other sites More sharing options...
xan.s Posted March 4 Share Posted March 4 On 9/16/2021 at 10:46 PM, Mian Waqas said: this works but a minor change of $order rather then "order" if ($order->module != 'ps_wirepayment') { Could you further explain where exactly into the code I could add this condition? Also, I've encountered some issues with when I'm changing code in my classes, even though after testing i put everything back as it was before, my website results crashed displaying error500, any ideas why? Link to comment Share on other sites More sharing options...
ps8modules Posted March 4 Share Posted March 4 (edited) Hi. If you read the whole thread, you will find that it changes in PaymentModule.php and according to the order_conf parameter. From the Prestashop version, the id of the line can be different, so you can't write the number XXX on the line, change yyy! A lot of people just copy the codes, but they don't copy everything, they have to leave out the bracket, comma, semicolon... Edited March 4 by ps8modules.com (see edit history) Link to comment Share on other sites More sharing options...
xan.s Posted March 4 Share Posted March 4 Hey, thank you. I've created a new thread regarding this topic since I'm running into quite some issues: Any help is very much appreciated. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now