Created
October 3, 2013 08:52
-
-
Save wcodex/6807149 to your computer and use it in GitHub Desktop.
How to get cart URL and Cart Item Count in Magento
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
<?php | |
// to get cart URL | |
$cartUrl = $this->getUrl('checkout/cart'); | |
//to get cart Item count | |
$_cartQty = Mage::getSingleton('checkout/cart')->getItemsCount(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment