Jump to content

Order Subcategories


Recommended Posts


Hello,

I have a prestashop 1.7.4 with the template TT_Tools,
I'm trying to sort the sub-categories of the side menu but I have not been successful.

I tried adding a class in the folder / override / modules / ps_mainmenu

class Ps_MainMenuOverride extends Ps_MainMenu implements WidgetInterface
{
    protected function generateCategoriesMenu ($ categories, $ is_children = 0)
    {
        $ categories = $ this-> sortCategories ($ categories);
        return parent :: generateCategoriesMenu ($ categories, $ is_children);
    }
    ...


But it does not work, 
Any suggestions?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...