kategoria tekst

This commit is contained in:
merdan 2022-09-22 18:04:26 +05:00
parent 979a41e13e
commit 3afb995203
1 changed files with 2 additions and 2 deletions

View File

@ -340,12 +340,12 @@ func ImportProduct(product models.Product, db *gorm.DB) error {
colorOption := gm.GetAttributeOption(db, AttributesMap["color"].ID, colorVariant.Color)
colorSavePoint := string(colorIndex)
colorSavePoint := "ColorSavePoint" + string(colorIndex)
if len(colorVariant.SizeVariants) > 0 {
for index, sizeVariant := range colorVariant.SizeVariants {
savePoint := string(colorIndex) + "sp" + string(index)
savePoint := "Size" + string(colorIndex) + "sp" + string(index)
tx.SavePoint(savePoint)
sku := fmt.Sprintf("%s-%s-%d-col-size", colorVariant.ProductGroupID, colorVariant.ProductNumber, sizeVariant.ItemNumber)