Useful Action Bookmarklets for Bookmarks Toolbar


Bookmarklets are bookmarks you can keep in your Bookmarks toolbar that perform a task via JavaScript vs just a normal link.

INSTRUCTIONS: You can drag any of these links in the blue dashed outline directly to your toolbar. Each bookmarklet has a description of what it does as well as the code that makes it work underneath.

Note: These only work properly with Firefox and Chrome. Once you've added a bookmarklet to your toolbar you can right click on it and click Properties (Firefox) or Edit (Chrome) to change the text of the bookmarklet if you wish.

When added to the toolbar the javascript will become the URL of the bookmark and does it's task on either the current page or via a prompt dialog.

 

 

Site Explorer Site Explorer

Takes you to the Site Explorer and Content Page for the current site.
javascript:(function(){u=location.hostname;u2='http://'+u+'/store/admin/Content/SiteExplorer.aspx';window.open(u2);})()


Site Monitor Site Monitor

Lets you quickly view the current sites' AC version, DB version, Store Name, and Server name.
javascript:(function(){u=location.hostname;u2='http://'+u+'/store/sitemonitor.aspx';window.open(u2);})()


Admin Panel - Current Window Admin for this page

Admin Dashboard for the site. This will bring you to the admin console of whatever AmeriCommerce Spark Pay Online Stores site you are on in the same window.
javascript:(function(){l=window.location.hostname;window.open('http://'+l+'/store/admin','_self');})();


Admin Panel - New Window Admin for this page

Admin Dashboard for the site. This will bring you to the admin console of whatever AmeriCommerce Spark Pay Online Stores site you are on in a new window.
javascript:(function(){l=location.hostname;window.open('http://'+l+'/store/admin');})();


Change Theme for Site Change Theme

This prompts you for a theme id then opens the store you are on with that theme id as the current Preview with ?SessionThemeId.
javascript:(function(){l=location.href;id=prompt('Enter%20the%20SessionThemeID%20you%20want%20to%20preview');window.open(l+'?SessionThemeID='+id);})();


View KB Article View KB

This prompts you for an article number then views that KB article.
javascript:(function(){l='http://www.americommerce.com/kb/';id=prompt('Enter%20the%2KB#%20you%20want%20to%20view');window.open(l+'?f='+id);})();


Increase by 1 +1

This will take the url you are on and will increase the last number it finds in the url by 1
javascript:(function(){%20var%20e,s;%20IB=1;%20function%20isDigit(c)%20{%20return%20("0"%20<=%20c%20&&%20c%20<=%20"9")%20}%20L%20=%20location.href;%20LL%20=%20L.length;%20for%20(e=LL-1;%20e>=0;%20--e)%20if%20(isDigit(L.charAt(e)))%20{%20for(s=e-1;%20s>=0;%20--s)%20if%20(!isDigit(L.charAt(s)))%20break;%20break;%20}%20++s;%20if%20(e<0)%20return;%20oldNum%20=%20L.substring(s,e+1);%20newNum%20=%20""%20+%20(parseInt(oldNum,10)%20+%20IB);%20while%20(newNum.length%20<%20oldNum.length)%20newNum%20=%20"0"%20+%20newNum;%20location.href%20=%20L.substring(0,s)%20+%20newNum%20+%20L.slice(e+1);%20})();


Decrease by 1 -1

This will take the url you are on and will decrease the last number it finds in the url by 1
javascript:(function(){%20var%20e,s;%20IB=-1;%20function%20isDigit(c)%20{%20return%20("0"%20<=%20c%20&&%20c%20<=%20"9")%20}%20L%20=%20location.href;%20LL%20=%20L.length;%20for%20(e=LL-1;%20e>=0;%20--e)%20if%20(isDigit(L.charAt(e)))%20{%20for(s=e-1;%20s>=0;%20--s)%20if%20(!isDigit(L.charAt(s)))%20break;%20break;%20}%20++s;%20if%20(e<0)%20return;%20oldNum%20=%20L.substring(s,e+1);%20newNum%20=%20""%20+%20(parseInt(oldNum,10)%20+%20IB);%20while%20(newNum.length%20<%20oldNum.length)%20newNum%20=%20"0"%20+%20newNum;%20location.href%20=%20L.substring(0,s)%20+%20newNum%20+%20L.slice(e+1);%20})();


Open File Browser (New Admin Only) Open File Browser

This will open the file browser so you can view/upload files from the front end. This will only work if your store is on the new admin.
javascript: (function(){AC.LiveDesign.Overlay.show('/Store/Admin/Tools/FileBrowser.aspx?hideactionbutton=true',{hasAreaNav: false});})();


Send Email (New Admin Only) Send Email

This will open the Send Email dialog so you can quickly send emails from the front end. This will only work if your store is on the new admin. Note: this email does not have any order or customer context, so you customer and order mergecodes will not render.
javascript: (function(){AC.LiveDesign.Overlay.show('/store/admin/site/popupemaileditor.aspx',{hasAreaNav: false});})();


Clear Server Side Cache Clear Server Side Cache

This will clear the server side cache quickly, so you don't have to clear it in the Live Design Toolbar.
javascript:window.open(document.location.origin + "/store/admin/actions.aspx?ClearCache=true", "_self");

How helpful was this article?
Number of questions: 0