Bank details in email - bank transfer plugin
- jameswadsworth
-
Topic Author
- Offline
when a person chooses to pay by transfer it would be very very useful if the bank details that are displayed at the checkout are also sent in the order confirmation email? Is there are easy way to do this?
Thanks, James
Please Log in or Create an account to join the conversation.
if($data->order_payment_method=="banktransfer"){
echo "bank information";
}
Please Log in or Create an account to join the conversation.
- jameswadsworth
-
Topic Author
- Offline
Please Log in or Create an account to join the conversation.
Can you explain in detail about below;
I'm struggled to make it.
Thanks
nicolas wrote:
Not automatically. You would have to edit the code of the email via the menu System->Emails and add something like that:
if($data->order_payment_method=="banktransfer"){
echo "bank information";
}
Please Log in or Create an account to join the conversation.
Thx for quick prompt ..I was wondering where to add the pointer (if ($data->order_payment_method=="banktransfer"){
echo "bank information";
}) should that go in (email / form_param.php) ?
I would really appreciate if you could guide me please ..
Cheers
Tomo
Please Log in or Create an account to join the conversation.
No, the email / form_param.php file is a view file that you're editing via the menu Display->Views.
You should edit the order creation/status/admin ntofication emails via the menu System->Emails (Business edition only).
Please Log in or Create an account to join the conversation.
Please is it possible to "echo" the field just filled in the bank transfer payment plugin ?
Thank youu
Please Log in or Create an account to join the conversation.
It's possible with such code:
Please Log in or Create an account to join the conversation.
- Posts: 2
- Thank you received: 0
Any changes?
Please Log in or Create an account to join the conversation.
That code is still valid.... however, it depends on where you add it and how.
In which email are you trying to add it and what code do you have around it ?
Note that since 4 years ago, the bank transfer details are automatically in the order notification email sent to the customer. So the customization mentioned on this thread is not necessary anymore.
Please Log in or Create an account to join the conversation.
- Posts: 2
- Thank you received: 0
thank you for your support.
The code is / was in the order status notification. Should the bank transfer details be also included in this email? I just removed all customisations and the details are not there...
Please Log in or Create an account to join the conversation.
No. The code to handle that is only in the "order created modification" since the "order status notification" email is sent after the order is confirmed (and thus already paid) normally.
So you'll still need to add custom code to the email if you want to add it in the "order status notification" email.
Note however that in that email, most of the times $data->order_payment_method doesn't exist as $data only contains the data of the order that are being modified. So in that email, you'll need to use instead $data->cart->order_payment_method as $data->cart contains all the order data.
Please Log in or Create an account to join the conversation.
- Posts: 18
- Thank you received: 2
Could you please explain it more precisely, how to edit the "status confirmation" email, to add bank transfer infos.
Let me explain.
In Germany we have to send a first email, that informs the customer, that he made an order.
With the second email, we confirm the order and have to send the payment details.
Thanks in advance
Maurizio
Please Log in or Create an account to join the conversation.
Like Nicolas explained ; The bank transfert details are currently only in the "order creation notification" email.
If you open that email ( HikaShop > System > Email) you will see in the "preload" part of the email the content ; it starts with:
The idea for your would be to remove the code from the email creation preload and copy it into the order status notification preloads.
But, please note that some modification would be required in that copy/pasted code since the structure of the data between the two emails is a bit different.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
I got Business 4.0.3 and there aren't any information about banktransfer in the order creation notification.
Regards,
Marco
Please Log in or Create an account to join the conversation.
The information is only added if the status of the order is enabled in the "unpaid" column of the System>Order statuses menu. So please make sure that this is the case for the "created" status.
Please Log in or Create an account to join the conversation.
Thank you for your reply. It took while to understand your message. Finally I went thru and it works as I wanted.
System - Order statuses - in line "created" - enable "Unpaid"
Please Log in or Create an account to join the conversation.
- Posts: 35
- Thank you received: 2
In my case the column unpaid is not clickable. Some other configuration needed to make it clickable?
Thanks in advance
Thomas
Please Log in or Create an account to join the conversation.
You need to click on the red crosses under the unpaid column for the order statues you wish to take intro account.
There is nothing to activate for that to be possible. Maybe a bug could prevent this from working. Could it be you have an old version of HikaShop ?
Please Log in or Create an account to join the conversation.