Wednesday, 7th June, 2017
Latest Posts
Home > Prestashop > Prestashop Add to Bookmarks missing in Chrome

Prestashop Add to Bookmarks missing in Chrome

Prestashop have published a fix on its bugtracker for the frontennd of your store where the “Add to Bookmarks option does not appear.

There was an problem in the js/tools.js file (the problem being the code did not do anything):

Change from:

[js toolbar="true"] function writeBookmarkLinkObject(url, title, insert)
{
if (window.navigator.userAgent.indexOf(‘Chrome’) != -1)
return (”);
else if (window.sidebar || window.external)
return (‘<a href="javascript:addBookmark(\” + escape(url) + ‘\’, \” + escape(title) + ‘\’)">’ + insert + ‘</a>’);
else if (window.opera && window.print)
return (‘<a rel="sidebar" href="’ + escape(url) + ‘" title="’ + escape(title) + ‘">’ + insert + ‘</a>’);
return (”);
}
[/js]

Change it to:

[js] function writeBookmarkLinkObject(url, title, insert)
{
if (window.sidebar || window.external)
return (‘<a href="javascript:addBookmark(\” + escape(url) + ‘\’, \” + escape(title) + ‘\’)">’ + insert + ‘</a>’);
else if (window.opera && window.print)
return (‘<a rel="sidebar" href="’ + escape(url) + ‘" title="’ + escape(title) + ‘">’ + insert + ‘</a>’);
return (”);
}
[/js]


Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>