To figure out whether you are on the home page or not, the following code will help:
|
1 2 3 4 |
$identifier = Mage::getSingleton('cms/page')->getIdentifier(); if($identifier == 'home') { //... } |
How to know if you are on the home page
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.