[Skip to main content](#vessel-content)

#   Bank Details in Confirmation Email

##

- **[Leilu](/forum/user/7162-leilu "View Leilu's Profile")**
- [![Leilu's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7162.jpg)](/forum/user/7162-leilu "View Leilu's Profile") Topic Author
- [ Offline](/forum/user/7162-leilu)

Less More

- Posts: 8
- Thank you received: 0
-
-

14 years 4 months ago [\#56401](#56401) by [Leilu](/forum/user/7162-leilu "View Leilu's Profile")  *[Bank Details in Confirmation Email](/forum/4-how-to/56401-bank-details-in-confirmation-email#56401 "Hi Nicholas, I've read most of the forum on this subject for bank transfer payment options to include bank details in confirmation email but I'm not very good with code.I've tried inserting the code below in Systems--&gt;Emails  if($data-&gt;order&#95;payment&#95;method==&quot;banktransfer&quot;){ echo &quot;bank information&quot;; } and  $paymentClass = hikashop::get('class.payment'); $payment = $paymentClass-&gt;get($data-&gt;order&#95;payment&#95;id); $payment-&gt;payment&#95;params = unserialize($payment-&gt;payment&#95;params); echo $payment-&gt;payment&#95;params-&gt;information;  This results in a blank screen during the final checkout process. Can you please tell me...  1. Which notification emails needs to be changed at System--&gt;Emails? 2. Where exactly to place the code? I know you mentioned 'somewhere below' but can you show an exact position with code?  Thanks :)")* was created by *[Leilu](/forum/user/7162-leilu "View Leilu's Profile")*

Hi Nicholas,
I've read most of the forum on this subject for bank transfer payment options to include bank details in confirmation email but I'm not very good with code.I've tried inserting the code below in Systems--&gt;Emails

if($data-&gt;order_payment_method=="banktransfer"){
echo "bank information";
}
and

$paymentClass = hikashop::get('class.payment');
$payment = $paymentClass-&gt;get($data-&gt;order_payment_id);
$payment-&gt;payment_params = unserialize($payment-&gt;payment_params);
echo $payment-&gt;payment_params-&gt;information;

This results in a blank screen during the final checkout process. Can you please tell me...

1. Which notification emails needs to be changed at System--&gt;Emails?
2. Where exactly to place the code? I know you mentioned 'somewhere below' but can you show an exact position with code?

Thanks ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzU2NDAxLWJhbmstZGV0YWlscy1pbi1jb25maXJtYXRpb24tZW1haWw/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14284
-
-

14 years 4 months ago [\#56470](#56470) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Bank Details in Confirmation Email](/forum/4-how-to/56401-bank-details-in-confirmation-email#56470 "Hi Nicholas, I've read most of the forum on this subject for bank transfer payment options to include bank details in confirmation email but I'm not very good with code.I've tried inserting the code below in Systems--&gt;Emails  if($data-&gt;order&#95;payment&#95;method==&quot;banktransfer&quot;){ echo &quot;bank information&quot;; } and  $paymentClass = hikashop::get('class.payment'); $payment = $paymentClass-&gt;get($data-&gt;order&#95;payment&#95;id); $payment-&gt;payment&#95;params = unserialize($payment-&gt;payment&#95;params); echo $payment-&gt;payment&#95;params-&gt;information;  This results in a blank screen during the final checkout process. Can you please tell me...  1. Which notification emails needs to be changed at System--&gt;Emails? 2. Where exactly to place the code? I know you mentioned 'somewhere below' but can you show an exact position with code?  Thanks :)")*

If you get a blank page, it means that you're editing the correct email ![;)](/media/kunena/emoticons/24.png ";)")
It also means that you didn't add your code properly in the email.
You can place completely at the end BUT you need to add php tags if you want it to work... So it should be like that:
&lt;?php
$paymentClass = hikashop::get('class.payment');
$payment = $paymentClass-&gt;get($data-&gt;order_payment_id);
$payment-&gt;payment_params = unserialize($payment-&gt;payment_params);
echo $payment-&gt;payment_params-&gt;information;
?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzU2NDAxLWJhbmstZGV0YWlscy1pbi1jb25maXJtYXRpb24tZW1haWw/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Leilu](/forum/user/7162-leilu "View Leilu's Profile")**
- [![Leilu's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7162.jpg)](/forum/user/7162-leilu "View Leilu's Profile") Topic Author
- [ Offline](/forum/user/7162-leilu)

Less More

- Posts: 8
- Thank you received: 0
-
-

14 years 3 months ago [\#58594](#58594) by [Leilu](/forum/user/7162-leilu "View Leilu's Profile")  Replied by *[Leilu](/forum/user/7162-leilu "View Leilu's Profile")* on topic *[Re: Bank Details in Confirmation Email](/forum/4-how-to/56401-bank-details-in-confirmation-email#58594 "Hi Nicholas, I've read most of the forum on this subject for bank transfer payment options to include bank details in confirmation email but I'm not very good with code.I've tried inserting the code below in Systems--&gt;Emails  if($data-&gt;order&#95;payment&#95;method==&quot;banktransfer&quot;){ echo &quot;bank information&quot;; } and  $paymentClass = hikashop::get('class.payment'); $payment = $paymentClass-&gt;get($data-&gt;order&#95;payment&#95;id); $payment-&gt;payment&#95;params = unserialize($payment-&gt;payment&#95;params); echo $payment-&gt;payment&#95;params-&gt;information;  This results in a blank screen during the final checkout process. Can you please tell me...  1. Which notification emails needs to be changed at System--&gt;Emails? 2. Where exactly to place the code? I know you mentioned 'somewhere below' but can you show an exact position with code?  Thanks :)")*

Hi Nicolas, sorry for this late response.

So I went back to ORDER_CREATION_NOTIFICATION_SUBJECT at Systems---&gt;Emails and add the code at the bottom and no blank screen but still no bank details :whistle:

if(!$app-&gt;isAdmin()){
echo JText::_('ORDER_VALID_AFTER_PAYMENT')."\n\n";
echo JText::sprintf('THANK_YOU_FOR_YOUR_ORDER',HIKASHOP_LIVE)."\n\n";
}
echo str_replace('&lt;br/&gt;',"\n",JText::sprintf('BEST_REGARDS_CUSTOMER',$mail-&gt;from_name));?&gt;
&lt;?php
$paymentClass = hikashop::get('class.payment');
$payment = $paymentClass-&gt;get($data-&gt;order_payment_id);
$payment-&gt;payment_params = unserialize($payment-&gt;payment_params);
echo $payment-&gt;payment_params-&gt;information;
?&gt; "

*This attachment is hidden for guests.
Please log in or register to see it.*

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzU2NDAxLWJhbmstZGV0YWlscy1pbi1jb25maXJtYXRpb24tZW1haWw/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Leilu](/forum/user/7162-leilu "View Leilu's Profile")**
- [![Leilu's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7162.jpg)](/forum/user/7162-leilu "View Leilu's Profile") Topic Author
- [ Offline](/forum/user/7162-leilu)

Less More

- Posts: 8
- Thank you received: 0
-
-

14 years 3 months ago -  14 years 3 months ago [\#58604](#58604) by [Leilu](/forum/user/7162-leilu "View Leilu's Profile")  Replied by *[Leilu](/forum/user/7162-leilu "View Leilu's Profile")* on topic *[Re: Bank Details in Confirmation Email](/forum/4-how-to/56401-bank-details-in-confirmation-email#58604 "Hi Nicholas, I've read most of the forum on this subject for bank transfer payment options to include bank details in confirmation email but I'm not very good with code.I've tried inserting the code below in Systems--&gt;Emails  if($data-&gt;order&#95;payment&#95;method==&quot;banktransfer&quot;){ echo &quot;bank information&quot;; } and  $paymentClass = hikashop::get('class.payment'); $payment = $paymentClass-&gt;get($data-&gt;order&#95;payment&#95;id); $payment-&gt;payment&#95;params = unserialize($payment-&gt;payment&#95;params); echo $payment-&gt;payment&#95;params-&gt;information;  This results in a blank screen during the final checkout process. Can you please tell me...  1. Which notification emails needs to be changed at System--&gt;Emails? 2. Where exactly to place the code? I know you mentioned 'somewhere below' but can you show an exact position with code?  Thanks :)")*

Nicolas, just edited the language files since I only have one payment method - bank transfer as follows ORDER_VALID_AFTER_PAYMENT="Your order will be processed as soon as we receive your payment.&lt;br/&gt;&lt;b&gt;The Bank Name&lt;/b&gt; &lt;br/&gt;
Subname&lt;br/&gt;
Account Number: XXXXXXXXX &lt;br/&gt;
IBAN: XXXXXXXXXXXXXX &lt;br/&gt;
BIC: XXXXXXX &lt;br/&gt;
&lt;br/&gt;"

So that seems to add the bank details to the confirmation email. Can you tell me if this will work generally for all email including outlook etc.

Last edit: 14 years 3 months ago by [Leilu](/forum/user/7162-leilu "View Leilu's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzU2NDAxLWJhbmstZGV0YWlscy1pbi1jb25maXJtYXRpb24tZW1haWw/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14284
-
-

14 years 3 months ago [\#58682](#58682) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Bank Details in Confirmation Email](/forum/4-how-to/56401-bank-details-in-confirmation-email#58682 "Hi Nicholas, I've read most of the forum on this subject for bank transfer payment options to include bank details in confirmation email but I'm not very good with code.I've tried inserting the code below in Systems--&gt;Emails  if($data-&gt;order&#95;payment&#95;method==&quot;banktransfer&quot;){ echo &quot;bank information&quot;; } and  $paymentClass = hikashop::get('class.payment'); $payment = $paymentClass-&gt;get($data-&gt;order&#95;payment&#95;id); $payment-&gt;payment&#95;params = unserialize($payment-&gt;payment&#95;params); echo $payment-&gt;payment&#95;params-&gt;information;  This results in a blank screen during the final checkout process. Can you please tell me...  1. Which notification emails needs to be changed at System--&gt;Emails? 2. Where exactly to place the code? I know you mentioned 'somewhere below' but can you show an exact position with code?  Thanks :)")*

Yes that way is good too in your case.
It will work the same for all mail clients.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzU2NDAxLWJhbmstZGV0YWlscy1pbi1jb25maXJtYXRpb24tZW1haWw/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.071 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
