Skip to content

Instantly share code, notes, and snippets.

@evgv
Created July 12, 2016 15:34
Show Gist options
  • Save evgv/b294f6c99a15f50df605607d9401eb95 to your computer and use it in GitHub Desktop.
Save evgv/b294f6c99a15f50df605607d9401eb95 to your computer and use it in GitHub Desktop.
Magento. Get customer account urls.
/*Check if customer loggen id */
Mage::helper('customer')->isLoggedIn();

/* Get log in url */
Mage::helper('customer')->getLoginUrl();

/* Get register url */
Mage::helper('customer')->getRegisterUrl()

/* Get dashboard url */
Mage::helper('customer')->getDashboardUrl()
   
/* Get log out url */
Mage::helper('customer')->getLogoutUrl()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment