0

I wonder if there way to have same sort order of categories in frontend menu as in admin panel category tree.

enter image description here

I thought position attribute should be used for this goal, but I've found that categories from level 3 and deeper have same position value as a parent, number on the screenshot is a position value

enter image description here

5
  • Could you find solution?
    – Khushbu
    Apr 17, 2019 at 7:33
  • as I remember, it uses sort by default and the problem was in the custom menu. Apr 17, 2019 at 7:37
  • I am using this code $childrenCategories = $this->getAllChildren($category); to load child categories of specific category but it's not showing in the order same as in adminpanel. Any idea?
    – Khushbu
    Apr 17, 2019 at 12:16
  • you have to debug getAllChildren method and check sql query to see how order is formed. Apr 17, 2019 at 12:18
  • Any one got answer for this?
    – Arjun
    Dec 10, 2021 at 9:30

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.