diff --git a/controllers/ImportController.go b/controllers/ImportController.go index 8ea44c7..bb1ad4f 100644 --- a/controllers/ImportController.go +++ b/controllers/ImportController.go @@ -671,7 +671,11 @@ func collectAttributes(variant *models.Product, option *gm.AttributeOption) ([]g func prepearAttributesWithFlat(data *models.Product) ([]gm.ProductAttributeValue, gm.ProductFlat) { - weight, _ := strconv.ParseFloat(data.Weight, 64) + weight, wEror := strconv.ParseFloat(data.Weight, 64) + + if wEror != nil || weight == 0 { + weight = 0.5 + } var description string