Is there any solution for how to get category using store id ?
for example i have store A and store B , i want to show category store A in Store B ,
so i tried these example but none worked
$storeId = 2; // REPLACE 2 WITH YOUR STORE ID $categoryid = Mage::app()->getStore($storeId)->getRootCategoryId(); // GETTING ROOT CATEGORY ID FOR STORE ID 2
$_category = $category_model->load($categoryid); //$categoryid for which the child categories to be found $all_child_categories = $category_model->getResource()->getAllChildren($_category); //array containing all child categories id