diff --git a/install/import.php b/install/import.php index d0910eede..c5f871869 100644 --- a/install/import.php +++ b/install/import.php @@ -182,6 +182,9 @@ function createProduct($faker, $categories, $template, $attribute, $feature) ->save(); } + $productSaleElements = $product->getProductSaleElementss()->getFirst(); + $productSaleElements->setIsDefault(1)->save(); + $brand = $data[11]; $featurAv = \Thelia\Model\FeatureAvI18nQuery::create() ->filterByLocale('en_US')