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(