How To Show Page for Particular User Group In Magento
Show Page for Particular User Group In Magento
<?php
////Check if User is Logged In
$login = Mage::getSingleton(‘customer/session’)->isLoggedIn();
if($login){
//Get Customers Group ID
$groupId = Mage::getSingleton(‘customer/session’)->getCustomerGroupId();
//My wholesale customer id was 2
if($groupId == 2){
echo “wholesale Customer”;
}else{
echo “Not a wholesale Customer”;
}
}
?>