Jump to content

Livello del Menu Principale


daninapoli

Recommended Posts

salve ho capito che devo toccare il file ps_mainmenu.php in questo punto:

        foreach ($categories as $key => $category) {
            $node = $this->makeNode([]);
            if ($category['level_depth'] > 1) {
                $cat = new Category($category['id_category']);
                $link = $cat->getLink();
                // Check if customer is set and check access
                if (Validate::isLoadedObject($this->context->customer) && !$cat->checkAccess($this->context->customer->id)) {
                    continue;
                }
            } else {
                $link = $this->context->link->getPageLink('index');
            }

sapete consigliarli come fare caricare solo 2 livelli ? mettendo questo:

if($category['level_depth'] > 2){ continue; } mi visualizza solo il primo livello.

devo far visualizzare solo 2 livelli...

 

Link to comment
Share on other sites

  • 2 weeks later...

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...