Magento – Check if user is logged in – Prüfen ob ein user eingeloggt
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"); } ?>