Zen Cart Logo
Forums / General Questions / How To Add A "Save This to Favorites" Link or Button

How To Add A "Save This to Favorites" Link or Button

Locked

Views: 1,506

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
15 Oct 2008, 5:48 PM
#1
globie avatar

globie

Zen Follower

Join Date:
Aug 2008
Posts:
134
Plugin Contributions:
0

How To Add A "Save This to Favorites" Link or Button

Can someone please tell me how I can add a link that will save our website to someone's favorites?

I know of the module that is in the downloads area, but you have to click Ctrl + D to save site. Is there any way that you can make it a link or button in the EZ Pages for someone to click on and it will allow them to save it?

15 Oct 2008, 7:00 PM
#2
globie avatar

globie

Zen Follower

Join Date:
Aug 2008
Posts:
134
Plugin Contributions:
0

Re: How To Add A "Save This to Favorites" Link or Button

I found this code:

<a href="javascript:window.external.addFavorite('http://www.mycupcoffee.com','www.MyCupCoffee.com');"> Save Our Site</a>

Can someone please tell me where to insert this code???? I've tried placing it in the tpl_header file with the EZPages code, and when I look at my site I see the link, but when I click on it nothing happens.

:unsure:

16 Oct 2008, 3:16 PM
#3
skyegospel avatar

skyegospel

New Zenner

Join Date:
Aug 2008
Location:
Isle of Skye, Scotland
Posts:
92
Plugin Contributions:
0

Re: How To Add A "Save This to Favorites" Link or Button

Globie, are you using Firefox by any chance? If so, have you ried it on internet explorer? I am havin a lot of problems trying to get thi don myself - I have searched and searched for code that will work both firefox and ie, but can't find anything! I found a web site that uses one that works and looks the same in both browsers but couldn't see how it was done.

One thing I have used is the Bookmark Sidebox (found here: http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=865 ). It is good - puts the add to favourites text (which can be altered) in a sidebox. It getsaround the browser differences by making it 'Add to Favourites' if you are using IE, but it sense if you are using another browser that isn't compatible with the code and instead says 'press ctrl + D to bookmark' so is quite a compromise.

It's good, but I would also really like to find something that works across different broswers just by clicking.

Stuart

15 Jan 2009, 4:38 PM
#4
kburner avatar

kburner

Totally Zenned

Join Date:
Apr 2008
Location:
Flint, Michigan
Posts:
684
Plugin Contributions:
0

Re: How To Add A "Save This to Favorites" Link or Button

skyegospel:

Globie, are you using Firefox by any chance? If so, have you ried it on internet explorer? I am havin a lot of problems trying to get thi don myself - I have searched and searched for code that will work both firefox and ie, but can't find anything! I found a web site that uses one that works and looks the same in both browsers but couldn't see how it was done.

One thing I have used is the Bookmark Sidebox (found here: http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=865 ). It is good - puts the add to favourites text (which can be altered) in a sidebox. It getsaround the browser differences by making it 'Add to Favourites' if you are using IE, but it sense if you are using another browser that isn't compatible with the code and instead says 'press ctrl + D to bookmark' so is quite a compromise.

It's good, but I would also really like to find something that works across different broswers just by clicking.

Stuart

Did you ever find add to favorites/bookmark site link instead of installing a new sidebox?

I found a site with code details, but do not know where to put it. http://www.yourhtmlsource.com/javascript/addtofavorites.html

and follow link of see the code as:

<span style="cursor: hand; text-decoration: underline;" onclick="window.external.AddFavorite(location.href, document.title);"> Click here to add this page to your favorites</span>