overbags Posted April 19, 2019 Share Posted April 19, 2019 (edited) ciao a tutti devo nascondere dal menu la categoria 93 (attiva) tramite modifica php ho fatto diverse prove ma senza riuscirci una di queste prove ho modificato ps_mainmenu.php alla riga 730 /* Whenever a category is not active we shouldnt display it to customer */ if ((bool)$category['active'] === false) { continue; } in if ((bool)$category['active'] === false && (int)$category['id_category'] <> 93) { continue; } ma non cambia niente Edited April 19, 2019 by overbags (see edit history) Link to comment Share on other sites More sharing options...
Haumea Posted April 19, 2019 Share Posted April 19, 2019 Il primo if dice "continua" se la categoria non è attiva. Credo devi modificare in "OR [...] == 93 Link to comment Share on other sites More sharing options...
overbags Posted April 19, 2019 Author Share Posted April 19, 2019 grazie haumea provo e ti aggiorno Link to comment Share on other sites More sharing options...
overbags Posted April 19, 2019 Author Share Posted April 19, 2019 perfetto così funziona if ((bool)$category['active'] === false OR (int)$category['id_category'] == 93) { continue; } .... grazie haumea Link to comment Share on other sites More sharing options...
Haumea Posted April 19, 2019 Share Posted April 19, 2019 4 minutes ago, overbags said: perfetto così funziona if ((bool)$category['active'] === false OR (int)$category['id_category'] == 93) { continue; } .... grazie haumea Perfetto! 👌 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