From 8e69d6273059d80a542d003bf69dfa8860a7d78b Mon Sep 17 00:00:00 2001 From: merdan Date: Tue, 17 May 2022 14:59:44 +0500 Subject: [PATCH] atrr option cat --- .../Sarga/API/Http/Resources/Catalog/AttributeOption.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/Sarga/API/Http/Resources/Catalog/AttributeOption.php b/packages/Sarga/API/Http/Resources/Catalog/AttributeOption.php index 5e5173688..7e3d81d8a 100644 --- a/packages/Sarga/API/Http/Resources/Catalog/AttributeOption.php +++ b/packages/Sarga/API/Http/Resources/Catalog/AttributeOption.php @@ -18,8 +18,9 @@ class AttributeOption extends JsonResource 'id' => $this->id, 'admin_name' => $this->admin_name, 'label' => $this->label, -// 'swatch_value' => $this->swatch_value, - 'image' => $this->swatch_value_url + 'swatch_value' => $this->swatch_value, + 'image' => $this->swatch_value_url, + 'attribute_id' => $this->attribute_id ]; } } \ No newline at end of file