How to overwrite ProductDefinition defaults?
Question: \Shopware\Core\Content\Product\ProductDefinition::getDefaults defines default values for a few fields: public function getDefaults(): array { return [ 'isCloseout' => false, 'minPurchase' => 1, 'purchaseSteps' => 1, 'shippingFree' => false, 'restockTime' => null, 'active' => true, 'markAsTopseller' => false, ]; } When creating a product via REST API and one of the fields is omitted the corresponding default value is used. In our case we create and update products via REST API but we need to manage the active field form within Shopware. When a product is created it s...