importer lcw test6
This commit is contained in:
parent
b114baebd0
commit
bfbbbc1614
|
|
@ -110,6 +110,7 @@ func parseDocument(doc *goquery.Document, primaryModel bool) models.Product {
|
||||||
product.Price.SellingPrice.Value = convertStrToFloat(content)
|
product.Price.SellingPrice.Value = convertStrToFloat(content)
|
||||||
case "CashPrice_1":
|
case "CashPrice_1":
|
||||||
product.Price.OriginalPrice.Value = convertStrToFloat(content)
|
product.Price.OriginalPrice.Value = convertStrToFloat(content)
|
||||||
|
product.Weight = "0"
|
||||||
// case "Size":
|
// case "Size":
|
||||||
// fmt.Println("SIZE: ", content)
|
// fmt.Println("SIZE: ", content)
|
||||||
// case "SizeId":
|
// case "SizeId":
|
||||||
|
|
@ -188,6 +189,7 @@ func setupSizeVariants(product *models.Product, doc *goquery.Document) {
|
||||||
Value: product.Price.OriginalPrice.Value,
|
Value: product.Price.OriginalPrice.Value,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
isItemAdded := helper.IsLCWSizeVariantsAdded(*product.SizeVariants, sizeVariant)
|
isItemAdded := helper.IsLCWSizeVariantsAdded(*product.SizeVariants, sizeVariant)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue