Magento Themes and Magento Extensions

Enable Template Path hints for Admin Panel :Magento

Posted on February 2nd, 2013 | Posted by admin

ust run this query in your magento database and u can see path hint in admin side of magento…

INSERT INTO core_config_data (scope, scope_id, path, value)

VALUES (‘default’, 0, ‘dev/debug/template_hints’, 1),

(‘default’, 0, ‘dev/debug/template_hints_blocks’, 1);

How to add new column of product list page in admin section of magento

Posted on January 3rd, 2013 | Posted by admin

How to add new column of product list page in admin section of magento.

At first open the following file

I have added new two column in product listing page in admin section. The code which i modified is given below.

Then to go protected function _prepareCollection() method

Magento: How to add an image for a custom widget in the admin wysiwyg

Posted on December 8th, 2012 | Posted by admin

Magento: How to add an image for a custom widget in the admin wysiwyg

This is just a quick How-to, I do not detail how to create a new widget.

All you need to do is add a gif with the correct file name to the following directory:

Now, to name the gif. In you widgets.xml file you set the widget “type”, which is the block class for the widget. Just replace the “/” slash with a double underscore and that is the file name. so if I had a widget with the type set to “custommodule/wigets_customwidget” I just create a gif with the name “custommodule__wigets_customwidget.gif”.

End result:

How to display Image Preview in Admin Form magento

Posted on February 15th, 2012 | Posted by admin

Magento allows us to create custom form in admin panel by creating our own custom module. We can create almost any field in the admin form by creating a class that extends the base class Mage_Adminhtml_Block_Widget_Form. The _prepareForm method allows to define our form elements.
Sometimes we may need to upload a file in the adminform, the default file field doesn’t provide the image preview when we upload an image file. For this purpose we need to use image field type as shown in the below snippet

$fieldset->addField('filename', 'image', array(
'label' => Mage::helper('customform')->__('Image'),

How to add additional row limit count in magento admin grid

Posted on February 3rd, 2012 | Posted by admin

Magento Provides the Grid Based Layout in adminpanel pages for most of the pages like manage customers,manage products etc. The default row limit options are 20,50,100,200 etc per page. But for the stores with more than 1000 products and customers these options are not sufficient to display the records in less no. of pages.

Step 1: For this example we are going to add an additonal row limit count as 500. To do this locate the file which is reponsible for showing row count dropdown. The file is located in


Step 2: Around line 81 the code is located as shown below

Page 1 of 3123»