I have edited XML files to add an icon before the My Cart top-link. I made the icon a link as well, but I added a simple ….
I am looking to instead use Magento's variable that holds My Cart's URL in case my store's URL changes.
I am looking for something like this:
<a href="<?php $_myCartLink ?>">...</a>
with the correct My Cart Link variable.
Thank you!
$parentBlock->addLink($text, 'checkout/cart', $text, true, array(), 50, null, 'class="top-link-cart"', '<a href="<?php echo Mage::getUrl('checkout/cart');?>"><i class="icon-shopping-cart"></i> </a>');
Best Answer
The line you are looking for is
...I think