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.15.x documentation”]CS-Cart Documentation — CS-Cart 4.15.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:{if $view_only != "Y"}
{if $settings.General.repay == "Y" && $payment_methods}
{include file="views/orders/components/order_repay.tpl"}
{/if}


[B]{* 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"}


[B] {$lang.bank_help_head}
{$lang.bank_details}
{$lang.bank_help_short}[/B]

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

{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 {if $view_only != "Y"}
{if $settings.General.repay == "Y" && $payment_methods}
{include file="views/orders/components/order_repay.tpl"}
{/if}


{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}

mod_details.tpl.jpg

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