From 6bea8616cb13101d1e20b084dd413befe37c09a6 Mon Sep 17 00:00:00 2001 From: merdan Date: Wed, 13 Apr 2022 18:16:07 +0500 Subject: [PATCH] product update finish for tesrt --- packages/Sarga/Shop/src/Repositories/ProductRepository.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/Sarga/Shop/src/Repositories/ProductRepository.php b/packages/Sarga/Shop/src/Repositories/ProductRepository.php index d678c786e..1eca675c2 100644 --- a/packages/Sarga/Shop/src/Repositories/ProductRepository.php +++ b/packages/Sarga/Shop/src/Repositories/ProductRepository.php @@ -363,7 +363,7 @@ class ProductRepository extends WProductRepository 'product_number' => "{$colorVariant['product_number']}-{$sizeVariant['itemNumber']}", 'color' => $this->getAttributeOptionId('color', $colorVariant['color']), 'name' => $colorVariant['name'], - 'size' => $this->getAttributeOptionId('size', $sizeVariant['size']), + 'size' => $this->getAttributeOptionId('size', $sizeVariant['attributeValue']), // 'price' => $sizeVariant['price'], 'weight' => $colorVariant['weight'] ?? 0.45, 'status' => 1, @@ -408,7 +408,7 @@ class ProductRepository extends WProductRepository $attributes = [ 'sku' => $variant->sku, - 'size' => $this->getAttributeOptionId('size', $sizeVariant['size']), + 'size' => $this->getAttributeOptionId('size', $sizeVariant['attributeValue']), 'product_id' => "{$data['product_number']}-{$sizeVariant['itemNumber']}", 'name' => $data['name'], // 'price' => $sizeVariant['price'],