-
-
Save marlonmleite/eab8d628f252ea76ad47 to your computer and use it in GitHub Desktop.
Magento: urls para login, logout, conta, registro, carrinho, verificar se usuário está logado e outros métodos utilitários.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//login url | |
<?php echo Mage::getUrl('customer/account/login'); ?> | |
//logout url | |
<?php echo Mage::getUrl('customer/account/logout'); ?> | |
//My Account url | |
<?php echo Mage::getUrl('customer/account'); ?> | |
//Register url | |
<?php echo Mage::getUrl('customer/account/create'); ?> | |
//Checkout url | |
<?php echo Mage::getUrl('checkout/cart'); ?> | |
//Check logged | |
<?php | |
if(Mage::getSingleton('customer/session')->isLoggedIn()){ | |
//logged in | |
}else{ | |
//not logged in | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment