importer lcw test5
This commit is contained in:
parent
5e0e4d184d
commit
b114baebd0
|
|
@ -932,10 +932,10 @@ func (importer *Importer) updateParsedVariant(product models.Product) (gm.Produc
|
||||||
} else {
|
} else {
|
||||||
sizeOPtion = gm.GetAttributeOption(importer.baza, importer.AttributesMap["boyut"].ID, variant.AttributeValue)
|
sizeOPtion = gm.GetAttributeOption(importer.baza, importer.AttributesMap["boyut"].ID, variant.AttributeValue)
|
||||||
}
|
}
|
||||||
|
log.Println(variant)
|
||||||
sku := fmt.Sprintf("%s-%d", product.ProductNumber, variant.ItemNumber)
|
sku := fmt.Sprintf("%s-%d", product.ProductNumber, variant.ItemNumber)
|
||||||
log.Println(sku)
|
log.Println(sku)
|
||||||
log.Println(variant)
|
|
||||||
|
|
||||||
variantProduct := productRepo.makeVariant(flat.ProductID, flat.Product.AttributeFamilyID, sku)
|
variantProduct := productRepo.makeVariant(flat.ProductID, flat.Product.AttributeFamilyID, sku)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -157,7 +157,7 @@ func setupSizeVariants(product *models.Product, doc *goquery.Document) {
|
||||||
dataStock, _ := selection.Attr("data-stock")
|
dataStock, _ := selection.Attr("data-stock")
|
||||||
key, _ := selection.Attr("key")
|
key, _ := selection.Attr("key")
|
||||||
|
|
||||||
keyInt, err := strconv.Atoi(product.ProductNumber + key)
|
keyInt, err := strconv.Atoi(key)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// ... handle error
|
// ... handle error
|
||||||
// panic(err)
|
// panic(err)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue