Adding a link in addto-links

What is the standard procedure or the best solution to add a new link to the product.info.addto block.

Currently I have modified the following file app/design/frontend/base/default/template/catalog/product/view/addto.phtml by adding an extra <li> to the existing link.

What I am worried is whether this will affect future upgrades and if so, what could be the solution.

EDITED I need to add a link "Add to Favorites" near "Add to Wishlist" and "Add to Compare".

Solutions

Never modify core code instead copy it to your active theme:

copy app/design/frontend/base/default/template/catalog/product/view/addto.phtml

to

app/design/frontend/default/ACTIVE_TEMPLATE/template/catalog/product/view/addto.phtml

This will prevent any future upgrades from over writing your work and trying to hunt down changes you've made.

You can either implement the Add to Favorites by doing as you suggested with a copy of addto.phtml in your active theme.

or

Modify view.phtml and list.phtml and customize with CSS.

Tags: Magento 1.x

Similar questions

Adding custom link in the beginning of the top.links section using default.xml
I have created a custom link using default.xml and moved it inside the top.links reference block. This is my code I have also made some changes to top.links block. This is what I have achieved. Plz check the screenshot. Now I need to move my custom link "Blog" before My Account that is in the first position. Screenshot where I need it. Ho...
what is the difference between cms page link and cms static block. Catalog product link and catalog category link
I know about catalog new product list, and how to make them show on the home page using the widget. But am having a hard time understanding the difference between cms page link and cms static block. Catalog product link and catalog category link. And how to use them.
Add new links to top links in Magento 1.9
It's pretty easy to add some types of links to top menu using this method: http://www.magentocommerce.com/knowledge-base/entry/adding-page-links-in-the-navigation-bar But I cannot figure out how to add a simple home page link. The above method does not seem to work. It seems that the method requires some type of URL, and if it's left blank or a "/"...
Add links to top links navigation
I'm studying to get FE certification and I'm trying to add a link to top.links block adding this code to local.xml: Although it works properly, I can't find any reference or example using the "block" parameter inside the "action" tag. Anyone knows which parameters are allowed in the action tag? thanks
301 redirect http links to corresponding https links
We are using the SSL securing the whole site now. At the admin end, unsecure and secure URL are all in the form of https. Now the issue we are facing right now is, for example, the link "http://www.example.com/abc" is 301-redirected to "https://www.example.com". The correct way is to redirect to "https ://www.example.com/abc Anyone can share the id...
Random product links replaced with Hashtag links
I'm fairly new with Magento having just started at a new company and have adopted the previous web managers broken database/website. Background: One of the main issues we've been having is that the Dedicated server crashed every time we try run the Catalog Search Index when requested to "Rebuild Catalog product fulltext search index". Issue: But mo...

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.