diff --git a/src/elements/CommerceProduct.php b/src/elements/CommerceProduct.php index c3451282..4a4d34e2 100644 --- a/src/elements/CommerceProduct.php +++ b/src/elements/CommerceProduct.php @@ -448,6 +448,7 @@ private function _parseVariants($event): void // Create a new variant, or find an existing one to edit if (!isset($variants[$sku])) { $variants[$sku] = new VariantElement(); + $variants[$sku]->product = $element; } // We are going to handle stock after the product and variants save