Add Bank Details to success page in Magento

Here is a quick and simple way to add bank details to your checkout success page in Magento.
A useful magento customisation as ATM bank depoist are a very common method of payment in Korea.

1) The first thing you need to do is create a new Static Block to display your bank details ( Magento Admin > CMS > Static Blocks > Add New Block. )
Add your payment instructions here, you might want to center align the details and add heading tags, important to note the Idenitifier here i called mine “banktransferblock”.

korea bank details magento thankyou page

2) Now we need to add the below php code to call our static block if a user pays with bank transfer, to our success page template success.phtml you will find this in your theme directory /app/design/frontend//default/template/checkout.
Note if you do not have a success.phtml file in your theme directory not to wory just copy that file from the default magento theme directory to your own theme.

add the following code to your success.phtml file where you would like your bank details to be displayed, I placed this just under the “your order has been recived text” line 32.

      $total = $order->getGrandTotal();

    // check if payment was made with bank transfer metthod
    if ($order->getPayment()->getMethod() == "banktransfer")
        echo  "Total Due ";  echo  $formattedPrice = Mage::helper('core')->currency($total, true, false);

        // load the static block we created banktransgerblock 
        echo $this->getLayout()->createBlock('cms/block')->setBlockId('banktransferblock')->toHtml();

Now your customers will see your bank details on the checkout page something like this :

korea thank you page magento

Any questions just let us know ..

Related Posts