| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
[solved] Show brands in menu dropdown | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
[solved] Show brands in menu dropdown
I have installed the "Show By Brand" module. I would like to list all of the site's brands in a dropdown menu in the navigation of every page. I added this code to the nav:
HTML Code:
That displays the brands correctly on the home page, but nowhere else. I know that the "BrandsBlock" widget is only meant to be used on the home page, which is probably why it is only showing up on the homepage. But I don't know how else to get all of the brands in a list on every page. Please help!
__________________
X-Cart version 5.2 |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Show brands in menu dropdown
Check the module for getAllowedTargets() method. Decorate the module to expand the allowed targets.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
|
#3
|
|||||||
|
|||||||
Re: Show brands in menu dropdown
I tried to decorate that method, but I can't figure out how to allow all targets. Is there a keyword to allow everything? If not, is there some list of all possible targets that I can use?
__________________
X-Cart version 5.2 |
|||||||
#4
|
|||||||||
|
|||||||||
Re: Show brands in menu dropdown
Returning an empty array in getAllowedTargets() will make the widget visible on all pages. I.e. you should do something like this:
PHP Code:
The @LC_Dependencies ("QSL\ShopByBrand") statement is here to make your code apply over the code added by Shop By Brand module (otherwise XC5 may run the original module's method after yours and this will ignore your modification). Last edited by xplorer : 06-26-2016 at 11:23 PM. |
|||||||||
|
|
|||
X-Cart forums © 2001-2020
|