From e76ccefbf0fc51191e7514733234522cfd8a79c9 Mon Sep 17 00:00:00 2001 From: akkushopJK Date: Tue, 8 Feb 2022 21:10:22 +0100 Subject: [PATCH] Possible Fix for https://github.com/lengow/plugin-shopware/issues/1 --- Components/LengowProduct.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Components/LengowProduct.php b/Components/LengowProduct.php index 2212558..647d298 100755 --- a/Components/LengowProduct.php +++ b/Components/LengowProduct.php @@ -492,7 +492,7 @@ private function getDetailPrice() $shopCustomerGroupId = $this->shop->getCustomerGroup()->getId(); $detailPrices = $this->detail->getPrices(); foreach ($detailPrices as $price) { - if ($price->getCustomerGroup() !== null) { + if ($price->getCustomerGroup() !== null && $price->getFrom() === 1) { if ($price->getCustomerGroup()->getId() === $shopCustomerGroupId) { $shopArticlePrice = $price; }