Skip to content

Commit

Permalink
Merge pull request bagisto#8020 from jitendra-webkul/2.0.0
Browse files Browse the repository at this point in the history
Fixed Product SKU issue
  • Loading branch information
jitendra-webkul committed Aug 24, 2023
2 parents 2215b05 + 9dd5407 commit 5f4784e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/Webkul/Product/src/Helpers/Indexers/Flat.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ public function updateOrCreate($product, $parentProduct = null)
foreach ($channel->locales as $locale) {
$productFlat = $this->productFlatRepository->updateOrCreate([
'type' => $product->type,
'sku' => $product->sku,
'attribute_family_id' => $product->attribute_family_id,
'product_id' => $product->id,
'channel' => $channel->code,
Expand All @@ -107,6 +108,7 @@ public function updateOrCreate($product, $parentProduct = null)
))
)
|| ! in_array($attribute->code, $this->flatColumns)
|| $attribute->code == 'sku'
) {
continue;
}
Expand Down

0 comments on commit 5f4784e

Please sign in to comment.