Wednesday, 16 April 2014

How to check is object

if(is_object(Mage::registry('current_category')))

{

$GetCurrentCatName=Mage::registry('current_category')->getName();

}

No comments:

Post a Comment