Page 2 of 2
Re: Payment comments in email
Posted: Tue Sep 06, 2011 10:57 pm
by Qphoria
I added it in 1.4.9.x but it looks like it was removed in 1.5.x
I'll see about adding it back
Re: Payment comments in email
Posted: Wed Oct 05, 2011 4:52 pm
by ArtHulavi
Does anybody have a fix for this for 1.5? I can't get this (bank transfer as comments in confirmation e-mail) to work on 1.5
Re: Payment comments in email
Posted: Wed Oct 12, 2011 3:05 am
by andrixx
This works, the comment get passed to the order confirmation email.
But I don't want the message to me displayed when they are about to confirm the order.
First of all they have to write the order ID as a message to my bank and that is not shown when you should confirm the order at checkout. And they might start to write that info down when they don't need to.
It's just better to just let the comment be in the email.
also a good thing to do should be where you select bank transfer it should be a br and a text that say that bank transfer information get sent to the email.
Can anyone help me remove this comment from the checkout?
Re: Payment comments in email
Posted: Wed Oct 12, 2011 3:42 am
by andrixx
I did the following:
edited catalog/view/theme/default/template/payment/bank_transfer.tpl
I removed
Code: Select all
<h2><?php echo $text_instruction; ?></h2>
<p><?php echo $text_description; ?></p>
<p><?php echo $bank; ?></p>
<p><?php echo $text_payment; ?></p>
and added
<h2>Instructions sent with the order confirmation email</h2>
Re: Payment comments in email
Posted: Thu Nov 10, 2011 6:37 pm
by original
Hi
I have opencart 1.5.1.2 and my customers don't get this bank transfer information inside the confirmation email. This is really a big headache for me and my customers, so I hope someone will help me with this.
Any ideas, anyone?
Thanks
Re: Payment comments in email
Posted: Thu Dec 15, 2011 5:25 am
by Amrit
I tried changing as suggested, but I can't get it to function properly.
When I change:
Code: Select all
if ($comment && $notify) {
$template->data['comment'] = nl2br($comment);
} else {
$template->data['comment'] = '';
}
to:
Code: Select all
if ($comment && $notify) {
$template->data['comment'] = ($order_query->row['comment'] . '<br /><br />' . nl2br($comment));
} else {
$template->data['comment'] = '';
}
I do get the comments field to display in the email, but it contains no data.
How did you get it to work andrixx?
Cheers
Amrit
Re: Payment comments in email
Posted: Fri Dec 30, 2011 4:28 am
by Pinquin
I use opencart 1.5.1.1 and I'm not a programmer so if there is a mistake please correct me.
Bank transfer info in email:
catalog/model/checkout/order.php
Find:
Code: Select all
$template->data['totals'] = $order_total_query->rows;
Under it place:
Code: Select all
$template->data['comment'] = ($order_info['comment'] . '<br />' . nl2br($comment));
catalog/view/theme/default/template/mail/order.tpl
Find:
Code: Select all
<p><?php echo $text_footer; ?></p>
Above this place:
catalog/controller/payment/bank_transfer.php
Find:
Code: Select all
$comment = $this->language->get('text_instruction') . "\n\n";
Under it place:
Code: Select all
$comment .= $this->language->get('text_description') . "\n\n";
For me this is working all info is now the email.
Re: Payment comments in email
Posted: Thu Jan 12, 2012 2:12 pm
by cintabatik
Pinquin wrote:I use opencart 1.5.1.1 and I'm not a programmer so if there is a mistake please correct me.
Bank transfer info in email:
catalog/model/checkout/order.php
Find:
Code: Select all
$template->data['totals'] = $order_total_query->rows;
Under it place:
Code: Select all
$template->data['comment'] = ($order_info['comment'] . '<br />' . nl2br($comment));
catalog/view/theme/default/template/mail/order.tpl
Find:
Code: Select all
<p><?php echo $text_footer; ?></p>
Above this place:
catalog/controller/payment/bank_transfer.php
Find:
Code: Select all
$comment = $this->language->get('text_instruction') . "\n\n";
Under it place:
Code: Select all
$comment .= $this->language->get('text_description') . "\n\n";
For me this is working all info is now the email.
Ok, thanks...
Good idea...!

Re: Payment comments in email
Posted: Thu Jan 12, 2012 10:55 pm
by straightlight
I use opencart 1.5.1.1 and I'm not a programmer so if there is a mistake please correct me.
Only one found. Editing core files while this code may be working but rather apply these modifications from VQMod.

Re: Payment comments in email
Posted: Sat Feb 11, 2012 12:12 am
by Mike Guenther
How does "payment_comments_email.xml" work?
Re: Payment comments in email
Posted: Sat Feb 11, 2012 12:18 am
by straightlight
You must install VQMod to use this XML file.
Re: Payment comments in email
Posted: Sat Feb 11, 2012 12:20 am
by Mike Guenther
I use VQ mod, but where do I go to see this mod or use it? i have it installed, but dont know where to go on the admin side to use it?
Re: Payment comments in email
Posted: Sat Feb 11, 2012 12:24 am
by straightlight
As described on the above, these modifications are directly affected from the checkout process and nothing to do specifically under the admin.
Re: Payment comments in email
Posted: Sat Feb 11, 2012 12:26 am
by Mike Guenther
oh, I guess I misunderstood what this was for. I thought this was a mod that allowed the webmaster to add a comment for the payment type that would be passed on through the email to the customer.
Like the check payment module with "payable to"
Thanks for explaining.
Re: Payment comments in email
Posted: Sat Feb 11, 2012 12:29 am
by straightlight
While this idea may be a good one, what if the added comment by payment type would have to be differed according to the merchant's preferences ?

Re: Payment comments in email
Posted: Thu Sep 05, 2013 6:30 pm
by Gamesol
Hello All, I want ad an extra line of text into the email only that wont be displayed on the checkout page.
Please advise where this should go and how.
Thank you very much
Payment comments in email
Posted: Fri Sep 06, 2013 3:00 am
by Gamesol
@qphoria @straightlight ?
Sent from my iPhone using Tapatalk -
now Free
Re: Payment comments in email
Posted: Fri Sep 13, 2013 11:39 pm
by straightlight
Added to to-do list.
Payment comments in email
Posted: Tue Sep 17, 2013 4:09 am
by Gamesol
straightlight wrote:Added to to-do list.
Hi, if this reply was meant for me, thank you for taking the time to respond, I didn't realise it wasn't a small job but I have found a work around so it's not that urgent as you guys are very busy with more pressing issues, when I place orders for people, I just ad the custom text into the comments and it seems to be working as nobody is confused anymore.
Sent from my iPhone using Tapatalk -
now Free