Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

Additional menu in opencart?

Status
Not open for further replies.
Joined
Jan 11, 2007
Posts
5,065
Reaction score
106
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.
 
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.
 
Status
Not open for further replies.

Rule #1: Be Respectful

Do not insult any other member. Be polite and do business. Thank you!

Members online

Premium Members

New Threads

Domain Forum Friends

Lastest Listings

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Systreg AcornBot:
    Systreg has left the room.
      Systreg AcornBot: Systreg has left the room.
      Top Bottom