friet Posted May 24, 2010 Share Posted May 24, 2010 I'm changing the layout of the cofirmation mail (my own color scheme etc...) but how do I resend the confirmation mail while testing w/o having to place another order every time I want to check the mail? And second question: my shop only uses bank-wire as a payment option. When the customer orders something he gets 2 mails: "order confirmation" and "awaiting bank wire payment". How do I disable the bank-mail? (I'm just gonna include the bank wire info in the order confirmation mail.) Link to comment Share on other sites More sharing options...
friet Posted June 2, 2010 Author Share Posted June 2, 2010 Forget the first question. Second one still stands though.Customer orders and gets 2 mails: "Order confirmation" and "awaiting bank wire payment". How do I disable the last one?*edit* Ok, I've found the admin > orders > statuses and I can uncheck the bank wire mail, but then I get no mail, not even the order confirmation... Link to comment Share on other sites More sharing options...
rocky Posted June 3, 2010 Share Posted June 3, 2010 This is a known issue in PrestaShop. See my solution here. Link to comment Share on other sites More sharing options...
friet Posted June 3, 2010 Author Share Posted June 3, 2010 That's not really what I'm asking...I do want a confirmation mail (so commenting line 350-351 is not what I want).I don't want an awaiting bankpayment mail.Unchecking the "send mail to customer" for bankwire causes the system to send no mail whatsoever.Does anyone know where the "send awaiting bankwire payment mail" code is so I can comment that section? Link to comment Share on other sites More sharing options...
rocky Posted June 3, 2010 Share Posted June 3, 2010 Why do you want to disable the "Awaiting bank wire payment" email? The customer will not have an email with your bank details, so they won't know where to send the payment unless they write down the bank wire details while checking out.I think you could disable it by changing lines 163-164 from: if (Validate::isLoadedObject($order)) Mail::Send(intval($order->id_lang), $result['template'], $topic, $data, $result['email'], $result['firstname'].' '.$result['lastname']); to: if (Validate::isLoadedObject($order) AND $result['template'] != 'bankwire') Mail::Send(intval($order->id_lang), $result['template'], $topic, $data, $result['email'], $result['firstname'].' '.$result['lastname']); Link to comment Share on other sites More sharing options...
friet Posted June 4, 2010 Author Share Posted June 4, 2010 Thnx for the help rocky. Will try this tonight.I'm adding the bank-wire info to the confirmation mail, so I can send out 1 mail instead of 2. Feels less spammy.*edit* Works. Thnx a lot rocky! Link to comment Share on other sites More sharing options...
orangeslice Posted June 15, 2010 Share Posted June 15, 2010 Why do you want to disable the "Awaiting bank wire payment" email? The customer will not have an email with your bank details, so they won't know where to send the payment unless they write down the bank wire details while checking out.I think you could disable it by changing lines 163-164 from: if (Validate::isLoadedObject($order)) Mail::Send(intval($order->id_lang), $result['template'], $topic, $data, $result['email'], $result['firstname'].' '.$result['lastname']); to: if (Validate::isLoadedObject($order) AND $result['template'] != 'bankwire') Mail::Send(intval($order->id_lang), $result['template'], $topic, $data, $result['email'], $result['firstname'].' '.$result['lastname']); Hi Rocky, wich file is this? This is driving me crazy! I can't find this line in paymentmodule.php... please help! Link to comment Share on other sites More sharing options...
orangeslice Posted June 15, 2010 Share Posted June 15, 2010 Never mind, it's in orderhistory.php in classes!And Yes It works!Thanx Rocky! Love u long time!For people who also want this solution:if (Validate::isLoadedObject($order) AND $result['template'] != 'PUTHEREANYTEMPLATETYOUWANT!') 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