20i Reseller Hosting

Additional menu in opencart?

Discussion in 'Content Management Systems' started by bensd, Feb 23, 2014.

Thread Status:
Not open for further replies.
  1. bensd United Kingdom

    bensd Well-Known Member

    Joined:
    Jan 2007
    Posts:
    5,034
    Likes Received:
    61
    I haven't received a reply on the OC site so I thought I would post here in case anyone is familiar:


    I'm working on a site which needs an additional menu (I have already used the "category" menu).

    The menu will be used sitewide but is displayed differently on the homepage. I have already coded it into the homepage template but I'm not sure how to put it on the other pages?

    It would sit in "top content" but I don't know the best way to do it.

    Any help would be much appreciated.
     
  2. Domain Forum

    Acorn Domains Elite Member

    Joined:
    1999
    Messages:
    Many
    Likes Received:
    Lots
    articles.co.uk
     
  3. tifosi United Kingdom

    tifosi Well-Known Member

    Joined:
    Oct 2004
    Posts:
    3,424
    Likes Received:
    55
    Quick & dirty hack would be a vqmod to add the code to the catalog > controller > common > content_top controller.

    after:
    Code:
    	$this->data['modules'] = array();
    Insert the menu code block and then add to the data['modules'][] array

    Code:
    $menu = ...
    $this->data['modules'][] = $menu;
    
    content_top view will output it as the top module block.
     
Thread Status:
Not open for further replies.