Jobo_dk Posted September 23, 2011 Share Posted September 23, 2011 Hi, In my shop I would like to disable the order confirmation email to the costumer, because I will send another from our other system. in witch files do I need to edit? regards John B. Link to comment Share on other sites More sharing options...
CartExpert.net Posted September 23, 2011 Share Posted September 23, 2011 Hi! Go to 'Classes/PaymentModule.php' ; towards the end of the 'validateOrder' function put these lines in comment: if (Validate::isEmail($customer->email)) Mail::Send((int)($order->id_lang), 'order_conf', Mail::l('Order confirmation'), $data, $customer->email, $customer->firstname.' '.$customer->lastname, NULL, NULL, $fileAttachment); This should do the trick. 1 Link to comment Share on other sites More sharing options...
Jobo_dk Posted September 23, 2011 Author Share Posted September 23, 2011 hi, i did just try to do this, but if I try to go to check-out, I get a http-500 error. I only get this error if those lines are in comment regards John B. Link to comment Share on other sites More sharing options...
CartExpert.net Posted September 23, 2011 Share Posted September 23, 2011 Hi! Putting those lines in comment works. We tried it 2 times and got no error. Post the 2 lines in commented state. Regards Link to comment Share on other sites More sharing options...
Jobo_dk Posted September 26, 2011 Author Share Posted September 26, 2011 hi, think i got i now. I did commented the last } also.. /*if (Validate::isEmail($customer->email)) Mail::Send((int)$order->id_lang, 'order_conf', Mail::l('Order confirmation', $order->id_lang), $data, $customer->email, $customer->firstname.' '.$customer->lastname, NULL, NULL, $fileAttachment);*/ Link to comment Share on other sites More sharing options...
CartExpert.net Posted September 26, 2011 Share Posted September 26, 2011 Hi! That must have been the problem. Is it working now? Link to comment Share on other sites More sharing options...
Jobo_dk Posted September 26, 2011 Author Share Posted September 26, 2011 hi, yes it is, thank you for the help.. regards john 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