Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Fixed up nvidiaLocale usage and the currency for canada
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmarmour committed Sep 27, 2020
1 parent 805e955 commit eed6289
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ var regionalConfig = map[string]RegionalConfig{
},
"CAN": {
Models: map[string]Model{
"2060": {
SKU: strPtr("5379432500"),
},
"3070": {},
"3080": {
SKU: strPtr("5438481700"),
Expand All @@ -126,7 +129,7 @@ var regionalConfig = map[string]RegionalConfig{
},
Locale: "en_us",
NvidiaLocale: "en-ca",
Currency: "CAN",
Currency: "CAD",
},
"CZE": {
Models: map[string]Model{
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func main() {
log.Println("Product Status: " + info.Products.Product[0].InventoryStatus.Status + "\n")

if info.Products.Product[0].InventoryStatus.Status == "PRODUCT_INVENTORY_IN_STOCK" || *test == true {
cart, err := rest.AddToCheckout(*config.SKU, token.Value, config.Locale, client)
cart, err := rest.AddToCheckout(*config.SKU, token.Value, config.NvidiaLocale, client)
if err != nil {
log.Println("Error adding card to checkout retrying...")
continue
Expand Down

0 comments on commit eed6289

Please sign in to comment.