diff --git a/controllers/ImportController.go b/controllers/ImportController.go index c23c1c6..ee327b6 100644 --- a/controllers/ImportController.go +++ b/controllers/ImportController.go @@ -722,7 +722,7 @@ func prepearAttributesWithFlat(data *models.Product) ([]gm.ProductAttributeValue Price: 0, } - if len(data.ColorVariants) == 0 && len(data.SizeVariants) != 0 { + if len(data.ColorVariants) == 0 && len(data.SizeVariants) == 0 { if data.Price.OriginalPrice.Value > data.Price.DiscountedPrice.Value { productAttributeValues = append(productAttributeValues, []gm.ProductAttributeValue{