Skip to content

Commit

Permalink
Add Walmart (CA) to stores
Browse files Browse the repository at this point in the history
  • Loading branch information
dylf committed Dec 8, 2020
1 parent 30bed2a commit 8f88cae
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/reference/filter.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`|
Expand Down
2 changes: 2 additions & 0 deletions src/store/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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]
Expand Down
56 changes: 56 additions & 0 deletions src/store/model/walmart-ca.ts
Original file line number Diff line number Diff line change
@@ -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'
};

0 comments on commit 8f88cae

Please sign in to comment.