Saturday, July 14, 2012

Magento Condition based on the Layout

Sometime we require to place the condition for particular layout  you can use this two methods



1) It will give the page name like view,list,cart etc.. based on the action 
<?php $_action = $this->getRequest()->getActionName(); ?> 

2) It will give the module name like catalog,checkut etc..
<?php $_module = $this->getRequest()->getModuleName(); ?>

so using both we can get our work done

No comments:

Post a Comment

Thankyou for your Comments

LinkWithin

Blog has moved, searching new blog...