Skip to content

Instantly share code, notes, and snippets.

@jarontai
Created June 19, 2014 01:11
Show Gist options
  • Select an option

  • Save jarontai/391c5a7d3fb7172e9a0f to your computer and use it in GitHub Desktop.

Select an option

Save jarontai/391c5a7d3fb7172e9a0f to your computer and use it in GitHub Desktop.
magento snippet
//check login
Mage::getSingleton('core/session', array('name'=>'frontend'));
$session = Mage::getSingleton('customer/session', array('name'=>'frontend'));
$loggedIn = $session->isLoggedIn();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment