Monday 1 September 2014

how to get logged in user id and email in magento

<?php $cuid = Mage::getSingleton('customer/session')->getCustomer()->getId();?>

<?php $cuemail = Mage::getSingleton('customer/session')->getCustomer()->getEmail();?>

No comments:

Post a Comment