jcadima
1/17/2017 - 8:41 PM

If Home Conditional

If Home Conditional

http://magento.stackexchange.com/questions/12011/is-there-an-if-on-home-page-type-conditional-or-force-a-block-to-show-only-on

<?php

$routeName = Mage::app()->getRequest()->getRouteName();
$identifier = Mage::getSingleton('cms/page')->getIdentifier();

if($routeName == 'cms' && $identifier == 'home') {
    //  code
}