how to delete empty categories and subcategories in magento? 

Please LogIn to Reply!

Post By: admin | 26-01-2012 06:35 Reply

 

Hi
I am new to magento learning. I want to implement something that would delete the empty categories and sub categories if there are no products in them from back end automatically.

There may be 100s of categories.So I don\\\’t want to use backend manually for this.

I am in trouble please help me.

I am referring this link but this is only hiding parent categories from navigation bar even if it\\\’s sub categories have products in them.

Thanks.Hiding Category

On the link given above how we will fetch the “id” in Observer.php at line

“ if ($item->getEntityTypeId() == 3)"I mean to say how I will know what to write in place of ‘3’.

`Reply Or Comment!
Please LogIn to Reply!