Here is my code:
<reference name="top.links">
<action method="removeLinkByUrl"><url>checkout/cart</url></action>
</reference>
Here how can i get full path of checkout/cart in <url></url>?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want to remove that link from the header of the whole site, I would just copy the
checkout.xmllayout file to my custom theme directory to override it, and comment/delete the line where it is added:But if you really need to remove the link via
removeLinkByUrl(), looking through the core code they usually do this:Then there is a method called
getRegisterUrl()inapp/code/core/Mage/Customer/Helper/Data.phpwhich looks like this:So if you need to get a URL for
checkout/cartyou could set up a custom Helper in a custom extension which does something similar.I hope this helps! Good luck!