Post by mehmetb » Sun Dec 18, 2011 9:27 am

Hi everyone,

Here's a newbie question :) I googled and also searched the forum but could not find an answer. Hope you can help me.

We don't have a lot of products, so I just want to bypass the subcategories and display the products directly under the main category. We have dropdown menus on the top bar, and when I associate some products directly with a main category, I want them to be listed in the menu, not the subcategories. For example... Assume I have 3 soaps: soap-a, soap-b, soap-c. I just want to have a "Soap" category, which includes these three soaps. When I hover the mouse on the "Soap" on the menu, I would like to see a dropdown menu that lists these soaps. However, since I don't have any subcategories, Soap menu item sits there (looking like a button with no dropdown menu), and you need to click it to reach the products.

Any ideas will be very much appreciated. Thanks in advance!

-Memo

Newbie

Posts

Joined
Sun Dec 18, 2011 9:17 am

Post by deanballard » Tue Jan 17, 2012 7:54 pm

Any luck with this? I also would like to have this feature on the site I'm creating.

Dean

Newbie

Posts

Joined
Tue Jan 17, 2012 7:52 pm

Post by alin » Wed Jan 18, 2012 9:49 am

You should modify menu for your needs
file to edit catalog/controller/common/header.php
catalo/view/theme/yourtemplate/template/common/header.tpl

GOLDEN LEOPARD SYSTEM SOLUTION
An ICT System Solution Company in Vietnam
Website: Store: http://opencart.goleo.vn or http://www.opencart.com/index.php?route ... rname=alin


User avatar
Active Member

Posts

Joined
Fri Jun 10, 2011 8:16 pm

Post by losvre » Tue Jan 24, 2012 2:05 am

Hello guys,

I am also struggling with this. Any input is much appreciated.

Thanks

New member

Posts

Joined
Sat Nov 21, 2009 8:38 am

Post by jty » Tue Jan 24, 2012 9:12 am

per alin's post above
in controller/common/header.php, you need to modify the block of code under "//Menu"
it's getting categories cos the code says

Code: Select all

$children = $this->model_catalog_category->getCategories($category['category_id']);
you need to change that block of code to make it call products instead of categories

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am
Who is online

Users browsing this forum: No registered users and 6 guests