-
Notifications
You must be signed in to change notification settings - Fork 0
/
ProductData.js
36 lines (34 loc) · 1.19 KB
/
ProductData.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
module.exports = {
// Load Mock Product Data Into localStorage
init: function() {
localStorage.clear();
localStorage.setItem('product', JSON.stringify([
{
id: '0011001',
name: 'Scotch.io Signature Lager',
image: 'scotch-beer.png',
description: 'The finest lager money can buy. Hints of keyboard aerosol, with a whiff of iKlear wipes on the nose. If you pass out while drinking this beverage, Chris Sevilleja personally tucks you in.',
variants: [
{
sku: '123123',
type: '40oz Bottle',
price: 4.99,
inventory: 1
},
{
sku: '123124',
type: '6 Pack',
price: 12.99,
inventory: 5
},
{
sku: '1231235',
type: '30 Pack',
price: 19.99,
inventory: 3
}
]
}
]));
}
};