How to Check Current Category has Child Category or not in Magento In this post i will show you how you can get the list of subcategories of a category….
Read More
How to Check Current Category has Child Category or not in Magento In this post i will show you how you can get the list of subcategories of a category….
Check customer is logged in or not in Magento You can check easily the customer is loged in or not by this simple code snippets.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
$session=Mage::getSingleton('customer/session', array('name'=>'frontend') ); if ($session->isLoggedIn()) { echo "customer is logged in"; } else { echo "Customer is Not logged in"; } //Another Way to Do this : if ($this->helper('customer')->isLoggedIn() ) { echo "customer is logged in"; } else { echo "customer is Not logged in"; } |