Jump to content

modificare menu (RISOLTO)


overbags

Recommended Posts

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 by overbags (see edit history)
Link to comment
Share on other sites

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

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