fix colorvariant2
This commit is contained in:
parent
5a211c501f
commit
a945dbed2e
|
|
@ -791,6 +791,7 @@ func (importer *Importer) UpdateOrCreate(product models.Product, product_id uint
|
|||
if err != nil && errors.Is(err, gorm.ErrRecordNotFound) && colorVariant.IsSellable {
|
||||
variant, err = importer.importVariant(colorVariant)
|
||||
newProducts = append(newProducts, *variant)
|
||||
continue
|
||||
} else if err == nil && !colorVariant.IsSellable {
|
||||
importer.disableVariant(colorVariant, variantFlat.ProductID)
|
||||
continue
|
||||
|
|
|
|||
Loading…
Reference in New Issue