View Single Post
  #4  
Old 06-26-2016, 11:17 PM
  xplorer's Avatar 
xplorer xplorer is offline
 

X-Cart team
  
Join Date: Jul 2004
Posts: 925
 

Default 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:
namespace XLite\Module\YOUR_DEV_ID\YOUR_MODULE_ID\View;

/**
 * @LC_Dependencies ("QSL\ShopByBrand")
 */
class BrandsBlock extends \XLite\Module\QSL\ShopByBrand\View\BrandsBlock implements \XLite\Base\IDecorator
{
    public static function 
getAllowedTargets()
    {
        return array();
    }


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.