diff --git a/controllers/ImportController.go b/controllers/ImportController.go index 5127df6..869fe01 100644 --- a/controllers/ImportController.go +++ b/controllers/ImportController.go @@ -467,6 +467,8 @@ func ImportProduct(product models.Product, db *gorm.DB) error { } else { colorSavePoint := "ColorSavePoint" + strconv.Itoa(colorIndex) + tx.SavePoint(colorSavePoint) + colorOption := gm.GetAttributeOption(tx, AttributesMap["color"].ID, colorVariant.Color) attributes, variantFlat := collectAttributes(&colorVariant, &colorOption) attributes = append(attributes, gm.ProductAttributeValue{AttributeID: AttributesMap["meta_keywords"].ID, TextValue: keywords, Channel: "default", Locale: "tm"})