Skip to content

Instantly share code, notes, and snippets.

@wesleyalmd
Last active July 17, 2019 13:05
Show Gist options
  • Save wesleyalmd/77c260cfdf8c45d38ff9513a31fd8d84 to your computer and use it in GitHub Desktop.
Save wesleyalmd/77c260cfdf8c45d38ff9513a31fd8d84 to your computer and use it in GitHub Desktop.
[Magento 1] - isLogged
<?php
if(!Mage::getSingleton('customer/session')->isLoggedIn()){
//not logged in
}else{
// logged in
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment