Created
June 3, 2025 04:18
-
-
Save JosueCarrillo/039134f5d1d22e96b329219ab20d94bd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/modules/ShopTab/src/Api/Helpers/RecommendedShopsHelper.php b/modules/ShopTab/src/Api/Helpers/RecommendedShopsHelper.php | |
| index f90fd32effc0..e1fbe7dbb01b 100644 | |
| --- a/modules/ShopTab/src/Api/Helpers/RecommendedShopsHelper.php | |
| +++ b/modules/ShopTab/src/Api/Helpers/RecommendedShopsHelper.php | |
| @@ -66,7 +66,7 @@ private static function fromListingToShopsRecsFallback(Api_Client $client, int $ | |
| return null; | |
| } | |
| - $recommended_listing_ids = Itertools::collectProperty($collection->getRecommendedItems(), 'listing_id'); | |
| + $recommended_listing_ids = [1897941555]; | |
| return $client->recs->common->shop->listingToShopHydrator( | |
| module_placement: (new RecommendedShopsRecsModule())->getModulePlacement(), | |
| limit: $limit, | |
| @@ -123,14 +123,16 @@ private static function extractRecommendedShopsFromProxyResults(array $proxy_res | |
| } | |
| foreach ($results_by_layer[$i] as $shop) { | |
| - if (!isset($seen_shop_ids[$shop->shop_id])) { | |
| - $recommended_shops[] = $shop; | |
| - $seen_shop_ids[$shop->shop_id] = true; | |
| + $recommended_shops[] = $shop; | |
| + | |
| + // if (!isset($seen_shop_ids[$shop->shop_id])) { | |
| + // $recommended_shops[] = $shop; | |
| + // $seen_shop_ids[$shop->shop_id] = true; | |
| if (count($recommended_shops) >= self::MAX_RECOMMENDED_SHOPS_TO_SHOW) { | |
| break 2; | |
| } | |
| - } | |
| + // } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment