News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Only specified VM MENU items in main menu

Started by 2dmaster, February 23, 2016, 11:02:08 AM

Previous topic - Next topic

2dmaster

Help please! Virtuemart 3.0.14.2 !j 3.4.8

Ghost

Easy way is to create an array and do an in_array check. You can add a module parameter to easily configure included/excluded categories.
$excluded = array(1,2,42,etc);

if(!in_array($excluded)){
                        $this->tree .='<a href="'.$link.'">';
                        $this->tree .= $name;
                        if($isparent) $this->tree .='<i class="icon-angle-'.((JFactory::getDocument()->direction=='ltr')?'right':'left').' pull-right"></i>';
                        $this->tree .= '</a>';}