Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Access as per customer type
 
helpinghand2u
Jr. Member
 
Total Posts:  5
Joined:  2013-01-23
 

Hello,

Can magento provide functionality to have different access for different type of users?Like on my product page,some support documents are available for only registered users and guest user can access few documents.

 
Magento Community Magento Community
Magento Community
Magento Community
 
redstage
Sr. Member
 
Avatar
Total Posts:  173
Joined:  2009-12-04
Hoboken, NJ
 

Hi there!

Here’s an idea:

You can use this code to hide certain information on any page for guest customers:

<?php 

 
if($this->helper('customer')->isLoggedIn()){ ?>
     
LOGGED IN CONTENT
          
<?php } 
else  { ?>
     
GUEST ONLY CONTENT

 <?php }

?>

I hope that helps!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top