I have set up a couple of Customer Groups in Magento (General, Purchase Order Enabled) and i’m wondering if this is easy to display to the customer in their account area so they can see which group they belong to?
To change this setting, navigate to Stores > Settings > Configuration > Customers > Customer Configuration > Create New Account Options from your backend administrative dashboard.
Out of the box, Magento comes with three default customer groups: General, Not Logged In and Wholesale, but creating additional customer groups is very quick and easy.
Maybe @MagePsycho got it from an old version but on 1.5 you need to change the group model.
// Check Customer is loggedin or not
if(Mage::getSingleton('customer/session')->isLoggedIn()){
// Get group Id
$groupId = Mage::getSingleton('customer/session')->getCustomerGroupId();
//Get customer Group name
$group = Mage::getModel('customer/group')->load($groupId);
echo $group->getCode();
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With