Post by spdavis » Mon Jan 13, 2014 10:32 am

Hi..

I am trying to build an online shop with little or no PHP skills.. Not easy !!

I'm using OC ver.1.5.4 with it's default template.

As it stands, when you click the Category option all products within that section are displayed. So (for example) if I select menu option DRESSES, I get ALL the dresses within that section, 28 to a page x number of pages. This you can determine via admin.

BUT I want to remove the top menu bar drop downs and just use the left side menu as a direct link to sub-menus that may be called Mxi Dresses or maybe Midi Dresses.

In this way, customers get to see stock other wise not seen because thats what the top menu is doing. while left column menu allows customer direct to product type or range.

This two menu split acts as a logical filter on a basic level, while offering (I hope) maximum display of stock otherwise not seen.

Thanks to any body who may help resolve this seemingly odd request...

New member

Posts

Joined
Wed Jan 30, 2013 9:52 am

Post by inactiveaccount9912 » Tue Jan 14, 2014 2:08 pm

If I understand corectly and you wish to remove the dropdown of the top categories, edit the file catalog/view/theme/yourtheme/template/common/header.tpl , find and remove the code:

Code: Select all

<?php if ($category['children']) { ?>
      <div>
        <?php for ($i = 0; $i < count($category['children']);) { ?>
        <ul>
          <?php $j = $i + ceil(count($category['children']) / $category['column']); ?>
          <?php for (; $i < $j; $i++) { ?>
          <?php if (isset($category['children'][$i])) { ?>
          <li><a href="<?php echo $category['children'][$i]['href']; ?>"><?php echo $category['children'][$i]['name']; ?></a></li>
          <?php } ?>
          <?php } ?>
        </ul>
        <?php } ?>
      </div>
      <?php } ?>

Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am

Post by Mealz » Tue Jan 14, 2014 3:00 pm

Can't you just edit the categories and deselect the field that puts them in the top menu bar?

You can also adjust your categories by creating new ones with the DRESSES category as the parent... Would help to split up your items a bit better - either brand name or by MAXI DRESSES, MIDI DRESSES etc.

New member

Posts

Joined
Fri Jul 26, 2013 4:58 pm

Post by spdavis » Wed Jan 15, 2014 2:51 am

@ florinsith.. Perfect !! Exactly what I wanted.. Thank you.

@ Mealz.. I could, but that would potentially leave all sub-menus listed.. Not as I want, that the sub-menus of the selected option.. Thank yes, a good alternative approach. Thank you.

New member

Posts

Joined
Wed Jan 30, 2013 9:52 am

Post by syednayab » Mon Mar 24, 2014 9:41 pm

Hi to all Gurus....
almost similar problem, althoguh my required goes even a step further. please help me ..i am moving one of my clients existing site to Opencart ..he is ok with the layout but wanted menu in the Left bar and i tried it all nothing is working for me,
i have changed the category to left on the homepage.
please seen the screenshot and Recommend me what to do!
Image
Cheers,
Syed

Life is a Gift! and it offers us the privilege, opportunity, and responsibility to give something back by becoming more......


New member

Posts

Joined
Tue Nov 01, 2011 8:03 pm
Location - Mumbai India
Who is online

Users browsing this forum: No registered users and 7 guests