public function getSimilarShown($articleID) { $productIdsInCart =
$this->basket->
sGetBasketIds();
Shopware()->
Modules()->
Marketing()->sBlacklist =
$productIdsInCart ??
[];
$similarProducts =
Shopware()->
Modules()->
Marketing()->
sGetSimilaryShownArticles($articleID);
$similars =
[];
if (!
empty($similarProducts)) { foreach ($similarProducts as $similarProduct) { $temp =
Shopware()->
Modules()->
Articles()->
sGetPromotionById('fix', 0,
(int) $similarProduct['id'
]);
if (!
empty($temp)) { $similars[] =
$temp;
} } } return $similars;
} /**
* @deprecated in 5.6, will be protected in 5.8
*
* Get articles that bought in combination with last added product to
* display on cart page
*
* @param int $articleID
*
* @return array<array<string, mixed>>
*/