trigger_error(sprintf('%s:%s is deprecated since Shopware 5.6 and will be removed with 5.8. Will be removed without replacement.', __CLASS__, __METHOD__
), E_USER_DEPRECATED
);
$id =
(int) $id;
$categoryId =
(int) $this->frontController->
Request()->
getQuery('sCategory'
);
$supplier =
Shopware()->
Models()->
getRepository(Supplier::
class)->
find($id);
if (!
($supplier instanceof Supplier
)) { return [];
} $supplier =
Shopware()->
Models()->
toArray($supplier);
if (!
Shopware()->
Shop()->
getDefault()) { $supplier =
$this->
sGetTranslation($supplier,
$supplier['id'
], 'supplier'
);
} $supplier['link'
] =
$this->config
['sBASEFILE'
];
$supplier['link'
] .= '?sViewport=cat&sCategory=' .
$categoryId . '&sPage=1&sSupplier=0';
return $supplier;
} /**
* Product price calculation
*
* @param float $price
* @param float $tax
* @param int $taxId
* @param array $article product data as an array
*
* @throws Enlight_Exception
*
* @return string $price formatted price
*/