<?php $login = Mage::getSingleton( 'customer/session' )->isLoggedIn(); //Check if User is Logged In if($login) { $groupId = Mage::getSingleton('customer/session')->getCustomerGroupId(); //Get Customers Group ID if($groupId == 2) //My wholesale customer id was 2 So I checked for 2. You can check according to your requirement { echo 'You are a wholesale Customer'; } } ?>
Hope it helps .. Thanks...