Bookmark your site

Step 1: Add the below code to the section of your page:

<script type="text/javascript">

/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
else if(document.all)// ie
	window.external.AddFavorite(url, title);

Step 2: Create either an image or text link that will be used as the Bookmark Site link. For the href attribute, use the following code:

<a href="javascript:bookmarksite('Site Nmae', '')">Bookmark this site!</a>

Moving Magento site To Another Server

MySQL Dump.

backup all files (make sure to archive on a .zip file).

Now you need to create a blank database and import the MySQL dump file to it.
Note: load the SQL dump into Editplus or something similar and search and replace the URLs before importing for example: “” replace with “”.

Getting and Using Categories and Sub Categories

Magento ver:
The code below does a couple of things, first it will get all the store’s categories – it then checks to see if they are active before continuing.
Also – it might be helpful to have the sub categories displayed, right? Well, in my case, I only wanted the subcategory for the current category displayed – so I put a check in to do so.

Magento: Print Labels

A quick fix to add a pop up print label print window in the orders page. Uses the default admin template, so you need to refresh on Magento upgrade. Have left red css border so you can use to position the label. (EDITORS PLEASE NOTE: if you edit this make sure to use 3 backslashes to get one output when using before the “n” character in code section.()
Edit info.phtml

Pin It on Pinterest