kategoria tekst

This commit is contained in:
merdan 2022-09-22 19:13:41 +05:00
parent 0585d9d5c7
commit 37f6605638
1 changed files with 2 additions and 0 deletions

View File

@ -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"})