You may want to check if a user is logged in with Magento, possibly to display a link or promotional item. Here’s how to do it:
1 2 3 4 5 6 7 8 |
<?php if ($this->helper('customer')->isLoggedIn()) { echo("Anonymous user"); } else { echo("Authenticated user"); } ?> |
I bow down humbly in the presence of such gretanses.
I don’t work with that framework but I think your source code is wrong… actually you need to swap the ‘echo’ callings.
Thanks for this code, it helped out a ton.
Brett
Excellent just what i was looking for
Just what I was looking for
thanks
Great