Spróbuj zmienić kod funkcji getWidgetVariables w ten sposób:
public function getWidgetVariables($hookName = null, array $configuration = [])
{
$brands_IDS = [10,20,21,50]; // id producentów do wyświetlenia
$brands = Manufacturer::getManufacturers(false, (int)Context::getContext()->language->id);
foreach ($brands as $key => &$brand) {
if (!in_array($brand['id_manufacturer'], $brands_IDS)) { // usunięcie zbędnych
unset($brands[$key]);
continue;
}
$brand['image'] = $this->context->language->iso_code.'-default';
$brand['link'] = $this->context->link->getManufacturerLink($brand);
$fileExist = file_exists(
_PS_MANU_IMG_DIR_ . $brand['id_manufacturer'] . '-' .
ImageType::getFormattedName('medium').'.jpg'
);
if ($fileExist) {
$brand['image'] = $brand['id_manufacturer'];
}
}
return [
'brands' => $brands,
'hookName' => $hookName,
'configuration' => $configuration,
'page_link' => $this->context->link->getPageLink('manufacturer'),
'brandname' => Configuration::get('TTBRAND_NAME'),
'display_link_brand' => Configuration::get('PS_DISPLAY_SUPPLIERS'),
'brand_items' => Configuration::get('TT_BRAND_ITEMS'),
];
}