To check your current page and compare as per you requirement, you need to check three values router name, controller name, and action name:

$route =  Mage::app()->getFrontController()->getRequest()->getRouteName();

$ctrl =  Mage::app()->getFrontController()->getRequest()->getControllerName();

$act =  Mage::app()->getFrontController()->getRequest()->getActionName();
Please login or Register to submit your answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.