From e3a2cc3c122f8acd78ed820a99455df394629ec5 Mon Sep 17 00:00:00 2001 From: merdan Date: Thu, 1 Sep 2022 15:10:22 +0500 Subject: [PATCH] wellknow ss --- packages/Sarga/API/Http/Controllers/Products.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/Sarga/API/Http/Controllers/Products.php b/packages/Sarga/API/Http/Controllers/Products.php index 51fe0c07a..7894579f2 100644 --- a/packages/Sarga/API/Http/Controllers/Products.php +++ b/packages/Sarga/API/Http/Controllers/Products.php @@ -84,6 +84,8 @@ class Products extends ProductController // Log::info($variants->map->only(['status'])); $attribute = $product->super_attributes->first(); + Log::info($attribute); + $distinctVariants = $variants->unique($attribute->code); $gr_data = array(