kategoria tekst
This commit is contained in:
parent
979a41e13e
commit
3afb995203
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue