diff --git a/src/app/code/community/Meanbee/AutoCategories/Model/Auto/Category/Abstract.php b/src/app/code/community/Meanbee/AutoCategories/Model/Auto/Category/Abstract.php index e2f5e98..cbb73f1 100644 --- a/src/app/code/community/Meanbee/AutoCategories/Model/Auto/Category/Abstract.php +++ b/src/app/code/community/Meanbee/AutoCategories/Model/Auto/Category/Abstract.php @@ -126,6 +126,10 @@ public function maintain($products = array()) { $this->getConnection()->query($insert); + if(Mage::helper('catalog/category_flat')->isEnabled()){ + Mage::getSingleton('index/indexer')->getProcessByCode('catalog_category_product')->reindexEverything(); + } + Mage::app()->setCurrentStore($originalStore); }