Jump to content
overbags

modificare menu (RISOLTO)

Recommended Posts

Posted (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 by overbags (see edit history)

Share this post


Link to post
Share on other sites

Il primo if dice "continua" se la categoria non è attiva. Credo devi modificare in "OR [...] == 93

Share this post


Link to post
Share on other sites

perfetto così funziona

            if ((bool)$category['active'] === false OR (int)$category['id_category'] == 93) {
                continue;
            }

.... grazie haumea

Share this post


Link to post
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! 👌 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More