new product defaults are set correctly

This commit is contained in:
Ben Miller
2024-11-17 06:57:03 -07:00
parent 475eee70ea
commit 5d0ae653fa
6 changed files with 253 additions and 75 deletions

View File

@ -7,7 +7,9 @@ export class Config {
shopifyAdminApiAccessToken: string
shopifyApiURI: string
shopifyStorePublicationId: string
shopifyLocationId: string
shopifyCountryCodeOfOrigin: string
shopifyProvinceCodeOfOrigin: string
constructor() {
let ss = SpreadsheetApp.getActive()
@ -49,5 +51,23 @@ export class Config {
"shopifyStorePublicationId",
"value"
)
this.shopifyLocationId = vlookupByColumns(
"vars",
"key",
"shopifyLocationId",
"value"
)
this.shopifyCountryCodeOfOrigin = vlookupByColumns(
"vars",
"key",
"shopifyCountryCodeOfOrigin",
"value"
)
this.shopifyProvinceCodeOfOrigin = vlookupByColumns(
"vars",
"key",
"shopifyProvinceCodeOfOrigin",
"value"
)
}
}