ready link import fx 1
This commit is contained in:
parent
555ff3007f
commit
5240988a3a
|
|
@ -417,6 +417,11 @@ func (importer *Importer) updateVariant(product models.Product) (*gm.Product, er
|
||||||
if flat.Product.Type == "configurable" {
|
if flat.Product.Type == "configurable" {
|
||||||
|
|
||||||
productRepo := InitProductRepo(&product, importer.GetColorOption(product.Color), importer.GetSexOption(product.Cinsiyet))
|
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 {
|
for _, variant := range *product.SizeVariants {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue