4

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"

| improve this question | | | | |
9

Here you go

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

Then you should be all set

| improve this answer | | | | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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