Magento – Check if user is logged in – Prüfen ob ein user eingeloggt

22. September 2010 at 11:55

You want to check if a user is logged in with Magento? This is the solution:

<?php
if ($this->helper('customer')->isLoggedIn()) {
 echo("Authenticated user");
}
else {
echo("Anonymous user");
}
?>