partial implementation of product update
This commit is contained in:
12
src/match.ts
12
src/match.ts
@ -10,3 +10,15 @@ export function matchProductToShopify(row: number) {
|
||||
product.MatchToShopifyProduct(new Shop())
|
||||
console.log(product)
|
||||
}
|
||||
|
||||
export function updateProductToShopify(row: number) {
|
||||
console.log("row: " + row)
|
||||
let product = new Product()
|
||||
let shop = new Shop()
|
||||
console.log(product)
|
||||
product.ImportFromInventory(row)
|
||||
console.log(product)
|
||||
product.MatchToShopifyProduct(shop)
|
||||
console.log(product)
|
||||
product.UpdateShopifyProduct(shop)
|
||||
}
|
||||
Reference in New Issue
Block a user