ready link import fx 1

This commit is contained in:
merdan 2022-11-01 17:03:25 +05:00
parent 555ff3007f
commit 5240988a3a
1 changed files with 5 additions and 0 deletions

View File

@ -417,6 +417,11 @@ func (importer *Importer) updateVariant(product models.Product) (*gm.Product, er
if flat.Product.Type == "configurable" {
productRepo := InitProductRepo(&product, importer.GetColorOption(product.Color), importer.GetSexOption(product.Cinsiyet))
if brand, err := gm.FindOrCreateBrand(importer.baza, product.Brand, productRepo.Categories); err != nil {
return nil, err
} else {
productRepo.Brand = brand
}
for _, variant := range *product.SizeVariants {