daninapoli Posted February 15, 2022 Share Posted February 15, 2022 Salve a tutti, volevo sapere se era possibile impostare il menu principale alla visualizzazione di una solo sottocategoria. es: Adesso Abbigliamento -> Scarpe -> Stivali, ecc ecc cosa vorrei: Abbigliamento -> Scarpe quindi fermalo al secondo livello. Link to comment Share on other sites More sharing options...
daninapoli Posted February 21, 2022 Author Share Posted February 21, 2022 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 More sharing options...
daninapoli Posted March 4, 2022 Author Share Posted March 4, 2022 a nessuno è mai capitato di fare questa modifica ? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now