Add Manufacturers List in Top Menu

Tagged: 

ThemeBurn SupportForumsOpenCart ThemesShoppica OpenCart ThemeAdd Manufacturers List in Top Menu

This topic has been marked as resolved.

Is there anyway to add a simple list of manufacturers to the top menu? (Not the manufacturers attached to products as is already present as a submenu.)

I’ve seen and followed the post here so I know where to do it
http://support.themeburn.com/topic/modify-main-menu-add-new

But I can’t seem to get it to work. I tried something similar to the following (I realise my coding is primitive, I had to strip out php tags to get this to show) but kept getting an “undefined error”

php foreach ($manufacturer[‘manufacturer’] as $manufacturer):
php echo $manufacturer[‘name’];
php endforeach;

Any help? Currently I’m having to manually hard code each manufacturer.

  • This reply was modified 4636 days ago by  Polished.
  • This reply was modified 4636 days ago by  Polished.
August 17, 2011 at 5:17 am #753

You need to define the manufacturer variable first.

1. Open

catalog/controller/module/shoppica.php

You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!

This should do the trick.

August 19, 2011 at 6:06 pm #878

That’s first class customer support right there. Thankyou so much, you guys are rock stars. I think this will be beneficial to quite a few people :)

August 20, 2011 at 2:37 am #901

I’ve tried to implement this in Shoppica 2, but I can’t get it to work.

I’ve added the custom menu, which goes in a different file than in Shoppica 1:
catalog/view/theme/shoppica2/template/tb/menu.tpl

Now I can’t figure out how to populate the new menu with manufacturers.
The problem seems to be that Shoppica 2 doesn’t use: catalog/controller/module/shoppica.php

I suspect it uses this file instead: tb_themes\shoppica2\catalog\controller\BrandCategoryController.php

Which code I would have to add in this file and where goes beyond me.
Coud you tell me which code to add and where?

August 14, 2012 at 2:00 pm #12434
You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!
August 20, 2012 at 4:16 pm #12721

Thanx, that works!

You probably meant to put the code in this file? :-)
catalog/view/theme/shoppica2/template/tb/menu.tpl

I do have a weird alignment issue.
Please take a look at the attached screenshot.

August 21, 2012 at 8:17 am #12773

Hi,

We’ve modified our previous example a bit :)

Best,
ThemeBurn team

August 24, 2012 at 12:28 pm #12881

Thanx, fixed!

August 27, 2012 at 9:44 am #12951

Hi,

Any way to get the brands in the drop down SEO friendly ?

Thanks

Adrian

 adsw
April 28, 2013 at 3:02 am #22628

Got it

Changed

<?php echo $this->url->link('product/manufacturer/product', 'manufacturer_id=' . $manufacturer['manufacturer_id']); ?>">

to

<?php echo $this->url->link('product/manufacturer/info', 'manufacturer_id=' . $manufacturer['manufacturer_id']); ?>">

Worked for me using shoppica 2

  • This reply was modified 4016 days ago by  adsw.
  • This reply was modified 4016 days ago by  adsw.
 adsw
April 28, 2013 at 10:56 am #22631

@adsw

Thanks for posting your modification here :)

Regards,
ThemeBurn team

April 30, 2013 at 11:23 am #22695
Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.