I figured out how to customize my catalog pages depending on whether or not the user was logged in with this piece of code:
$this->helper('customer')->isLoggedIn()
Now I am trying to customize my pages according to the Customer Group that the person belongs to. What is the code for that? I just need the little one-line statement like I listed above to help me.
If someone does know the answer, how did you find it? I looked through the new PHPDocs and I can’t even find my code from above in there so I am really unsure when the PHPDocs would be useful to me.
i am not as familiar, as the original poster, with PHP. how could i use this to allow only certain customer groups to view certain categories of products. thank you for your time
i am not as familiar, as the original poster, with PHP. how could i use this to allow only certain customer groups to view certain categories of products. thank you for your time
Hy,
the Magento roadmap says, that there will come a functionality like this in next stable version
It will be a fair few months until this is in, I have a client at the moment who requires some restrictions right now.
So my choice is to either use something else, or find a way of doing this thats harder, then move the restrictions over to the proper way of doing it once it comes into play.
I’ve compiled as much useful info as possible on how to do this, there are still some gray area’s i’m not too sure on.