I want to show the content of a magento static block on product page and maybe also on product listing page.
Static block will be visible only for
LOGGED IN USERS that are joining specific groups (eg.
logged in users that are inside
clients, not inside
P.S. I need to add it also in sidebar, where I have layered navigation.
Best How To :
$array =[1,2,3]; //your group ids array
$customerData = Mage::getSingleton('customer/session')->getCustomer();
$groupId = $customerData->getGroupId();
place above code in template name below