From 2595fe9225dc26c8bb06e235daf5da7ed739506b Mon Sep 17 00:00:00 2001 From: merdan Date: Wed, 21 Sep 2022 11:22:50 +0500 Subject: [PATCH] price fix --- controllers/ImportController.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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{