getStoreCategories magento is not working Or you can say category is not displaying in the left hand side of the template.
Here’s what I did:
1. Catalog -> Manage Categories.
2. Click the ’Add Root Category‘ button in the upper-left area.
3. Fill in a name. For this walk-through, I used ’my new root cat‘.
4. Scroll down and set ’Is Active‘ to ’Yes‘.
5. Click the ’Display Settings‘ tab and set ’Is Anchor‘ to ’Yes‘.
6. Click the orange ’Save Category‘ button.
It should now say ”Category saved” in green at the top and your new category should be listed on the left.
Now we add a sub-cat:
1. Click the ’Add Subcategory‘ button in the upper-left.
2. Make sure you’re on the ’General Information‘ tab.
3. Fill in a name. For this walk-through, I used ’my new sub-cat‘.
4. Scroll down and set ’Is Active‘ to ’Yes‘.
5. Click the orange ’Save Category‘ button.
It should now say ”Category saved” in green at the top and your new sub-category should now be listed on the left under ’my new root cat‘.
Both of these have zero products, so let’s add at least one so that it shows up in your template/theme.
1. Catalog -> Manage Products.
2. Click the ’Add Product‘ button in the upper-right.
3. Go with the defaults for this walk-through and click the ’Continue‘ button.
4. Fill in a Name (’new test product‘), SKU (’new_test_product‘), Weight (0), set the Status to ’Enabled‘, and set the Tax Class to ’None‘.
5. Click on ’Prices‘ along the left-hand side and enter ’1‘ for the price (or whatever you want).
6. Click on ’Description‘ along the left-hand side and enter a bogus Description and Short Description.
7. Click on ’Categories‘ along the left-hand side and put a check mark next to each category that you want this product to appear in. For this walk-through, just select ’my new sub-cat‘.
8. Click on the orange ’Save‘ button in the upper-right.
It should now say ”Product was successfully saved.” in green at the top and your sample product should be in ’my new sub-cat‘.
Now we set your store to use this new root cat. This is the key:
1. System -> Manage Stores.
2. In Magento, you have Websites, and these contain Stores, and each Store has a View. It’s in the Store where you set the default root category. Click on the name of your store under the ’Store Name‘ column.
3. For ’Root Category‘, select ’my new root cat‘.
4. Click the orange ’Save Store‘ button in the upper-right.
5. Reload your store. Your one sub-cat should be listed, along with your one demo product item.
for more details and Info: http://www.magentocommerce.com/boards/viewthread/19207/