Magento – Getting the currently logged in customer or admin user

I know this has been explained elsewhere, but I wanted a central location I could reference as needed. So, let’s get started. If you are on a page in Magento, and want to get information about the currently logged in customer, or on the admin side, the admin user: // Customer $customer = Mage::getSingleton('customer/session')->getCustomer(); $custName… Continue reading Magento – Getting the currently logged in customer or admin user

Published
Categorized as Magento
Close Bitnami banner
Bitnami