diff --git a/docs/reference/filter.md b/docs/reference/filter.md index daeb41110e..e8b3d686b6 100644 --- a/docs/reference/filter.md +++ b/docs/reference/filter.md @@ -107,6 +107,7 @@ Used with the `STORES` variable. | Unieuro (IT) | `unieuro`| | Very (UK) | `very`| | Walmart | `walmart`| +| Walmart (CA) | `walmart-ca` | | Wipoid | `wipoid`| | Zotac | `zotac`| | TopAchat | `topachat`| diff --git a/src/store/model/index.ts b/src/store/model/index.ts index b67c3a27d4..a1a6a4c6cf 100644 --- a/src/store/model/index.ts +++ b/src/store/model/index.ts @@ -81,6 +81,7 @@ import {Unieuro} from './unieuro'; import {Very} from './very'; import {VsGamers} from './vsgamers'; import {Walmart} from './walmart'; +import {WalmartCa} from './walmart-ca'; import {Wipoid} from './wipoid'; import {Xbox} from './xbox'; import {Zotac} from './zotac'; @@ -168,6 +169,7 @@ export const storeList = new Map([ [Very.name, Very], [VsGamers.name, VsGamers], [Walmart.name, Walmart], + [WalmartCa.name, WalmartCa], [Wipoid.name, Wipoid], [Xbox.name, Xbox], [Zotac.name, Zotac] diff --git a/src/store/model/walmart-ca.ts b/src/store/model/walmart-ca.ts new file mode 100644 index 0000000000..4ebd1834fa --- /dev/null +++ b/src/store/model/walmart-ca.ts @@ -0,0 +1,56 @@ +import {Store} from './store'; + +export const WalmartCa: Store = { + labels: { + inStock: { + container: + '[data-automation="cta-button"]', + text: ['add to cart'] + }, + maxPrice: { + container: '[data-automation="buybox-price"]' + } + }, + links: [ + { + brand: 'test:brand', + model: 'test:model', + series: 'test:series', + url: + 'https://www.walmart.ca/en/ip/sandisk-64g-ultra-sdxc-uhs-1-memory-card-80mbs-c10-u1-full-hd-sd-card-sdsdunc-064g-cw6in/6000200452075' + }, + { + brand: 'sony', + model: 'ps5 console', + series: 'sonyps5c', + url: 'https://www.walmart.ca/en/ip/playstation5-console/6000202198562' + }, + { + brand: 'sony', + model: 'ps5 digital', + series: 'sonyps5de', + url: + 'https://www.walmart.ca/en/ip/playstation5-digital-edition/6000202198823' + }, + { + brand: 'microsoft', + model: 'xbox series x', + series: 'xboxsx', + url: 'https://www.walmart.ca/en/ip/xbox-series-x/6000201786332' + }, + { + brand: 'microsoft', + model: 'xbox series s', + series: 'xboxss', + url: 'https://www.walmart.ca/en/ip/xbox-series-s/6000201790919' + }, + { + brand: 'corsair', + model: '600 platinum', + series: 'sf', + url: + 'https://www.walmart.ca/en/ip/Corsair-SF-Series-SF600-600-Watt-80-PLUS-Gold-Certified-High-Performance-SFX-PSU/PRD6VH8WNKHD36Q' + } + ], + name: 'walmart-ca' +};