diff --git a/packages/Sarga/API/Http/Controllers/Products.php b/packages/Sarga/API/Http/Controllers/Products.php index 7894579f2..eb917f99b 100644 --- a/packages/Sarga/API/Http/Controllers/Products.php +++ b/packages/Sarga/API/Http/Controllers/Products.php @@ -97,6 +97,10 @@ class Products extends ProductController foreach($distinctVariants as $variant) { $option = $attribute->options->firstWhere('id',$variant->{$attribute->code}); + Log::info($attribute); + Log::info($option,); + Log::info($variant); + Log::info($variant->{$attribute->code}); $item = [ 'option' => $option->admin_name,