link parse fx5
This commit is contained in:
parent
35ae698007
commit
cb2ae6a856
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue