Show Direct Bank Deposit details on Confirmation Page

Ive got the Bank details showing on the Checkout page as per [URL=“CS-Cart Documentation — CS-Cart 4.16.x documentation”]CS-Cart Documentation — CS-Cart 4.16.x documentation.

I also wanted the details to show on the Order confirmation page (Order Info Page) because, for “Direct Bank Deposit” offline payment method, customers always “Place Order” before paying using their Internet banking web page. So they need to see the bank details to make the payment !

Thus I have mod’d views\orders\details.tpl to show Bank Account info on the “Order Info” if the payment method =“Direct Bank Deposit” AND the “Allow customers to pay order again if transaction was declined” =unchecked. Language values for your bank account info need to be added and set :

{$lang.bank_help_head} : Explanation html for customer instructions.

{$lang.bank_details} : Account details in html/ table format

{$lang.bank_help_short} : more instructions

Seems ok. but I would rather use a reference to the template “bank_deposit.tpl” than the name of the payment method “Direct Bank Deposit” as it be more universal.

Any Ideas which variables to use?

This coding at the bottom of views\orders\details.tpl:```php
{if $view_only != “Y”}

{if $settings.General.repay == “Y” && $payment_methods}

{include file=“views/orders/components/order_repay.tpl”}

{/if}





{* If pm is Direct Bank Deposit, show bank details only if Pay Again disabled }

{if $settings.General.repay == “Y” && $payment_methods}

{else}

{if $order_info.payment_method.payment == “Direct Bank Deposit”}



{$lang.bank_help_head}

{$lang.bank_details}

{$lang.bank_help_short}




{/if}

{/if}

{
End Direct Bank Deposit, show bank details only if Pay Again disabled *}



{if $smarty.request.confirmation == “Y”} {* place any code you wish to display on this page right after the order has been placed *}

{hook name=“orders:confirmation”}

{/hook}

{/if}

{/if}



{capture name=“mainbox_title”}{$lang.order_info}{/capture}

replaces ```php
{if $view_only != "Y"}<br />
	{if $settings.General.repay == "Y" && $payment_methods}<br />
		{include file="views/orders/components/order_repay.tpl"}<br />
	{/if}<br />
<br />
<br />
	{if $smarty.request.confirmation == "Y"} {* place any code you wish to display on this page right after the order has been placed *}<br />
	{hook name="orders:confirmation"}<br />
	{/hook}<br />
	{/if}<br />
{/if}<br />
<br />
{capture name="mainbox_title"}{$lang.order_info}{/capture}
```<p><a href="127.0.0.1/uploads/monthly_06_2011/post-3820-13081579022275.jpg">mod_details.tpl.jpg</a></p>

Also relevant is [URL=“http://forum.cs-cart.com/showthread.php?t=13885”]http://forum.cs-cart.com/showthread.php?t=13885[/URL]