Being between projects at the moment and having a bit of beach time on my hands Magento question asked on twitter. So, here’s how to use a different template file when the cart is empty.
First, you’ll have to create a custom Magento extension (if you don’t know how to do that, now is the time to stop reading further and go through some of the Magento documentation and tutorials available). You will only need the etc, controllers and Model directories for this custom extension. As always there are multiple ways to skin a cat, so I will start with the first method:
1. Override the checkout controller’s index action and update the layout
Add the following code to your custom controller class before the call to the renderLayout method