link parse fx5

This commit is contained in:
merdan 2022-09-10 14:32:19 +05:00
parent 35ae698007
commit cb2ae6a856
1 changed files with 5 additions and 1 deletions

View File

@ -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