From da446456f52d3f701f64ef8e58eca815599e1e45 Mon Sep 17 00:00:00 2001 From: Lorenzo Ruozzi Date: Wed, 26 Jul 2023 11:52:58 +0200 Subject: [PATCH] Set position as default on product variant --- src/Product/Importer.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Product/Importer.php b/src/Product/Importer.php index aecde255..424bc57f 100644 --- a/src/Product/Importer.php +++ b/src/Product/Importer.php @@ -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);