Skip to content

Commit

Permalink
Set position as default on product variant
Browse files Browse the repository at this point in the history
  • Loading branch information
lruozzi9 committed Jul 26, 2023
1 parent 42ca639 commit da44645
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Product/Importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ public function import(string $identifier): void
/** @var ProductVariantInterface $productVariant */
$productVariant = $this->productVariantFactory->createNew();
$productVariant->setCode($identifier);
$productVariant->setPosition(0);
}
$product->addVariant($productVariant);
$productVariant->setProduct($product);
Expand Down

0 comments on commit da44645

Please sign in to comment.