Magento - Check if a User is logged in
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:
<?php
if ($this->helper('customer')->isLoggedIn()) {
echo("Anonymous user");
}
else {
echo("Authenticated user");
}
?>
Post new comment