Magento – How to customize checkout success page

checkoutmagento-1.9order-success-page

We want to add this text
"Click here to check the bank information" to the checkout success page and link it with URL a on the site.

How to do that?

We're running Magento 1.9

Best Answer

  • Check whether there is success.phtml file in app/design/frontend/yourthemepackage/yourcustomtheme/template/checkout path. If yes, start making changes to customize it.
  • If no, copy the success.phtml file from app/design/frontend/base/default/template/checkout folder and paste it into your theme to customize it.

Note: The problem is that when you modify any information on this page, you will want to preview what the results look like, you can't refresh the checkout success page, because a refresh of that page will clean the session and redirect you back to an empty shopping cart page. In other words, every time you make a change to the success-template, you would need to create a new order to preview the result. To allow success page to stay after refreshing the page, you can temporarily by editing:

app/code/core/Mage/Checkout/controllers/OnepageController.php

file and comment $session->clear(); line.

After commenting out the line should look like:

//$session->clear();

Remember to roll back your changes after completing the customization in the page.

Related Topic