<?php // Check if customer is logged in $login = Mage::getSingleton('customer/session')->isLoggedIn(); //Check if User is Logged In if($login) { $groupId = Mage::getSingleton('customer/session')->getCustomerGroupId(); //Get Customers Group ID echo "Group ID :: ".$groupId; $group = Mage::getModel('customer/group')->load($groupId); echo "Group Name :: ".$group->getCode(); } ?>
Categories: Magento
1 Comment
Rathna Kumar · May 31, 2015 at 7:11 pm
How to add custom attributes in transactional email in magento 1.9?