Forked from thagxt/Magento How to get the customer login, logout, register and checkout urls.php
Last active
January 30, 2018 20:54
-
-
Save Alzy/bdeab7f4994c83399dfe604991f58752 to your computer and use it in GitHub Desktop.
Magento How to get the customer login, logout, register and checkout urls
This file contains hidden or 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'); ?> | |
| Base url | |
| <?php echo Mage::getBaseUrl(); ?> | |
| HELPERS | |
| Cart amount | |
| <?php echo Mage::getSingleton('checkout/cart')->getItemsCount(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment