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.
|
|
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.
|
|
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
|
|
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?
|
|
You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!
|
|
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.
|
|
Hi,
We’ve modified our previous example a bit
Best,
ThemeBurn team
|
|
Hi,
Any way to get the brands in the drop down SEO friendly ?
Thanks
Adrian
|
|
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
Thanks for posting your modification here
Regards,
ThemeBurn team
|
|