Now I have a code
<?php echo $this->getChildHtml('topLinks') ?>
which gives me some set of menus like Login, MyWishlist, My Account, Checkout, and Mycart. But, now i need to change the label of these above mentioned links. What should I do?
layoutmagento-1.7templatetheme
Now I have a code
<?php echo $this->getChildHtml('topLinks') ?>
which gives me some set of menus like Login, MyWishlist, My Account, Checkout, and Mycart. But, now i need to change the label of these above mentioned links. What should I do?
Best Answer
For login, logout and my account link you can create your own local.xml in your theme layout. And do something like below
The original code for this you can find in your layout customer.xml
For changing my cart and checkout link, you need to rewrite
Mage_Checkout_Block_Links
and then override itsaddCartLink()
andaddCheckoutLink()
methods.And for changing wishlist link you can rewrite
Mage_Wishlist_Block_Links
and then override its_createLabel
function.Please remember, never change in core files always override them in your own module and for layout changes do them in your local.xml in your theme layout.