Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have system,in there system i want to run catalog product flat index process pragmatically. I have code is

Mage::getModel('index/indexer')->getProcessByCode('catalog_product_flat'); Can any one tell me that is the right code...???or have any other code.

But i want to run the index process by indexer code "catalog_product_flat"

share|improve this question
up vote 5 down vote accepted

Here you go

$process = Mage::getSingleton('index/indexer')->getProcessByCode('catalog_product_flat'); //the ID is 4

Then you should be all set

share|improve this answer
Thanks... for your help... – Amit Bera Feb 14 '14 at 7:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.