Magento check if customer is logged in

This is a method to verify if a customer is logged in or not:


if(Mage::getSingleton('customer/session')->isLoggedIn())
{
// Code to execute
}

Leave a Reply

Your email address will not be published. Required fields are marked *