Archive for August, 2012


Hello Friend,

I found some useful article to add the edit link in Product Grid under the Manage Category.

You can do this in two ways.

1. Copy Mage/AdminHtml/Block/Catalog/Category/Tab/Product.php file into local folder and below line of code inside theĀ 


_prepareColumns()

method.


$this->addColumn('action',
array(
'header' => Mage::helper('catalog')->__('Action'),
'width' => '50px',
'type' => 'action',
'getter' => 'getId',
'actions' => array(
array(
'caption' => Mage::helper('catalog')->__('Edit'),
'url' => array(
'base'=>'*/catalog_product/edit',
'params'=>array('store'=>$this->getRequest()->getParam('store'))
),
'field' => 'id'
)
),
'filter' => false,
'sortable' => false,
'index' => 'stores',
));

Now, please check on manage category click on the last tab Category Products tabs there you can see as a last column “Edit” link is added.

I hope this will help you.

Thanks,
Jignesh

There are problem in reindexing in magento many times due to number of factors:

  • The number of products
  • The number of store views
  • The apache/lighttpd timeout setting
  • The php.ini maximum execution time & script input time
  • The lock file is still place from the previous time can preventing it running again

one more thing VPS or dedicated server is must have for Magento.

here i paste the trick/tips for the same.

First of all increase your execution time value from the .htaccess

 # php_value memory_limit 64M  
   php_value memory_limit 128M  
   php_value max_execution_time 18000  

Now open your shell/terminal:
go on upto “public_html/app/shell”

use “ls -l” command, to list out the files.
there is one indexer.php file in the list.

Commads:

  php indexer.php --info (Will shows list of allowed indexers)   
  php indexer.php --reindex all (Reindex data by all indexers)  

If you wish to reindex one by one then use following commands:

 php indexer.php --reindex catalog_product_attribute (Reindex Product Attribute)   
  php indexer.php --reindex catalog_product_price (Reindex Products prices)   

and so on…..

If you don’t have SSH (Command Prompt) access then try with following script;

 <?php  
 require_once 'app/Mage.php';  
 $app = Mage::app('admin');  
 umask(0);  
 for ($index = 1; $index <= 8; $index++) {  
     $process = Mage::getModel('index/process')->load($index);  
     $process->reindexAll();  
 }  

Save file with reindex/php and run go on browser and run it like: http://yourdomainname/reindex.php

Hope this helps,
Do you have any tips? Post them in the comments and I’ll add them to the list!