xan.s Posted March 4 Share Posted March 4 Hello forum, When making an order and choosing the BankWire payment method provided by Prestashop's Module, the customer receives 2 emails, the order_conf and bankwire emails. This process doesn't work for my shop since I need to review the order before actually manually confirming the order by changing it's status. I've seen multiple threads on this same topic, deactivating the order confirmation email by modifying the PaymentModule.php code, this is the modification I've tried: Before: if (Validate::isEmail($this->context->customer->email)) { Mail::Send( (int) $order->id_lang, 'order_conf', Context::getContext()->getTranslator()->trans( 'Order confirmation', array(), 'Emails.Subject', $orderLanguage->locale ), $data, $this->context->customer->email, $this->context->customer->firstname . ' ' . $this->context->customer->lastname, null, null, $file_attachement, null, _PS_MAIL_DIR_, false, (int) $order->id_shop );if (Validate::isEmail($this->context->customer->email)) { Mail::Send( (int) $order->id_lang, 'order_conf', Context::getContext()->getTranslator()->trans( 'Order confirmation', array(), 'Emails.Subject', $orderLanguage->locale ), $data, $this->context->customer->email, $this->context->customer->firstname . ' ' . $this->context->customer->lastname, null, null, $file_attachement, null, _PS_MAIL_DIR_, false, (int) $order->id_shop ); After: if (Validate::isEmail($this->context->customer->email)) { Mail::Send( (int) $order->id_lang, 'order_conf', Context::getContext()->getTranslator()->trans( 'Order confirmation', array(), 'Emails.Subject', $orderLanguage->locale ), $data, $this->context->customer->email, $this->context->customer->firstname . ' ' . $this->context->customer->lastname, null, null, $file_attachement, null, _PS_MAIL_DIR_, false, (int) $order->id_shop ); The only thing I've accomplished is my website crashing every time I touch or move this .php, even after leaving it as it was beforehand, my websites crashed and displaying nothing but Error500 on both back and front. The only way of fixing this is restoring a backup. Does anybody know what I can do to: a) modify the php so it doesn't send that order_conf email. b) prevent my site from crashing when I modify that php. I appreciate any help beforehand, Link to comment Share on other sites More sharing options...
ps8modules Posted March 4 Share Posted March 4 (edited) Hi. You confused me before. I offer a free module that is compatible from Prestashop 1.6.1 up to 8.1.4 (I updated it 8.0 > 8.1.4, I only had it off). So that I don't put a link to my page, you will definitely find the module 🙂 Edited March 5 by ps8modules.com (see edit history) Link to comment Share on other sites More sharing options...
xan.s Posted March 6 Author Share Posted March 6 6 minutes ago, xan.s said: Hey, thank you very much! We've installed your module and testing it, when we confirm the order using bankwire, we get an ERROR 500, here is the debug result: After deactivating Google Analytics Module, it's giving us this error: Link to comment Share on other sites More sharing options...
ps8modules Posted March 6 Share Posted March 6 Hi, your Prestashop version please. Full version e.g. 1.7.8.10 ... Link to comment Share on other sites More sharing options...
xan.s Posted March 7 Author Share Posted March 7 Solved, shoutout to @ps8modules.com, for developing the module and assisting me free of charge for 2 hours to fix all issues it was causing! 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