Tag : customer-group-name

Magento get customer group Id and group name

Get customer group Id


// Check if costomer is logged in
if(Mage::getSingleton('customer/session')->isLoggedIn())
{
// Get group Id
$groupId = Mage::getSingleton('customer/session')->getCustomerGroupId();
}

Get group name:


$group = Mage::getModel('customer/customer_group')->load($groupId);
$group->getName();