tag:blogger.com,1999:blog-4023447737453296211.post7704150335107036276..comments2023-05-11T06:17:07.383-07:00Comments on Magento Solutions: Sort a category and subcategory list array alphabetically in MagentoAnonymoushttp://www.blogger.com/profile/16221706883610810567noreply@blogger.comBlogger14125tag:blogger.com,1999:blog-4023447737453296211.post-87432238262512605822014-11-19T06:35:40.084-08:002014-11-19T06:35:40.084-08:00Hi,
Put this code into phtml file where you have ...Hi,<br /><br />Put this code into phtml file where you have to display category in alphabetical order. In my case i want to display category in left side so i put above code into left.phtml file.Anonymoushttps://www.blogger.com/profile/16221706883610810567noreply@blogger.comtag:blogger.com,1999:blog-4023447737453296211.post-87857606259384654622014-11-19T02:34:59.355-08:002014-11-19T02:34:59.355-08:00In which file i have to change this send me the fo...In which file i have to change this send me the folder settingsAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-4023447737453296211.post-58926145730164622382014-03-15T11:11:04.247-07:002014-03-15T11:11:04.247-07:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/16221706883610810567noreply@blogger.comtag:blogger.com,1999:blog-4023447737453296211.post-41114420810731149282014-03-15T11:09:39.145-07:002014-03-15T11:09:39.145-07:00Hi yogesh,
I think this code will work you have t...Hi yogesh,<br /><br />I think this code will work you have to change position by name.<br />$category = Mage::getModel('catalog/category')->load(3);<br />$children = Mage::getModel('catalog/category')->getCollection()->setStoreId(Mage::app()->getStore()->getId());<br />$children->addAttributeToSelect('*')<br /> ->addAttributeToFilter('parent_id', $category->getId())<br /> ->addAttributeToFilter('is_active', 1)//get only active categories if you want<br /> ->addAttributeToSort('position');//sort by position<br /><br />foreach ($children as $child){<br /> //do something with $child<br />}Anonymoushttps://www.blogger.com/profile/16221706883610810567noreply@blogger.comtag:blogger.com,1999:blog-4023447737453296211.post-60947615602238632062014-03-15T03:27:07.210-07:002014-03-15T03:27:07.210-07:00Hi
i am using magebuzz extension and for getting ...Hi <br />i am using magebuzz extension and for getting all active category i customize it but my requirement category name in asc order but i am unable to solve it.<br /><br />can you help me ? yogesh shishangiyahttps://www.blogger.com/profile/00772375997163045008noreply@blogger.comtag:blogger.com,1999:blog-4023447737453296211.post-85252627415730154102012-12-13T20:46:55.571-08:002012-12-13T20:46:55.571-08:00@Raphael: you can use $category->getProductCoun...@Raphael: you can use $category->getProductCount(); for products count in category. I hope this will work.Anonymoushttps://www.blogger.com/profile/16221706883610810567noreply@blogger.comtag:blogger.com,1999:blog-4023447737453296211.post-53394122878489400832012-12-13T08:31:06.277-08:002012-12-13T08:31:06.277-08:00Thanks ! If we want to add the "product count...Thanks ! If we want to add the "product count" of the subcategory, how can we do this ?Raphaelnoreply@blogger.comtag:blogger.com,1999:blog-4023447737453296211.post-2835206265988201812012-12-10T09:31:24.646-08:002012-12-10T09:31:24.646-08:00Thanks !!!Thanks !!!GLeo vnnoreply@blogger.comtag:blogger.com,1999:blog-4023447737453296211.post-46077817357417684872012-08-30T08:01:18.074-07:002012-08-30T08:01:18.074-07:00Can you please post about filters?Can you please post about filters?MagGohttp://www.fmeextensions.comnoreply@blogger.comtag:blogger.com,1999:blog-4023447737453296211.post-23256846881447219722012-08-03T11:25:33.601-07:002012-08-03T11:25:33.601-07:00Hi how can i apply filter on any category!Hi how can i apply filter on any category!Magento Moduleshttps://www.blogger.com/profile/09924662114979739023noreply@blogger.comtag:blogger.com,1999:blog-4023447737453296211.post-13255388564254796852012-03-29T11:08:16.182-07:002012-03-29T11:08:16.182-07:00Hi,
Put this code into phtml file where you have ...Hi,<br /><br />Put this code into phtml file where you have to display category in alphabetical order. In my case i want to display category in left side so i put above code into left.phtml file.Anonymoushttps://www.blogger.com/profile/16221706883610810567noreply@blogger.comtag:blogger.com,1999:blog-4023447737453296211.post-4290048813223362152012-03-29T07:46:43.841-07:002012-03-29T07:46:43.841-07:00Hi,
were do I put this code?
ThanksHi,<br />were do I put this code?<br />ThanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-4023447737453296211.post-80707092697138430042012-02-22T09:33:56.660-08:002012-02-22T09:33:56.660-08:00Check above code i have changed with subcategory l...Check above code i have changed with subcategory list. If you like this than Please follow blog.Anonymoushttps://www.blogger.com/profile/16221706883610810567noreply@blogger.comtag:blogger.com,1999:blog-4023447737453296211.post-42090081365428524942012-02-21T11:01:23.270-08:002012-02-21T11:01:23.270-08:00Nice! Is there a way to show sub/child categories ...Nice! Is there a way to show sub/child categories too?Unknownhttps://www.blogger.com/profile/04317039889494069933noreply@blogger.com