Show the desired part, when searching for the pollin part number

This commit is contained in:
Jan Böhmer 2025-02-20 19:39:35 +01:00
parent b2d4333fff
commit 8d9dde0032

View file

@ -74,6 +74,12 @@ class PollinProvider implements InfoProviderInterface
]);
$content = $response->getContent();
//If the response has us redirected to the product page, then just return the single item
if ($response->getInfo('redirect_count') > 0) {
return [$this->parseProductPage($content)];
}
$dom = new Crawler($content);
$results = [];