Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/1.15'
Browse files Browse the repository at this point in the history
  • Loading branch information
lruozzi9 committed Oct 3, 2022
2 parents 72944a5 + 6a97504 commit 835d89d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Product/Importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ public function import(string $identifier): void

$product = $this->getOrCreateProductFromVariantResponse($productVariantResponse);

$this->disableOldParentProductIfItHasNotAnyVariants($identifier, $product);
if ($identifier !== $product->getCode()) {
$this->disableOldParentProductIfItHasNotAnyVariants($identifier, $product);
}

$this->handleChannels($product, $productVariantResponse);

Expand Down

0 comments on commit 835d89d

Please sign in to comment.