Skip to content

Commit

Permalink
add priceV2 and compareAtPriceV2 to variant fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
Spencer Canner committed Aug 8, 2019
1 parent f2622d9 commit 641d780
Show file tree
Hide file tree
Showing 11 changed files with 336 additions and 0 deletions.
32 changes: 32 additions & 0 deletions fixtures/collection-with-products-fixture.js
Expand Up @@ -100,6 +100,14 @@ export default {
"id": "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0VmFyaWFudC8yNTYwMjIzNTk3Ng==",
"title": "Fluffy / Medium",
"price": "0.00",
"priceV2": {
"amount": "0.00",
"currencyCode": "CAD"
},
"compareAtPriceV2": {
"amount": "5.00",
"currencyCode": "CAD"
},
"weight": 18,
"image": {
"id": "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0SW1hZ2UvMTk2MTY3MzY4NDA=",
Expand All @@ -124,6 +132,14 @@ export default {
"id": "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0VmFyaWFudC8yNTYwMjIzNjA0MA==",
"title": "Extra Fluffy / Small",
"price": "0.00",
"priceV2": {
"amount": "0.00",
"currencyCode": "CAD"
},
"compareAtPriceV2": {
"amount": "5.00",
"currencyCode": "CAD"
},
"weight": 18,
"image": {
"id": "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0SW1hZ2UvMTgyMTc3ODc1OTI=",
Expand All @@ -148,6 +164,14 @@ export default {
"id": "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0VmFyaWFudC8yNTYwMjIzNjEwNA==",
"title": "Mega Fluff / Large",
"price": "0.00",
"priceV2": {
"amount": "0.00",
"currencyCode": "CAD"
},
"compareAtPriceV2": {
"amount": "5.00",
"currencyCode": "CAD"
},
"weight": 0,
"image": {
"id": "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0SW1hZ2UvMTgyMTc3OTA2NjQ=",
Expand Down Expand Up @@ -220,6 +244,14 @@ export default {
"id": "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0VmFyaWFudC8yOTkzNzExMjEzNg==",
"title": "Default Title",
"price": "0.00",
"priceV2": {
"amount": "0.00",
"currencyCode": "CAD"
},
"compareAtPriceV2": {
"amount": "5.00",
"currencyCode": "CAD"
},
"weight": 0,
"image": null,
"selectedOptions": [
Expand Down
24 changes: 24 additions & 0 deletions fixtures/dynamic-product-fixture.js
Expand Up @@ -52,6 +52,14 @@ export default {
"node": {
"id": "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0SW1hZ2UvMTgyMTc4NTk3MjA=",
"price": "0.00",
"priceV2": {
"amount": "0.00",
"currencyCode": "CAD"
},
"compareAtPriceV2": {
"amount": "5.00",
"currencyCode": "CAD"
},
"weight": 18
}
},
Expand All @@ -60,6 +68,14 @@ export default {
"node": {
"id": "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0SW1hZ2UvMTk4OTI3ODM1NjA=",
"price": "0.00",
"priceV2": {
"amount": "0.00",
"currencyCode": "CAD"
},
"compareAtPriceV2": {
"amount": "5.00",
"currencyCode": "CAD"
},
"weight": 18
}
},
Expand All @@ -68,6 +84,14 @@ export default {
"node": {
"id": "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0SW1hZ2UvMTk4OTI4MjkzODQ=",
"price": "0.00",
"priceV2": {
"amount": "0.00",
"currencyCode": "CAD"
},
"compareAtPriceV2": {
"amount": "5.00",
"currencyCode": "CAD"
},
"weight": 0
}
}
Expand Down
16 changes: 16 additions & 0 deletions fixtures/paginated-variants-fixtures.js
Expand Up @@ -15,6 +15,14 @@ export const secondPageVariantsFixture = {
"id": "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0SW1hZ2UvMTgyMTc3OTA2NjQ=",
"title": "Extra Fluffy",
"price": "0.00",
"priceV2": {
"amount": "0.00",
"currencyCode": "CAD"
},
"compareAtPriceV2": {
"amount": "5.00",
"currencyCode": "CAD"
},
"weight": 18,
"image": null,
"selectedOptions": [
Expand Down Expand Up @@ -48,6 +56,14 @@ export const thirdPageVariantsFixture = {
"id": "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0SW1hZ2UvMTgyMTc4NTk3MjA=",
"title": "Mega Fluff",
"price": "0.00",
"priceV2": {
"amount": "0.00",
"currencyCode": "CAD"
},
"compareAtPriceV2": {
"amount": "5.00",
"currencyCode": "CAD"
},
"weight": 0,
"image": null,
"selectedOptions": [
Expand Down
56 changes: 56 additions & 0 deletions fixtures/product-by-handle-fixture.js
Expand Up @@ -107,6 +107,14 @@ export default {
"available": true,
"weight": 0,
"price": "788.00",
"priceV2": {
"amount": "788.00",
"currencyCode": "CAD"
},
"compareAtPriceV2": {
"amount": "888.00",
"currencyCode": "CAD"
},
"title": "Black / X-Small",
"image": null,
"selectedOptions": [
Expand All @@ -127,6 +135,14 @@ export default {
"available": true,
"weight": 0,
"price": "788.00",
"priceV2": {
"amount": "788.00",
"currencyCode": "CAD"
},
"compareAtPriceV2": {
"amount": "888.00",
"currencyCode": "CAD"
},
"title": "Black / Small",
"image": null,
"selectedOptions": [
Expand All @@ -147,6 +163,14 @@ export default {
"available": false,
"weight": 0,
"price": "788.00",
"priceV2": {
"amount": "788.00",
"currencyCode": "CAD"
},
"compareAtPriceV2": {
"amount": "888.00",
"currencyCode": "CAD"
},
"title": "Black / Medium",
"image": null,
"selectedOptions": [
Expand All @@ -167,6 +191,14 @@ export default {
"available": true,
"weight": 0,
"price": "750.00",
"priceV2": {
"amount": "750.00",
"currencyCode": "CAD"
},
"compareAtPriceV2": {
"amount": "850.00",
"currencyCode": "CAD"
},
"title": "Dark Green / X-Small",
"image": {
"id": "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0SW1hZ2UvMjI5MzI5MDg0MjI=",
Expand All @@ -190,6 +222,14 @@ export default {
"available": false,
"weight": 0,
"price": "750.00",
"priceV2": {
"amount": "750.00",
"currencyCode": "CAD"
},
"compareAtPriceV2": {
"amount": "850.00",
"currencyCode": "CAD"
},
"title": "Dark Green / Small",
"image": {
"id": "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0SW1hZ2UvMjI5MzI5MDg2MTQ=",
Expand All @@ -213,6 +253,14 @@ export default {
"available": true,
"weight": 0,
"price": "788.00",
"priceV2": {
"amount": "788.00",
"currencyCode": "CAD"
},
"compareAtPriceV2": {
"amount": "888.00",
"currencyCode": "CAD"
},
"title": "Dark Green / Medium",
"image": {
"id": "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0SW1hZ2UvMjI5MzI5MDg1NTA=",
Expand All @@ -236,6 +284,14 @@ export default {
"available": true,
"weight": 0,
"price": "788.00",
"priceV2": {
"amount": "788.00",
"currencyCode": "CAD"
},
"compareAtPriceV2": {
"amount": "888.00",
"currencyCode": "CAD"
},
"title": "Dark Green / Large",
"image": {
"id": "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0SW1hZ2UvMjI5MzI5MDg0ODY=",
Expand Down
24 changes: 24 additions & 0 deletions fixtures/product-fixture.js
Expand Up @@ -85,6 +85,14 @@ export default {
"id": "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0Lzc4NTc5ODkzODQ=",
"title": "Fluffy / Medium",
"price": "0.00",
"priceV2": {
"amount": "0.00",
"currencyCode": "CAD"
},
"compareAtPriceV2": {
"amount": "5.00",
"currencyCode": "CAD"
},
"weight": 18,
"image": {
"id": "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0Lzc4NTc5ODkzODQ=",
Expand All @@ -109,6 +117,14 @@ export default {
"id": "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0Lzc4NTc5ODkzODQ=",
"title": "Extra Fluffy / Small",
"price": "0.00",
"priceV2": {
"amount": "0.00",
"currencyCode": "CAD"
},
"compareAtPriceV2": {
"amount": "5.00",
"currencyCode": "CAD"
},
"weight": 18,
"image": {
"id": "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0Lzc4NTc5ODkzODQ=",
Expand All @@ -133,6 +149,14 @@ export default {
"id": "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0Lzc4NTc5ODkzODQ=",
"title": "Mega Fluff / Large",
"price": "0.00",
"priceV2": {
"amount": "0.00",
"currencyCode": "CAD"
},
"compareAtPriceV2": {
"amount": "5.00",
"currencyCode": "CAD"
},
"weight": 0,
"image": {
"id": "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0Lzc4NTc5ODkzODQ=",
Expand Down
8 changes: 8 additions & 0 deletions fixtures/product-with-paginated-images-fixture.js
Expand Up @@ -58,6 +58,14 @@ export default {
"id": "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0SW1hZ2UvMTgyMTc3OTA2NjQ=",
"title": "Fluffy",
"price": "0.00",
"priceV2": {
"amount": "0.00",
"currencyCode": "CAD"
},
"compareAtPriceV2": {
"amount": "5.00",
"currencyCode": "CAD"
},
"weight": 18,
"selectedOptions": [
{
Expand Down
8 changes: 8 additions & 0 deletions fixtures/product-with-paginated-variants-fixture.js
Expand Up @@ -38,6 +38,14 @@ export default {
"node": {
"id": "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0SW1hZ2UvMTgyMTc4MTk0MDA=",
"price": "0.00",
"priceV2": {
"amount": "0.00",
"currencyCode": "CAD"
},
"compareAtPriceV2": {
"amount": "5.00",
"currencyCode": "CAD"
},
"weight": 18
}
}
Expand Down

0 comments on commit 641d780

Please sign in to comment.