Reindex via SSH

Posted on October 31st, 2012 | Posted by admin

Sometimes your Magento store will reach a point where a traditional browser-based reindex falls on its face. You’ll probably be presented with something like:

This isn’t good at all, especially if its your product index – you may find things like search and prices do not update if it stays like this!

Well there are many ways to combat this – lots of people tell you to truncate your database index tables, clear your var/locks folder – all sorts of stuff. What I find better is firstly try to re-index via SSH. It’s a lot quicker and most of the time it gets the job done.

To re-index via SSH you simple have to login via terminal/putty or some other SSH client. Now perform the following:

Insert a Custom Block into Magento Template File

Posted on October 29th, 2012 | Posted by admin

As apposed to creating / adding a block to one of your Magento theme files, working directly in one of the template or .phtml files is a better way to call a static block.

In continuing to develop and learn Magento I have made a number of discoveries that help clarify how to work within the setup of Magento. In most cases when looking to customize a given page, I was directed to making updates to the Layout .xml files.

However if I was looking to simply add a static block to a specific section of a template file, creating a static block to the appropriate .xml file would simply add the static block above or below a given area.

The following code for example, would add the contact_intro above my contact form, but in the setup of that page, I wanted the contact_intro to integrate into a specific section of the fonrm.phtml template. This was not possible by updating the contacts.xml file as follows:

Magento Performance Boost: Cleanup Old Session Files

Posted on October 28th, 2012 | Posted by admin

If left unchecked, Magento session files can grow out of control and have a negative impact on your sites performance (aswell as taking up storage space). This article explains how to make sure old session files are removed automatically.

Magento stores it’s session files in var/session and I’ve seen too many Magento installations where the size of this directory has grown into the gigabytes. A quick browse of this directory should tell you whether you have a problem or not.

PHP has it’s own ‘garbage collection’ process for deleting old session files, but it’s disabled in Debian “due to the strict permissions on /var/lib/php5″
So, if you are using Debian then you’ll need to setup a simple cron script to do this garbage collection for you.

How to Create Magento Root Category

Posted on October 28th, 2012 | Posted by admin

How to Create Magento Root Category

To create root category go to Catalog > Manage Categories page. Click on the ‘Add Root Category’ button. Fill all category data same way as for any other category and click on ‘Save Category’ button on top right side of the form.

Magento admin link to website

Posted on October 26th, 2012 | Posted by admin

Easily create your own link from the Magento admin panel to the frontend website.

One frustrating omission from the standard Magento admin panel is the lack of a link to the main website. Sure you can copy and paste the URL into a new tab or window, but when your developing a lot of sites, it’s nice just to have a link there ready.

So without further ado…

1. Open your admin header.phtml file into your favorite text editor, find it here:


Page 1 of 712345»...Last »