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");
}
?>
GD Star Rating
loading...
GD Star Rating
loading...
Magento - Check if user is logged in - Prüfen ob ein user eingeloggt, 6.5 out of 10 based on 4 ratings