From 2f37ae08bd345fdbd60701d1f7b6de4b66d9fe5a Mon Sep 17 00:00:00 2001 From: Robert Date: Fri, 5 Jun 2026 06:59:20 +0200 Subject: [PATCH] fix: featured products loaded with wrong group id featured products loaded with wrong group id --- Model/Client/Request/Recommendations/ProductRequest.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Model/Client/Request/Recommendations/ProductRequest.php b/Model/Client/Request/Recommendations/ProductRequest.php index c9ef94b8..6dd50661 100644 --- a/Model/Client/Request/Recommendations/ProductRequest.php +++ b/Model/Client/Request/Recommendations/ProductRequest.php @@ -72,7 +72,11 @@ public function getPathSuffix() $groupCode = $this->product->getData('groupcode'); if (empty($groupCode)) { - $groupCode = $this->product->getId(); + if ($this->product->hasData('parent_id')) { + $groupCode = $this->product->getData('parent_id'); + } else { + $groupCode = $this->product->getId(); + } } $groupCode = $this->helper->getTweakwiseId($this->product->getStoreId(), $groupCode);