Developing the Checkout Onepage Success Page in Magento
Of course what I am talking about here is the order confirmation page.
That is the page you see once you have placed your order confirming your order number.
It is however a single use page.
Once you refresh it you are taken back to an empty cart and that is all fine in production but what if you are a developer in need of modifying the success page?
Constantly placing test orders is not a great solution.
I want to be able to just keep refreshing the page as I would do any other page I am currently developing.
Where is this magic?
Show me the magic!
<magic>
In app/code/Core/Mage/Checkout/controllers/OnepageController.php find the successAction() function and comment out
the line $session->clear()
;
<magic/>
Now your session is not cleared and you can keep refreshing the success page at will.
Credit to Rich for pointing this out.
Like this post? Share it :)