diff --git a/packages/template-retail-react-app/app/commerce-api/mocks/product-set-winter-lookM.js b/packages/template-retail-react-app/app/commerce-api/mocks/product-set-winter-lookM.js new file mode 100644 index 0000000000..89d313fcb2 --- /dev/null +++ b/packages/template-retail-react-app/app/commerce-api/mocks/product-set-winter-lookM.js @@ -0,0 +1,1224 @@ +/* + * Copyright (c) 2023, Salesforce, Inc. + * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +export default { + currency: 'GBP', + id: 'winter-lookM', + imageGroups: [ + { + images: [ + { + alt: 'Winter Look, , large', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dwe1c4cd52/images/large/PG.10205921.JJ5FUXX.PZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dwe1c4cd52/images/large/PG.10205921.JJ5FUXX.PZ.jpg', + title: 'Winter Look, ' + } + ], + viewType: 'large' + }, + { + images: [ + { + alt: 'Winter Look, , medium', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dw07f25517/images/medium/PG.10205921.JJ5FUXX.PZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw07f25517/images/medium/PG.10205921.JJ5FUXX.PZ.jpg', + title: 'Winter Look, ' + } + ], + viewType: 'medium' + }, + { + images: [ + { + alt: 'Winter Look, , small', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dwab300645/images/small/PG.10205921.JJ5FUXX.PZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dwab300645/images/small/PG.10205921.JJ5FUXX.PZ.jpg', + title: 'Winter Look, ' + } + ], + viewType: 'small' + } + ], + longDescription: '
Jacket
\r\nPant
\r\nShoes
', + minOrderQuantity: 1, + name: 'Winter Look', + price: 44.16, + priceMax: 71.03, + pricePerUnit: 44.16, + pricePerUnitMax: 71.03, + primaryCategoryId: 'womens-outfits', + setProducts: [ + { + currency: 'GBP', + id: '25518447M', + imageGroups: [ + { + images: [ + { + alt: 'Quilted Jacket, , large', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dwe1c4cd52/images/large/PG.10205921.JJ5FUXX.PZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dwe1c4cd52/images/large/PG.10205921.JJ5FUXX.PZ.jpg', + title: 'Quilted Jacket, ' + }, + { + alt: 'Quilted Jacket, , large', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dwb2158085/images/large/PG.10205921.JJ5FUXX.BZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dwb2158085/images/large/PG.10205921.JJ5FUXX.BZ.jpg', + title: 'Quilted Jacket, ' + } + ], + viewType: 'large' + }, + { + images: [ + { + alt: 'Quilted Jacket, royal, large', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dwe1c4cd52/images/large/PG.10205921.JJ5FUXX.PZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dwe1c4cd52/images/large/PG.10205921.JJ5FUXX.PZ.jpg', + title: 'Quilted Jacket, royal' + }, + { + alt: 'Quilted Jacket, royal, large', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dwb2158085/images/large/PG.10205921.JJ5FUXX.BZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dwb2158085/images/large/PG.10205921.JJ5FUXX.BZ.jpg', + title: 'Quilted Jacket, royal' + } + ], + variationAttributes: [ + { + id: 'color', + values: [ + { + value: 'JJ5FUXX' + } + ] + } + ], + viewType: 'large' + }, + { + images: [ + { + alt: 'Quilted Jacket, , medium', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dw07f25517/images/medium/PG.10205921.JJ5FUXX.PZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw07f25517/images/medium/PG.10205921.JJ5FUXX.PZ.jpg', + title: 'Quilted Jacket, ' + }, + { + alt: 'Quilted Jacket, , medium', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dw34fd2ab3/images/medium/PG.10205921.JJ5FUXX.BZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw34fd2ab3/images/medium/PG.10205921.JJ5FUXX.BZ.jpg', + title: 'Quilted Jacket, ' + } + ], + viewType: 'medium' + }, + { + images: [ + { + alt: 'Quilted Jacket, royal, medium', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dw07f25517/images/medium/PG.10205921.JJ5FUXX.PZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw07f25517/images/medium/PG.10205921.JJ5FUXX.PZ.jpg', + title: 'Quilted Jacket, royal' + }, + { + alt: 'Quilted Jacket, royal, medium', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dw34fd2ab3/images/medium/PG.10205921.JJ5FUXX.BZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw34fd2ab3/images/medium/PG.10205921.JJ5FUXX.BZ.jpg', + title: 'Quilted Jacket, royal' + } + ], + variationAttributes: [ + { + id: 'color', + values: [ + { + value: 'JJ5FUXX' + } + ] + } + ], + viewType: 'medium' + }, + { + images: [ + { + alt: 'Quilted Jacket, , small', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dwab300645/images/small/PG.10205921.JJ5FUXX.PZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dwab300645/images/small/PG.10205921.JJ5FUXX.PZ.jpg', + title: 'Quilted Jacket, ' + }, + { + alt: 'Quilted Jacket, , small', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dwbb5eb9b1/images/small/PG.10205921.JJ5FUXX.BZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dwbb5eb9b1/images/small/PG.10205921.JJ5FUXX.BZ.jpg', + title: 'Quilted Jacket, ' + } + ], + viewType: 'small' + }, + { + images: [ + { + alt: 'Quilted Jacket, royal, small', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dwab300645/images/small/PG.10205921.JJ5FUXX.PZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dwab300645/images/small/PG.10205921.JJ5FUXX.PZ.jpg', + title: 'Quilted Jacket, royal' + }, + { + alt: 'Quilted Jacket, royal, small', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dwbb5eb9b1/images/small/PG.10205921.JJ5FUXX.BZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dwbb5eb9b1/images/small/PG.10205921.JJ5FUXX.BZ.jpg', + title: 'Quilted Jacket, royal' + } + ], + variationAttributes: [ + { + id: 'color', + values: [ + { + value: 'JJ5FUXX' + } + ] + } + ], + viewType: 'small' + }, + { + images: [ + { + alt: 'Quilted Jacket, royal, swatch', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dw5dea9b57/images/swatch/PG.10205921.JJ5FUXX.CP.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw5dea9b57/images/swatch/PG.10205921.JJ5FUXX.CP.jpg', + title: 'Quilted Jacket, royal' + } + ], + variationAttributes: [ + { + id: 'color', + values: [ + { + value: 'JJ5FUXX' + } + ] + } + ], + viewType: 'swatch' + } + ], + inventory: { + ats: 400, + backorderable: false, + id: 'inventory_m', + orderable: true, + preorderable: false, + stockLevel: 400 + }, + longDescription: + 'A classic quilted car coat looks new again. Add a great Commerce Cloud Store top for a perfect look.', + master: { + masterId: '25518447M', + orderable: true, + price: 71.03 + }, + minOrderQuantity: 1, + name: 'Quilted Jacket', + pageDescription: + 'A classic quilted car coat looks new again. Add a great Commerce Cloud Store top for a perfect look.', + pageTitle: 'Quilted Jacket', + price: 71.03, + pricePerUnit: 71.03, + primaryCategoryId: 'womens-clothing-jackets', + recommendations: [ + { + recommendationType: { + displayValue: 'Product Detail Page - Cross Sell', + value: 1 + }, + recommendedItemId: '22951021M' + }, + { + recommendationType: { + displayValue: 'Product Detail Page - Cross Sell', + value: 1 + }, + recommendedItemId: '25518397M' + } + ], + shortDescription: + 'A classic quilted car coat looks new again. Add a great Commerce Cloud Store top for a perfect look.', + stepQuantity: 1, + type: { + master: true + }, + validFrom: { + default: '2010-10-21T04:00:00.000Z' + }, + variants: [ + { + orderable: true, + price: 71.03, + productId: '701642853695M', + variationValues: { + color: 'JJ5FUXX', + size: '9LG' + } + }, + { + orderable: true, + price: 71.03, + productId: '701642853718M', + variationValues: { + color: 'JJ5FUXX', + size: '9SM' + } + }, + { + orderable: true, + price: 71.03, + productId: '701642853725M', + variationValues: { + color: 'JJ5FUXX', + size: '9XL' + } + }, + { + orderable: true, + price: 71.03, + productId: '701642853701M', + variationValues: { + color: 'JJ5FUXX', + size: '9MD' + } + } + ], + variationAttributes: [ + { + id: 'color', + name: 'Colour', + values: [ + { + name: 'royal', + orderable: true, + value: 'JJ5FUXX' + } + ] + }, + { + id: 'size', + name: 'Size', + values: [ + { + name: 'S', + orderable: true, + value: '9SM' + }, + { + name: 'M', + orderable: true, + value: '9MD' + }, + { + name: 'L', + orderable: true, + value: '9LG' + }, + { + name: 'XL', + orderable: true, + value: '9XL' + } + ] + } + ], + c_isNewtest: true, + c_isSale: true + }, + { + currency: 'GBP', + id: '25518704M', + imageGroups: [ + { + images: [ + { + alt: 'Pull On Pant, , large', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dw018b9798/images/large/PG.10218785.JJ2XNXX.PZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw018b9798/images/large/PG.10218785.JJ2XNXX.PZ.jpg', + title: 'Pull On Pant, ' + }, + { + alt: 'Pull On Pant, , large', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dw5303e0ee/images/large/PG.10218785.JJ2XNXX.BZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw5303e0ee/images/large/PG.10218785.JJ2XNXX.BZ.jpg', + title: 'Pull On Pant, ' + } + ], + viewType: 'large' + }, + { + images: [ + { + alt: 'Pull On Pant, Grey Heather, large', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dw018b9798/images/large/PG.10218785.JJ2XNXX.PZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw018b9798/images/large/PG.10218785.JJ2XNXX.PZ.jpg', + title: 'Pull On Pant, Grey Heather' + }, + { + alt: 'Pull On Pant, Grey Heather, large', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dw5303e0ee/images/large/PG.10218785.JJ2XNXX.BZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw5303e0ee/images/large/PG.10218785.JJ2XNXX.BZ.jpg', + title: 'Pull On Pant, Grey Heather' + } + ], + variationAttributes: [ + { + id: 'color', + values: [ + { + value: 'JJ2XNXX' + } + ] + } + ], + viewType: 'large' + }, + { + images: [ + { + alt: 'Pull On Pant, , medium', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dwba195443/images/medium/PG.10218785.JJ2XNXX.PZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dwba195443/images/medium/PG.10218785.JJ2XNXX.PZ.jpg', + title: 'Pull On Pant, ' + }, + { + alt: 'Pull On Pant, , medium', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dw8119e7a0/images/medium/PG.10218785.JJ2XNXX.BZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw8119e7a0/images/medium/PG.10218785.JJ2XNXX.BZ.jpg', + title: 'Pull On Pant, ' + } + ], + viewType: 'medium' + }, + { + images: [ + { + alt: 'Pull On Pant, Grey Heather, medium', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dwba195443/images/medium/PG.10218785.JJ2XNXX.PZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dwba195443/images/medium/PG.10218785.JJ2XNXX.PZ.jpg', + title: 'Pull On Pant, Grey Heather' + }, + { + alt: 'Pull On Pant, Grey Heather, medium', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dw8119e7a0/images/medium/PG.10218785.JJ2XNXX.BZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw8119e7a0/images/medium/PG.10218785.JJ2XNXX.BZ.jpg', + title: 'Pull On Pant, Grey Heather' + } + ], + variationAttributes: [ + { + id: 'color', + values: [ + { + value: 'JJ2XNXX' + } + ] + } + ], + viewType: 'medium' + }, + { + images: [ + { + alt: 'Pull On Pant, , small', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dw19377146/images/small/PG.10218785.JJ2XNXX.PZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw19377146/images/small/PG.10218785.JJ2XNXX.PZ.jpg', + title: 'Pull On Pant, ' + }, + { + alt: 'Pull On Pant, , small', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dw912e293d/images/small/PG.10218785.JJ2XNXX.BZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw912e293d/images/small/PG.10218785.JJ2XNXX.BZ.jpg', + title: 'Pull On Pant, ' + } + ], + viewType: 'small' + }, + { + images: [ + { + alt: 'Pull On Pant, Grey Heather, small', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dw19377146/images/small/PG.10218785.JJ2XNXX.PZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw19377146/images/small/PG.10218785.JJ2XNXX.PZ.jpg', + title: 'Pull On Pant, Grey Heather' + }, + { + alt: 'Pull On Pant, Grey Heather, small', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dw912e293d/images/small/PG.10218785.JJ2XNXX.BZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw912e293d/images/small/PG.10218785.JJ2XNXX.BZ.jpg', + title: 'Pull On Pant, Grey Heather' + } + ], + variationAttributes: [ + { + id: 'color', + values: [ + { + value: 'JJ2XNXX' + } + ] + } + ], + viewType: 'small' + }, + { + images: [ + { + alt: 'Pull On Pant, Grey Heather, swatch', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dw9dedffb4/images/swatch/PG.10218785.JJ2XNXX.CP.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw9dedffb4/images/swatch/PG.10218785.JJ2XNXX.CP.jpg', + title: 'Pull On Pant, Grey Heather' + } + ], + variationAttributes: [ + { + id: 'color', + values: [ + { + value: 'JJ2XNXX' + } + ] + } + ], + viewType: 'swatch' + } + ], + inventory: { + ats: 500, + backorderable: false, + id: 'inventory_m', + orderable: true, + preorderable: false, + stockLevel: 500 + }, + longDescription: + 'Meet a Commerce Cloud Store new wardrobe favorite - a knit pant that works perfectly 12 months a year!', + master: { + masterId: '25518704M', + orderable: true, + price: 44.16 + }, + minOrderQuantity: 1, + name: 'Pull On Pant', + pageDescription: + 'Meet a Commerce Cloud Store new wardrobe favorite - a knit pant that works perfectly 12 months a year!', + pageTitle: 'Pull On Pant', + price: 44.16, + pricePerUnit: 44.16, + primaryCategoryId: 'womens-clothing-bottoms', + shortDescription: + 'Meet a Commerce Cloud Store new wardrobe favorite - a knit pant that works perfectly 12 months a year!', + stepQuantity: 1, + type: { + master: true + }, + validFrom: { + default: '2010-10-21T04:00:00.000Z' + }, + variants: [ + { + orderable: true, + price: 44.16, + productId: '701642867098M', + variationValues: { + color: 'JJ2XNXX', + size: '9LG' + } + }, + { + orderable: true, + price: 44.16, + productId: '701642867111M', + variationValues: { + color: 'JJ2XNXX', + size: '9SM' + } + }, + { + orderable: true, + price: 44.16, + productId: '701642867104M', + variationValues: { + color: 'JJ2XNXX', + size: '9MD' + } + }, + { + orderable: true, + price: 44.16, + productId: '701642867128M', + variationValues: { + color: 'JJ2XNXX', + size: '9XL' + } + }, + { + orderable: true, + price: 44.16, + productId: '701642867135M', + variationValues: { + color: 'JJ2XNXX', + size: '9XS' + } + } + ], + variationAttributes: [ + { + id: 'color', + name: 'Colour', + values: [ + { + name: 'Grey Heather', + orderable: true, + value: 'JJ2XNXX' + } + ] + }, + { + id: 'size', + name: 'Size', + values: [ + { + name: 'XS', + orderable: true, + value: '9XS' + }, + { + name: 'S', + orderable: true, + value: '9SM' + }, + { + name: 'M', + orderable: true, + value: '9MD' + }, + { + name: 'L', + orderable: true, + value: '9LG' + }, + { + name: 'XL', + orderable: true, + value: '9XL' + } + ] + } + ], + c_isNewtest: true + }, + { + currency: 'GBP', + id: '25772717M', + imageGroups: [ + { + images: [ + { + alt: 'Zerrick, , large', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dw25b9c8eb/images/large/PG.CJZERRICK.BLACKLE.PZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw25b9c8eb/images/large/PG.CJZERRICK.BLACKLE.PZ.jpg', + title: 'Zerrick, ' + }, + { + alt: 'Zerrick, , large', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dw42769ff1/images/large/PG.CJZERRICK.BLACKLE.BZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw42769ff1/images/large/PG.CJZERRICK.BLACKLE.BZ.jpg', + title: 'Zerrick, ' + } + ], + viewType: 'large' + }, + { + images: [ + { + alt: 'Zerrick, Black, large', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dw25b9c8eb/images/large/PG.CJZERRICK.BLACKLE.PZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw25b9c8eb/images/large/PG.CJZERRICK.BLACKLE.PZ.jpg', + title: 'Zerrick, Black' + }, + { + alt: 'Zerrick, Black, large', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dw42769ff1/images/large/PG.CJZERRICK.BLACKLE.BZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw42769ff1/images/large/PG.CJZERRICK.BLACKLE.BZ.jpg', + title: 'Zerrick, Black' + } + ], + variationAttributes: [ + { + id: 'color', + values: [ + { + value: 'BLACKLE' + } + ] + } + ], + viewType: 'large' + }, + { + images: [ + { + alt: 'Zerrick, Taupe, large', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dw08fba265/images/large/PG.CJZERRICK.TAUPETX.PZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw08fba265/images/large/PG.CJZERRICK.TAUPETX.PZ.jpg', + title: 'Zerrick, Taupe' + }, + { + alt: 'Zerrick, Taupe, large', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dw20ceacbb/images/large/PG.CJZERRICK.TAUPETX.BZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw20ceacbb/images/large/PG.CJZERRICK.TAUPETX.BZ.jpg', + title: 'Zerrick, Taupe' + } + ], + variationAttributes: [ + { + id: 'color', + values: [ + { + value: 'TAUPETX' + } + ] + } + ], + viewType: 'large' + }, + { + images: [ + { + alt: 'Zerrick, , medium', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dw0ae06682/images/medium/PG.CJZERRICK.BLACKLE.PZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw0ae06682/images/medium/PG.CJZERRICK.BLACKLE.PZ.jpg', + title: 'Zerrick, ' + }, + { + alt: 'Zerrick, , medium', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dw025c3d0d/images/medium/PG.CJZERRICK.BLACKLE.BZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw025c3d0d/images/medium/PG.CJZERRICK.BLACKLE.BZ.jpg', + title: 'Zerrick, ' + } + ], + viewType: 'medium' + }, + { + images: [ + { + alt: 'Zerrick, Black, medium', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dw0ae06682/images/medium/PG.CJZERRICK.BLACKLE.PZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw0ae06682/images/medium/PG.CJZERRICK.BLACKLE.PZ.jpg', + title: 'Zerrick, Black' + }, + { + alt: 'Zerrick, Black, medium', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dw025c3d0d/images/medium/PG.CJZERRICK.BLACKLE.BZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw025c3d0d/images/medium/PG.CJZERRICK.BLACKLE.BZ.jpg', + title: 'Zerrick, Black' + } + ], + variationAttributes: [ + { + id: 'color', + values: [ + { + value: 'BLACKLE' + } + ] + } + ], + viewType: 'medium' + }, + { + images: [ + { + alt: 'Zerrick, Taupe, medium', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dw0019f83a/images/medium/PG.CJZERRICK.TAUPETX.PZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw0019f83a/images/medium/PG.CJZERRICK.TAUPETX.PZ.jpg', + title: 'Zerrick, Taupe' + }, + { + alt: 'Zerrick, Taupe, medium', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dw2ac76531/images/medium/PG.CJZERRICK.TAUPETX.BZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw2ac76531/images/medium/PG.CJZERRICK.TAUPETX.BZ.jpg', + title: 'Zerrick, Taupe' + } + ], + variationAttributes: [ + { + id: 'color', + values: [ + { + value: 'TAUPETX' + } + ] + } + ], + viewType: 'medium' + }, + { + images: [ + { + alt: 'Zerrick, , small', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dwfa0a6275/images/small/PG.CJZERRICK.BLACKLE.PZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dwfa0a6275/images/small/PG.CJZERRICK.BLACKLE.PZ.jpg', + title: 'Zerrick, ' + }, + { + alt: 'Zerrick, , small', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dw47a9b12f/images/small/PG.CJZERRICK.BLACKLE.BZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw47a9b12f/images/small/PG.CJZERRICK.BLACKLE.BZ.jpg', + title: 'Zerrick, ' + } + ], + viewType: 'small' + }, + { + images: [ + { + alt: 'Zerrick, Black, small', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dwfa0a6275/images/small/PG.CJZERRICK.BLACKLE.PZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dwfa0a6275/images/small/PG.CJZERRICK.BLACKLE.PZ.jpg', + title: 'Zerrick, Black' + }, + { + alt: 'Zerrick, Black, small', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dw47a9b12f/images/small/PG.CJZERRICK.BLACKLE.BZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw47a9b12f/images/small/PG.CJZERRICK.BLACKLE.BZ.jpg', + title: 'Zerrick, Black' + } + ], + variationAttributes: [ + { + id: 'color', + values: [ + { + value: 'BLACKLE' + } + ] + } + ], + viewType: 'small' + }, + { + images: [ + { + alt: 'Zerrick, Taupe, small', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dwabc944c5/images/small/PG.CJZERRICK.TAUPETX.PZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dwabc944c5/images/small/PG.CJZERRICK.TAUPETX.PZ.jpg', + title: 'Zerrick, Taupe' + }, + { + alt: 'Zerrick, Taupe, small', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dw5b4e54ad/images/small/PG.CJZERRICK.TAUPETX.BZ.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw5b4e54ad/images/small/PG.CJZERRICK.TAUPETX.BZ.jpg', + title: 'Zerrick, Taupe' + } + ], + variationAttributes: [ + { + id: 'color', + values: [ + { + value: 'TAUPETX' + } + ] + } + ], + viewType: 'small' + }, + { + images: [ + { + alt: 'Zerrick, Black, swatch', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dwcc030b86/images/swatch/PG.CJZERRICK.BLACKLE.CP.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dwcc030b86/images/swatch/PG.CJZERRICK.BLACKLE.CP.jpg', + title: 'Zerrick, Black' + } + ], + variationAttributes: [ + { + id: 'color', + values: [ + { + value: 'BLACKLE' + } + ] + } + ], + viewType: 'swatch' + }, + { + images: [ + { + alt: 'Zerrick, Taupe, swatch', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_001/on/demandware.static/-/Sites-apparel-m-catalog/default/dw9dc4320e/images/swatch/PG.CJZERRICK.TAUPETX.CP.jpg', + link: 'https://zzrf-001.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw9dc4320e/images/swatch/PG.CJZERRICK.TAUPETX.CP.jpg', + title: 'Zerrick, Taupe' + } + ], + variationAttributes: [ + { + id: 'color', + values: [ + { + value: 'TAUPETX' + } + ] + } + ], + viewType: 'swatch' + } + ], + inventory: { + ats: 1498, + backorderable: false, + id: 'inventory_m', + orderable: true, + preorderable: false, + stockLevel: 1498 + }, + longDescription: 'The perfect pump for any outfit!', + master: { + masterId: '25772717M', + orderable: true, + price: 63.36 + }, + minOrderQuantity: 1, + name: 'Zerrick', + pageDescription: 'The perfect pump for any outfit!', + pageTitle: 'Zerrick', + price: 63.36, + pricePerUnit: 63.36, + primaryCategoryId: 'womens-accessories-shoes', + recommendations: [ + { + recommendationType: { + displayValue: 'Product Detail Page - Cross Sell', + value: 1 + }, + recommendedItemId: '25593254M' + }, + { + recommendationType: { + displayValue: 'Product Detail Page - Cross Sell', + value: 1 + }, + recommendedItemId: '25720050M' + } + ], + shortDescription: 'The perfect pump for any outfit!', + stepQuantity: 1, + type: { + master: true + }, + validFrom: { + default: '2011-03-01T05:00:00.000Z' + }, + variants: [ + { + orderable: true, + price: 63.36, + productId: '740357357531M', + variationValues: { + color: 'BLACKLE', + size: '065', + width: 'M' + } + }, + { + orderable: true, + price: 63.36, + productId: '740357358095M', + variationValues: { + color: 'TAUPETX', + size: '065', + width: 'M' + } + }, + { + orderable: true, + price: 63.36, + productId: '740357357623M', + variationValues: { + color: 'BLACKLE', + size: '110', + width: 'M' + } + }, + { + orderable: true, + price: 63.36, + productId: '740357357609M', + variationValues: { + color: 'BLACKLE', + size: '100', + width: 'M' + } + }, + { + orderable: true, + price: 63.36, + productId: '740357358156M', + variationValues: { + color: 'TAUPETX', + size: '095', + width: 'M' + } + }, + { + orderable: true, + price: 63.36, + productId: '740357358132M', + variationValues: { + color: 'TAUPETX', + size: '085', + width: 'M' + } + }, + { + orderable: true, + price: 63.36, + productId: '740357358101M', + variationValues: { + color: 'TAUPETX', + size: '070', + width: 'M' + } + }, + { + orderable: true, + price: 63.36, + productId: '740357357562M', + variationValues: { + color: 'BLACKLE', + size: '080', + width: 'M' + } + }, + { + orderable: true, + price: 63.36, + productId: '740357357548M', + variationValues: { + color: 'BLACKLE', + size: '070', + width: 'M' + } + }, + { + orderable: true, + price: 63.36, + productId: '740357358187M', + variationValues: { + color: 'TAUPETX', + size: '110', + width: 'M' + } + }, + { + orderable: true, + price: 63.36, + productId: '740357357593M', + variationValues: { + color: 'BLACKLE', + size: '095', + width: 'M' + } + }, + { + orderable: true, + price: 63.36, + productId: '740357357555M', + variationValues: { + color: 'BLACKLE', + size: '075', + width: 'M' + } + }, + { + orderable: true, + price: 63.36, + productId: '740357357524M', + variationValues: { + color: 'BLACKLE', + size: '060', + width: 'M' + } + }, + { + orderable: true, + price: 63.36, + productId: '740357358149M', + variationValues: { + color: 'TAUPETX', + size: '090', + width: 'M' + } + }, + { + orderable: true, + price: 63.36, + productId: '740357358088M', + variationValues: { + color: 'TAUPETX', + size: '060', + width: 'M' + } + } + ], + variationAttributes: [ + { + id: 'color', + name: 'Colour', + values: [ + { + name: 'Black', + orderable: true, + value: 'BLACKLE' + }, + { + name: 'Taupe', + orderable: true, + value: 'TAUPETX' + } + ] + }, + { + id: 'size', + name: 'Size', + values: [ + { + name: '6', + orderable: true, + value: '060' + }, + { + name: '6.5', + orderable: true, + value: '065' + }, + { + name: '7', + orderable: true, + value: '070' + }, + { + name: '7.5', + orderable: true, + value: '075' + }, + { + name: '8', + orderable: true, + value: '080' + }, + { + name: '8.5', + orderable: true, + value: '085' + }, + { + name: '9', + orderable: true, + value: '090' + }, + { + name: '9.5', + orderable: true, + value: '095' + }, + { + name: '10', + orderable: true, + value: '100' + }, + { + name: '11', + orderable: true, + value: '110' + } + ] + }, + { + id: 'width', + name: 'Width', + values: [ + { + name: 'M', + orderable: true, + value: 'M' + } + ] + } + ] + } + ], + shortDescription: 'Look for Winter', + slugUrl: + 'https://zzrf-001.dx.commercecloud.salesforce.com/s/RefArchGlobal/womens/clothing/outfits/winter-lookM.html?lang=en_GB', + stepQuantity: 1, + type: { + set: true + } +} diff --git a/packages/template-retail-react-app/app/components/product-tile/index.jsx b/packages/template-retail-react-app/app/components/product-tile/index.jsx index e509366788..b27205a8b6 100644 --- a/packages/template-retail-react-app/app/components/product-tile/index.jsx +++ b/packages/template-retail-react-app/app/components/product-tile/index.jsx @@ -130,7 +130,7 @@ const ProductTile = (props) => {Jacket
\r\nPant
\r\nShoes
', + minOrderQuantity: 1, + name: 'Winter Look', + price: 44.16, + priceMax: 71.03, + pricePerUnit: 44.16, + pricePerUnitMax: 71.03, + primaryCategoryId: 'womens-outfits', + shortDescription: 'Look for Winter', + setProducts: [ + { + currency: 'GBP', + id: '25518447M', + imageGroups: [ + { + images: [ + { + alt: 'Quilted Jacket, , large', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dwe6b93900/images/large/PG.10205921.JJ5FUXX.PZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dwe6b93900/images/large/PG.10205921.JJ5FUXX.PZ.jpg', + title: 'Quilted Jacket, ' + }, + { + alt: 'Quilted Jacket, , large', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dw3f3cfaa8/images/large/PG.10205921.JJ5FUXX.BZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw3f3cfaa8/images/large/PG.10205921.JJ5FUXX.BZ.jpg', + title: 'Quilted Jacket, ' + } + ], + viewType: 'large' + }, + { + images: [ + { + alt: 'Quilted Jacket, , medium', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dwfce3ae7f/images/medium/PG.10205921.JJ5FUXX.PZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dwfce3ae7f/images/medium/PG.10205921.JJ5FUXX.PZ.jpg', + title: 'Quilted Jacket, ' + }, + { + alt: 'Quilted Jacket, , medium', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dw5d0b1941/images/medium/PG.10205921.JJ5FUXX.BZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw5d0b1941/images/medium/PG.10205921.JJ5FUXX.BZ.jpg', + title: 'Quilted Jacket, ' + } + ], + viewType: 'medium' + }, + { + images: [ + { + alt: 'Quilted Jacket, , small', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dw97ad16fc/images/small/PG.10205921.JJ5FUXX.PZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw97ad16fc/images/small/PG.10205921.JJ5FUXX.PZ.jpg', + title: 'Quilted Jacket, ' + }, + { + alt: 'Quilted Jacket, , small', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dw764f0594/images/small/PG.10205921.JJ5FUXX.BZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw764f0594/images/small/PG.10205921.JJ5FUXX.BZ.jpg', + title: 'Quilted Jacket, ' + } + ], + viewType: 'small' + } + ], + inventory: { + ats: 400, + backorderable: false, + id: 'inventory_m', + orderable: true, + preorderable: false, + stockLevel: 400 + }, + longDescription: + 'A classic quilted car coat looks new again. Add a great Commerce Cloud Store top for a perfect look.', + master: { + masterId: '25518447M', + orderable: true, + price: 71.03 + }, + minOrderQuantity: 1, + name: 'Quilted Jacket', + pageDescription: + 'A classic quilted car coat looks new again. Add a great Commerce Cloud Store top for a perfect look.', + pageTitle: 'Quilted Jacket', + price: 71.03, + pricePerUnit: 71.03, + primaryCategoryId: 'womens-clothing-jackets', + recommendations: [ + { + recommendationType: { + displayValue: 'Product Detail Page - Cross Sell', + value: 1 + }, + recommendedItemId: '22951021M' + }, + { + recommendationType: { + displayValue: 'Product Detail Page - Cross Sell', + value: 1 + }, + recommendedItemId: '25518397M' + } + ], + shortDescription: + 'A classic quilted car coat looks new again. Add a great Commerce Cloud Store top for a perfect look.', + stepQuantity: 1, + type: { + master: true + }, + validFrom: { + default: '2010-10-21T04:00:00.000Z' + }, + variants: [ + { + orderable: true, + price: 71.03, + productId: '701642853695M', + variationValues: { + color: 'JJ5FUXX', + size: '9LG' + } + }, + { + orderable: true, + price: 71.03, + productId: '701642853718M', + variationValues: { + color: 'JJ5FUXX', + size: '9SM' + } + }, + { + orderable: true, + price: 71.03, + productId: '701642853725M', + variationValues: { + color: 'JJ5FUXX', + size: '9XL' + } + }, + { + orderable: true, + price: 71.03, + productId: '701642853701M', + variationValues: { + color: 'JJ5FUXX', + size: '9MD' + } + } + ], + variationAttributes: [ + { + id: 'color', + name: 'Colour', + values: [ + { + name: 'royal', + orderable: true, + value: 'JJ5FUXX' + } + ] + }, + { + id: 'size', + name: 'Size', + values: [ + { + name: 'S', + orderable: true, + value: '9SM' + }, + { + name: 'M', + orderable: true, + value: '9MD' + }, + { + name: 'L', + orderable: true, + value: '9LG' + }, + { + name: 'XL', + orderable: true, + value: '9XL' + } + ] + } + ], + c_isNewtest: true, + c_isSale: true + }, + { + currency: 'GBP', + id: '25518704M', + imageGroups: [ + { + images: [ + { + alt: 'Pull On Pant, , large', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dwf7f4a945/images/large/PG.10218785.JJ2XNXX.PZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dwf7f4a945/images/large/PG.10218785.JJ2XNXX.PZ.jpg', + title: 'Pull On Pant, ' + }, + { + alt: 'Pull On Pant, , large', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dwb6df46d9/images/large/PG.10218785.JJ2XNXX.BZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dwb6df46d9/images/large/PG.10218785.JJ2XNXX.BZ.jpg', + title: 'Pull On Pant, ' + } + ], + viewType: 'large' + }, + { + images: [ + { + alt: 'Pull On Pant, , medium', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dwe1f27107/images/medium/PG.10218785.JJ2XNXX.PZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dwe1f27107/images/medium/PG.10218785.JJ2XNXX.PZ.jpg', + title: 'Pull On Pant, ' + }, + { + alt: 'Pull On Pant, , medium', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dwb0628c49/images/medium/PG.10218785.JJ2XNXX.BZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dwb0628c49/images/medium/PG.10218785.JJ2XNXX.BZ.jpg', + title: 'Pull On Pant, ' + } + ], + viewType: 'medium' + }, + { + images: [ + { + alt: 'Pull On Pant, , small', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dwe180ef4e/images/small/PG.10218785.JJ2XNXX.PZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dwe180ef4e/images/small/PG.10218785.JJ2XNXX.PZ.jpg', + title: 'Pull On Pant, ' + }, + { + alt: 'Pull On Pant, , small', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dwf7fe8cc7/images/small/PG.10218785.JJ2XNXX.BZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dwf7fe8cc7/images/small/PG.10218785.JJ2XNXX.BZ.jpg', + title: 'Pull On Pant, ' + } + ], + viewType: 'small' + } + ], + inventory: { + ats: 500, + backorderable: false, + id: 'inventory_m', + orderable: true, + preorderable: false, + stockLevel: 500 + }, + longDescription: + 'Meet a Commerce Cloud Store new wardrobe favorite - a knit pant that works perfectly 12 months a year!', + master: { + masterId: '25518704M', + orderable: true, + price: 44.16 + }, + minOrderQuantity: 1, + name: 'Pull On Pant', + pageDescription: + 'Meet a Commerce Cloud Store new wardrobe favorite - a knit pant that works perfectly 12 months a year!', + pageTitle: 'Pull On Pant', + price: 44.16, + pricePerUnit: 44.16, + primaryCategoryId: 'womens-clothing-bottoms', + shortDescription: + 'Meet a Commerce Cloud Store new wardrobe favorite - a knit pant that works perfectly 12 months a year!', + stepQuantity: 1, + type: { + master: true + }, + validFrom: { + default: '2010-10-21T04:00:00.000Z' + }, + variants: [ + { + orderable: true, + price: 44.16, + productId: '701642867098M', + variationValues: { + color: 'JJ2XNXX', + size: '9LG' + } + }, + { + orderable: true, + price: 44.16, + productId: '701642867111M', + variationValues: { + color: 'JJ2XNXX', + size: '9SM' + } + }, + { + orderable: true, + price: 44.16, + productId: '701642867104M', + variationValues: { + color: 'JJ2XNXX', + size: '9MD' + } + }, + { + orderable: true, + price: 44.16, + productId: '701642867128M', + variationValues: { + color: 'JJ2XNXX', + size: '9XL' + } + }, + { + orderable: true, + price: 44.16, + productId: '701642867135M', + variationValues: { + color: 'JJ2XNXX', + size: '9XS' + } + } + ], + variationAttributes: [ + { + id: 'color', + name: 'Colour', + values: [ + { + name: 'Grey Heather', + orderable: true, + value: 'JJ2XNXX' + } + ] + }, + { + id: 'size', + name: 'Size', + values: [ + { + name: 'XS', + orderable: true, + value: '9XS' + }, + { + name: 'S', + orderable: true, + value: '9SM' + }, + { + name: 'M', + orderable: true, + value: '9MD' + }, + { + name: 'L', + orderable: true, + value: '9LG' + }, + { + name: 'XL', + orderable: true, + value: '9XL' + } + ] + } + ], + c_isNewtest: true + }, + { + currency: 'GBP', + id: '25772717M', + imageGroups: [ + { + images: [ + { + alt: 'Zerrick, , large', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dwbf4dd593/images/large/PG.CJZERRICK.BLACKLE.PZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dwbf4dd593/images/large/PG.CJZERRICK.BLACKLE.PZ.jpg', + title: 'Zerrick, ' + }, + { + alt: 'Zerrick, , large', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dwcc515695/images/large/PG.CJZERRICK.BLACKLE.BZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dwcc515695/images/large/PG.CJZERRICK.BLACKLE.BZ.jpg', + title: 'Zerrick, ' + } + ], + viewType: 'large' + }, + { + images: [ + { + alt: 'Zerrick, , medium', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dw44a22aa5/images/medium/PG.CJZERRICK.BLACKLE.PZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw44a22aa5/images/medium/PG.CJZERRICK.BLACKLE.PZ.jpg', + title: 'Zerrick, ' + }, + { + alt: 'Zerrick, , medium', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dw18ebc5f7/images/medium/PG.CJZERRICK.BLACKLE.BZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw18ebc5f7/images/medium/PG.CJZERRICK.BLACKLE.BZ.jpg', + title: 'Zerrick, ' + } + ], + viewType: 'medium' + }, + { + images: [ + { + alt: 'Zerrick, , small', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dw9248ea6e/images/small/PG.CJZERRICK.BLACKLE.PZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw9248ea6e/images/small/PG.CJZERRICK.BLACKLE.PZ.jpg', + title: 'Zerrick, ' + }, + { + alt: 'Zerrick, , small', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dwc38f297b/images/small/PG.CJZERRICK.BLACKLE.BZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dwc38f297b/images/small/PG.CJZERRICK.BLACKLE.BZ.jpg', + title: 'Zerrick, ' + } + ], + viewType: 'small' + } + ], + inventory: { + ats: 1500, + backorderable: false, + id: 'inventory_m', + orderable: true, + preorderable: false, + stockLevel: 1500 + }, + longDescription: 'The perfect pump for any outfit!', + master: { + masterId: '25772717M', + orderable: true, + price: 63.36 + }, + minOrderQuantity: 1, + name: 'Zerrick', + pageDescription: 'The perfect pump for any outfit!', + pageTitle: 'Zerrick', + price: 63.36, + pricePerUnit: 63.36, + primaryCategoryId: 'womens-accessories-shoes', + recommendations: [ + { + recommendationType: { + displayValue: 'Product Detail Page - Cross Sell', + value: 1 + }, + recommendedItemId: '25593254M' + }, + { + recommendationType: { + displayValue: 'Product Detail Page - Cross Sell', + value: 1 + }, + recommendedItemId: '25720050M' + } + ], + shortDescription: 'The perfect pump for any outfit!', + stepQuantity: 1, + type: { + master: true + }, + validFrom: { + default: '2011-03-01T05:00:00.000Z' + }, + variants: [ + { + orderable: true, + price: 63.36, + productId: '740357357531M', + variationValues: { + color: 'BLACKLE', + size: '065', + width: 'M' + } + }, + { + orderable: true, + price: 63.36, + productId: '740357358095M', + variationValues: { + color: 'TAUPETX', + size: '065', + width: 'M' + } + }, + { + orderable: true, + price: 63.36, + productId: '740357357623M', + variationValues: { + color: 'BLACKLE', + size: '110', + width: 'M' + } + }, + { + orderable: true, + price: 63.36, + productId: '740357357609M', + variationValues: { + color: 'BLACKLE', + size: '100', + width: 'M' + } + }, + { + orderable: true, + price: 63.36, + productId: '740357358156M', + variationValues: { + color: 'TAUPETX', + size: '095', + width: 'M' + } + }, + { + orderable: true, + price: 63.36, + productId: '740357358132M', + variationValues: { + color: 'TAUPETX', + size: '085', + width: 'M' + } + }, + { + orderable: true, + price: 63.36, + productId: '740357358101M', + variationValues: { + color: 'TAUPETX', + size: '070', + width: 'M' + } + }, + { + orderable: true, + price: 63.36, + productId: '740357357562M', + variationValues: { + color: 'BLACKLE', + size: '080', + width: 'M' + } + }, + { + orderable: true, + price: 63.36, + productId: '740357357548M', + variationValues: { + color: 'BLACKLE', + size: '070', + width: 'M' + } + }, + { + orderable: true, + price: 63.36, + productId: '740357358187M', + variationValues: { + color: 'TAUPETX', + size: '110', + width: 'M' + } + }, + { + orderable: true, + price: 63.36, + productId: '740357357593M', + variationValues: { + color: 'BLACKLE', + size: '095', + width: 'M' + } + }, + { + orderable: true, + price: 63.36, + productId: '740357357555M', + variationValues: { + color: 'BLACKLE', + size: '075', + width: 'M' + } + }, + { + orderable: true, + price: 63.36, + productId: '740357357524M', + variationValues: { + color: 'BLACKLE', + size: '060', + width: 'M' + } + }, + { + orderable: true, + price: 63.36, + productId: '740357358149M', + variationValues: { + color: 'TAUPETX', + size: '090', + width: 'M' + } + }, + { + orderable: true, + price: 63.36, + productId: '740357358088M', + variationValues: { + color: 'TAUPETX', + size: '060', + width: 'M' + } + } + ], + variationAttributes: [ + { + id: 'color', + name: 'Colour', + values: [ + { + name: 'Black', + orderable: true, + value: 'BLACKLE' + }, + { + name: 'Taupe', + orderable: true, + value: 'TAUPETX' + } + ] + }, + { + id: 'size', + name: 'Size', + values: [ + { + name: '6', + orderable: true, + value: '060' + }, + { + name: '6.5', + orderable: true, + value: '065' + }, + { + name: '7', + orderable: true, + value: '070' + }, + { + name: '7.5', + orderable: true, + value: '075' + }, + { + name: '8', + orderable: true, + value: '080' + }, + { + name: '8.5', + orderable: true, + value: '085' + }, + { + name: '9', + orderable: true, + value: '090' + }, + { + name: '9.5', + orderable: true, + value: '095' + }, + { + name: '10', + orderable: true, + value: '100' + }, + { + name: '11', + orderable: true, + value: '110' + } + ] + }, + { + id: 'width', + name: 'Width', + values: [ + { + name: 'M', + orderable: true, + value: 'M' + } + ] + } + ] + } + ], + slugUrl: + 'https://zzrf-009.dx.commercecloud.salesforce.com/s/RefArchGlobal/womens/clothing/outfits/winter-lookM.html?lang=en_GB', + stepQuantity: 1, + type: { + set: true + }, + quantity: 1 + }, + { + currency: 'GBP', + id: 'some-outfit', + minOrderQuantity: 1, + name: 'Some Outfit', + price: 63.99, + pricePerUnit: 63.99, + primaryCategoryId: 'womens-outfits', + setProducts: [ + { + currency: 'GBP', + id: 'P0150M', + imageGroups: [ + { + images: [ + { + alt: 'Upright Case (33L - 3.7Kg), , large', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dw7cc6a969/images/large/P0150_001.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw7cc6a969/images/large/P0150_001.jpg', + title: 'Upright Case (33L - 3.7Kg), ' + } + ], + viewType: 'large' + }, + { + images: [ + { + alt: 'Upright Case (33L - 3.7Kg), , medium', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dwcb7fa07a/images/medium/P0150_001.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dwcb7fa07a/images/medium/P0150_001.jpg', + title: 'Upright Case (33L - 3.7Kg), ' + } + ], + viewType: 'medium' + }, + { + images: [ + { + alt: 'Upright Case (33L - 3.7Kg), , small', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dw5630e983/images/small/P0150_001.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw5630e983/images/small/P0150_001.jpg', + title: 'Upright Case (33L - 3.7Kg), ' + } + ], + viewType: 'small' + } + ], + inventory: { + ats: 2, + backorderable: false, + id: 'inventory_m', + orderable: true, + preorderable: false, + stockLevel: 2 + }, + longDescription: + '1682 ballistic nylon and genuine leather inserts |Pull-out metallic handle for wheeling|Top and side handles|Cabin size for convenient travelling|TSA lock for security', + minOrderQuantity: 1, + name: 'Upright Case (33L - 3.7Kg)', + pageDescription: + 'This practical case is perfect for business – with no need to check in as luggage due to its cabin size dimensions – or for any no-fuss travel.', + pageKeywords: + 'Commerce Cloud, P0150, T10 150 Upright 50, General Accessories, Accessories, Packs and Gear', + pageTitle: 'Commerce Cloud - Upright Case (33L - 3.7Kg)', + price: 63.99, + pricePerUnit: 63.99, + primaryCategoryId: 'mens-accessories-luggage', + recommendations: [ + { + recommendationType: { + displayValue: 'Product Detail Page - Cross Sell', + value: 1 + }, + recommendedItemId: 'P0048M' + }, + { + recommendationType: { + displayValue: 'Product Detail Page - Cross Sell', + value: 1 + }, + recommendedItemId: 'P0138M' + } + ], + shortDescription: + 'This practical and functional case is perfect for business – with no need to check in as luggage due to its cabin size dimensions – or for any convenient no-fuss travel any time any where. You can pull along for comfort or carry by the handle, and with plenty of space inside and a large front pocket with additional zippered pocket, there’s plenty of useful and compact storage.', + stepQuantity: 1, + type: { + item: true + }, + c_styleNumber: 'P0150', + c_tabDescription: + 'This practical and functional case is perfect for business – with no need to check in as luggage due to its cabin size dimensions – or for any convenient no-fuss travel any time any where. You can pull along for comfort or carry by the handle, and with plenty of space inside and a large front pocket with additional zippered pocket, there’s plenty of useful and compact storage.', + c_tabDetails: + '1682 ballistic nylon and genuine leather inserts |Pull-out metallic handle for wheeling|Top and side handles|Cabin size for convenient travelling|TSA lock for security' + }, + { + currency: 'GBP', + id: 'P0138M', + imageGroups: [ + { + images: [ + { + alt: 'Laptop Messenger (16L), , large', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dw59b8bbd6/images/large/P0138_001.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw59b8bbd6/images/large/P0138_001.jpg', + title: 'Laptop Messenger (16L), ' + } + ], + viewType: 'large' + }, + { + images: [ + { + alt: 'Laptop Messenger (16L), , medium', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dwf15f2283/images/medium/P0138_001.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dwf15f2283/images/medium/P0138_001.jpg', + title: 'Laptop Messenger (16L), ' + } + ], + viewType: 'medium' + }, + { + images: [ + { + alt: 'Laptop Messenger (16L), , small', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dw5bfec55c/images/small/P0138_001.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw5bfec55c/images/small/P0138_001.jpg', + title: 'Laptop Messenger (16L), ' + } + ], + viewType: 'small' + } + ], + inventory: { + ats: 100, + backorderable: false, + id: 'inventory_m', + inStockDate: '2012-03-09T00:00:00.000Z', + orderable: true, + preorderable: true, + stockLevel: 0 + }, + longDescription: + '1682 ballistic nylon and genuine leather inserts|Shoulder strap and top handle for alternative carrying options|Main compartment for laptop storage|Internal pockets for storage and organisation|TSA Lock for security', + minOrderQuantity: 1, + name: 'Laptop Messenger (16L)', + pageDescription: + 'This duffle style laptop messenger bag is great for travelling and commuting with your laptop and other essential work items. Compact and comfortable.', + pageKeywords: + 'Commerce Cloud, P0138, Packs and Gear Laptop Messenger, Black, Computer Bag, Cases, Luggage, Sling Bag, Should Begs', + pageTitle: 'Commerce Cloud - Laptop Messenger (16L)', + price: 63.99, + pricePerUnit: 63.99, + primaryCategoryId: 'mens-accessories-luggage', + recommendations: [ + { + recommendationType: { + displayValue: 'Product Detail Page - Cross Sell', + value: 1 + }, + recommendedItemId: 'P0150M' + }, + { + recommendationType: { + displayValue: 'Product Detail Page - Cross Sell', + value: 1 + }, + recommendedItemId: 'P0048M' + } + ], + shortDescription: + 'This duffle style laptop messenger bag is great for travelling and commuting with your laptop and other essential work items. Compact and comfortable with internal and external pockets for storage, carry over your shoulder for support and balance or by the top handle for a more briefcase-style look.', + stepQuantity: 1, + type: { + item: true + }, + c_styleNumber: 'P0138', + c_tabDescription: + 'This duffle style laptop messenger bag is great for travelling and commuting with your laptop and other essential work items. Compact and comfortable with internal and external pockets for storage, carry over your shoulder for support and balance or by the top handle for a more briefcase-style look.', + c_tabDetails: + '1682 ballistic nylon and genuine leather inserts|Shoulder strap and top handle for alternative carrying options|Main compartment for laptop storage|Internal pockets for storage and organisation|TSA Lock for security' + } + ], + slugUrl: + 'https://zzrf-009.dx.commercecloud.salesforce.com/s/RefArchGlobal/womens/clothing/outfits/some-outfit.html?lang=en_GB', + stepQuantity: 1, + type: { + set: true + }, + quantity: 1 + }, + { + currency: 'GBP', + id: '25501802M', + imageGroups: [ + { + images: [ + { + alt: 'Textured Zip Front Cardigan, , large', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dw978b037a/images/large/PG.10219181.JJG80XX.PZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw978b037a/images/large/PG.10219181.JJG80XX.PZ.jpg', + title: 'Textured Zip Front Cardigan, ' + }, + { + alt: 'Textured Zip Front Cardigan, , large', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dwebe72fa5/images/large/PG.10219181.JJG80XX.BZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dwebe72fa5/images/large/PG.10219181.JJG80XX.BZ.jpg', + title: 'Textured Zip Front Cardigan, ' + } + ], + viewType: 'large' + }, + { + images: [ + { + alt: 'Textured Zip Front Cardigan, Sugar, large', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dw978b037a/images/large/PG.10219181.JJG80XX.PZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw978b037a/images/large/PG.10219181.JJG80XX.PZ.jpg', + title: 'Textured Zip Front Cardigan, Sugar' + }, + { + alt: 'Textured Zip Front Cardigan, Sugar, large', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dwebe72fa5/images/large/PG.10219181.JJG80XX.BZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dwebe72fa5/images/large/PG.10219181.JJG80XX.BZ.jpg', + title: 'Textured Zip Front Cardigan, Sugar' + } + ], + variationAttributes: [ + { + id: 'color', + values: [ + { + value: 'JJG80XX' + } + ] + } + ], + viewType: 'large' + }, + { + images: [ + { + alt: 'Textured Zip Front Cardigan, , medium', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dw9cfb0f38/images/medium/PG.10219181.JJG80XX.PZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw9cfb0f38/images/medium/PG.10219181.JJG80XX.PZ.jpg', + title: 'Textured Zip Front Cardigan, ' + }, + { + alt: 'Textured Zip Front Cardigan, , medium', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dw34667c2c/images/medium/PG.10219181.JJG80XX.BZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw34667c2c/images/medium/PG.10219181.JJG80XX.BZ.jpg', + title: 'Textured Zip Front Cardigan, ' + } + ], + viewType: 'medium' + }, + { + images: [ + { + alt: 'Textured Zip Front Cardigan, Sugar, medium', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dw9cfb0f38/images/medium/PG.10219181.JJG80XX.PZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw9cfb0f38/images/medium/PG.10219181.JJG80XX.PZ.jpg', + title: 'Textured Zip Front Cardigan, Sugar' + }, + { + alt: 'Textured Zip Front Cardigan, Sugar, medium', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dw34667c2c/images/medium/PG.10219181.JJG80XX.BZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw34667c2c/images/medium/PG.10219181.JJG80XX.BZ.jpg', + title: 'Textured Zip Front Cardigan, Sugar' + } + ], + variationAttributes: [ + { + id: 'color', + values: [ + { + value: 'JJG80XX' + } + ] + } + ], + viewType: 'medium' + }, + { + images: [ + { + alt: 'Textured Zip Front Cardigan, , small', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dwa9c81767/images/small/PG.10219181.JJG80XX.PZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dwa9c81767/images/small/PG.10219181.JJG80XX.PZ.jpg', + title: 'Textured Zip Front Cardigan, ' + }, + { + alt: 'Textured Zip Front Cardigan, , small', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dw5f88f729/images/small/PG.10219181.JJG80XX.BZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw5f88f729/images/small/PG.10219181.JJG80XX.BZ.jpg', + title: 'Textured Zip Front Cardigan, ' + } + ], + viewType: 'small' + }, + { + images: [ + { + alt: 'Textured Zip Front Cardigan, Sugar, small', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dwa9c81767/images/small/PG.10219181.JJG80XX.PZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dwa9c81767/images/small/PG.10219181.JJG80XX.PZ.jpg', + title: 'Textured Zip Front Cardigan, Sugar' + }, + { + alt: 'Textured Zip Front Cardigan, Sugar, small', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dw5f88f729/images/small/PG.10219181.JJG80XX.BZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw5f88f729/images/small/PG.10219181.JJG80XX.BZ.jpg', + title: 'Textured Zip Front Cardigan, Sugar' + } + ], + variationAttributes: [ + { + id: 'color', + values: [ + { + value: 'JJG80XX' + } + ] + } + ], + viewType: 'small' + }, + { + images: [ + { + alt: 'Textured Zip Front Cardigan, Sugar, swatch', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dwa9e0d71c/images/swatch/PG.10219181.JJG80XX.CP.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dwa9e0d71c/images/swatch/PG.10219181.JJG80XX.CP.jpg', + title: 'Textured Zip Front Cardigan, Sugar' + } + ], + variationAttributes: [ + { + id: 'color', + values: [ + { + value: 'JJG80XX' + } + ] + } + ], + viewType: 'swatch' + } + ], + inventory: { + ats: 400, + backorderable: false, + id: 'inventory_m', + orderable: true, + preorderable: false, + stockLevel: 400 + }, + longDescription: + 'Classically designed, this zip front textured cardigan is perfect to pair with a great Commerce Cloud Store bottom!', + master: { + masterId: '25501802M', + orderable: true, + price: 53.11 + }, + minOrderQuantity: 1, + name: 'Textured Zip Front Cardigan', + pageDescription: + 'Classically designed, this zip front textured cardigan is perfect to pair with a great Commerce Cloud Store bottom!', + pageTitle: 'Textured Zip Front Cardigan', + price: 53.11, + pricePerUnit: 53.11, + primaryCategoryId: 'womens-clothing-tops', + productPromotions: [ + { + calloutMsg: 'Buy one Long Center Seam Skirt and get 2 tops', + promotionId: 'ChoiceOfBonusProdect-ProductLevel-ruleBased' + } + ], + shortDescription: + 'Classically designed, this zip front textured cardigan is perfect to pair with a great Commerce Cloud Store bottom!', + slugUrl: + 'https://zzrf-009.dx.commercecloud.salesforce.com/s/RefArchGlobal/textured-zip-front-cardigan/25501802M.html?lang=en_GB', + stepQuantity: 1, + type: { + master: true + }, + validFrom: { + default: '2010-10-21T04:00:00.000Z' + }, + variants: [ + { + orderable: true, + price: 53.11, + productId: '701642856139M', + variationValues: { + color: 'JJG80XX', + size: '9LG' + } + }, + { + orderable: true, + price: 53.11, + productId: '701642856160M', + variationValues: { + color: 'JJG80XX', + size: '9XL' + } + }, + { + orderable: true, + price: 53.11, + productId: '701642856146M', + variationValues: { + color: 'JJG80XX', + size: '9MD' + } + }, + { + orderable: true, + price: 53.11, + productId: '701642856153M', + variationValues: { + color: 'JJG80XX', + size: '9SM' + } + } + ], + variationAttributes: [ + { + id: 'color', + name: 'Colour', + values: [ + { + name: 'Sugar', + orderable: true, + value: 'JJG80XX' + } + ] + }, + { + id: 'size', + name: 'Size', + values: [ + { + name: 'S', + orderable: true, + value: '9SM' + }, + { + name: 'M', + orderable: true, + value: '9MD' + }, + { + name: 'L', + orderable: true, + value: '9LG' + }, + { + name: 'XL', + orderable: true, + value: '9XL' + } + ] + } + ], + quantity: 1 + }, + { + currency: 'GBP', + id: '701642884934M', + imageGroups: [ + { + images: [ + { + alt: 'Classic Blouse, , large', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dw36217548/images/large/PG.10208973.JJZ01XX.PZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw36217548/images/large/PG.10208973.JJZ01XX.PZ.jpg', + title: 'Classic Blouse, ' + }, + { + alt: 'Classic Blouse, , large', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dw7944a3a4/images/large/PG.10208973.JJZ01XX.BZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw7944a3a4/images/large/PG.10208973.JJZ01XX.BZ.jpg', + title: 'Classic Blouse, ' + } + ], + viewType: 'large' + }, + { + images: [ + { + alt: 'Classic Blouse, Multi, large', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dw36217548/images/large/PG.10208973.JJZ01XX.PZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw36217548/images/large/PG.10208973.JJZ01XX.PZ.jpg', + title: 'Classic Blouse, Multi' + }, + { + alt: 'Classic Blouse, Multi, large', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dw7944a3a4/images/large/PG.10208973.JJZ01XX.BZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw7944a3a4/images/large/PG.10208973.JJZ01XX.BZ.jpg', + title: 'Classic Blouse, Multi' + } + ], + variationAttributes: [ + { + id: 'color', + values: [ + { + value: 'JJZ01XX' + } + ] + } + ], + viewType: 'large' + }, + { + images: [ + { + alt: 'Classic Blouse, , medium', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dw5c673dcc/images/medium/PG.10208973.JJZ01XX.PZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw5c673dcc/images/medium/PG.10208973.JJZ01XX.PZ.jpg', + title: 'Classic Blouse, ' + }, + { + alt: 'Classic Blouse, , medium', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dw6367d44a/images/medium/PG.10208973.JJZ01XX.BZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw6367d44a/images/medium/PG.10208973.JJZ01XX.BZ.jpg', + title: 'Classic Blouse, ' + } + ], + viewType: 'medium' + }, + { + images: [ + { + alt: 'Classic Blouse, Multi, medium', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dw5c673dcc/images/medium/PG.10208973.JJZ01XX.PZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw5c673dcc/images/medium/PG.10208973.JJZ01XX.PZ.jpg', + title: 'Classic Blouse, Multi' + }, + { + alt: 'Classic Blouse, Multi, medium', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dw6367d44a/images/medium/PG.10208973.JJZ01XX.BZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw6367d44a/images/medium/PG.10208973.JJZ01XX.BZ.jpg', + title: 'Classic Blouse, Multi' + } + ], + variationAttributes: [ + { + id: 'color', + values: [ + { + value: 'JJZ01XX' + } + ] + } + ], + viewType: 'medium' + }, + { + images: [ + { + alt: 'Classic Blouse, , small', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dw876f6604/images/small/PG.10208973.JJZ01XX.PZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw876f6604/images/small/PG.10208973.JJZ01XX.PZ.jpg', + title: 'Classic Blouse, ' + }, + { + alt: 'Classic Blouse, , small', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dw95a5c5e9/images/small/PG.10208973.JJZ01XX.BZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw95a5c5e9/images/small/PG.10208973.JJZ01XX.BZ.jpg', + title: 'Classic Blouse, ' + } + ], + viewType: 'small' + }, + { + images: [ + { + alt: 'Classic Blouse, Multi, small', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dw876f6604/images/small/PG.10208973.JJZ01XX.PZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw876f6604/images/small/PG.10208973.JJZ01XX.PZ.jpg', + title: 'Classic Blouse, Multi' + }, + { + alt: 'Classic Blouse, Multi, small', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dw95a5c5e9/images/small/PG.10208973.JJZ01XX.BZ.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dw95a5c5e9/images/small/PG.10208973.JJZ01XX.BZ.jpg', + title: 'Classic Blouse, Multi' + } + ], + variationAttributes: [ + { + id: 'color', + values: [ + { + value: 'JJZ01XX' + } + ] + } + ], + viewType: 'small' + }, + { + images: [ + { + alt: 'Classic Blouse, Multi, swatch', + disBaseLink: + 'https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZRF_009/on/demandware.static/-/Sites-apparel-m-catalog/default/dwbf88a038/images/swatch/PG.10208973.JJZ01XX.CP.jpg', + link: 'https://zzrf-009.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-m-catalog/default/dwbf88a038/images/swatch/PG.10208973.JJZ01XX.CP.jpg', + title: 'Classic Blouse, Multi' + } + ], + variationAttributes: [ + { + id: 'color', + values: [ + { + value: 'JJZ01XX' + } + ] + } + ], + viewType: 'swatch' + } + ], + inventory: { + ats: 100, + backorderable: false, + id: 'inventory_m', + orderable: true, + preorderable: false, + stockLevel: 100 + }, + longDescription: + 'We took our long sleeve button front classic blouse and updated it with a new colour for the season.', + master: { + masterId: '25502072M', + orderable: true, + price: 42.23 + }, + minOrderQuantity: 1, + name: 'Classic Blouse', + pageDescription: + 'We took our long sleeve button front classic blouse and updated it with a new colour for the season.', + pageTitle: 'Classic Blouse', + price: 42.23, + pricePerUnit: 42.23, + productPromotions: [ + { + calloutMsg: 'Buy one Long Center Seam Skirt and get 2 tops', + promotionId: 'ChoiceOfBonusProdect-ProductLevel-ruleBased' + } + ], + shortDescription: + 'We took our long sleeve button front classic blouse and updated it with a new colour for the season.', + slugUrl: + 'https://zzrf-009.dx.commercecloud.salesforce.com/s/RefArchGlobal/classic-blouse/701642884934M.html?lang=en_GB', + stepQuantity: 1, + type: { + variant: true + }, + unitMeasure: '', + unitQuantity: 0, + upc: '701642884934', + validFrom: { + default: '2010-11-18T05:00:00.000Z' + }, + variants: [ + { + orderable: true, + price: 42.23, + productId: '701642884910M', + variationValues: { + color: 'JJZ01XX', + size: '004' + } + }, + { + orderable: true, + price: 42.23, + productId: '701642884927M', + variationValues: { + color: 'JJZ01XX', + size: '006' + } + }, + { + orderable: true, + price: 42.23, + productId: '701642884897M', + variationValues: { + color: 'JJZ01XX', + size: '014' + } + }, + { + orderable: true, + price: 42.23, + productId: '701642884903M', + variationValues: { + color: 'JJZ01XX', + size: '016' + } + }, + { + orderable: true, + price: 42.23, + productId: '701642884934M', + variationValues: { + color: 'JJZ01XX', + size: '008' + } + }, + { + orderable: true, + price: 42.23, + productId: '701642884880M', + variationValues: { + color: 'JJZ01XX', + size: '012' + } + }, + { + orderable: true, + price: 42.23, + productId: '701642884873M', + variationValues: { + color: 'JJZ01XX', + size: '010' + } + } + ], + variationAttributes: [ + { + id: 'color', + name: 'Colour', + values: [ + { + name: 'Multi', + orderable: true, + value: 'JJZ01XX' + } + ] + }, + { + id: 'size', + name: 'Size', + values: [ + { + name: '4', + orderable: true, + value: '004' + }, + { + name: '6', + orderable: true, + value: '006' + }, + { + name: '8', + orderable: true, + value: '008' + }, + { + name: '10', + orderable: true, + value: '010' + }, + { + name: '12', + orderable: true, + value: '012' + }, + { + name: '14', + orderable: true, + value: '014' + }, + { + name: '16', + orderable: true, + value: '016' + } + ] + } + ], + variationValues: { + color: 'JJZ01XX', + size: '008' + }, + c_color: 'JJZ01XX', + c_refinementColor: 'miscellaneous', + c_size: '008', + c_width: 'Z', + quantity: 1 + } + ], + total: 4 +} diff --git a/packages/template-retail-react-app/app/pages/account/wishlist/partials/wishlist-primary-action.test.js b/packages/template-retail-react-app/app/pages/account/wishlist/partials/wishlist-primary-action.test.js index 0ceb2e920d..a082e80cd6 100644 --- a/packages/template-retail-react-app/app/pages/account/wishlist/partials/wishlist-primary-action.test.js +++ b/packages/template-retail-react-app/app/pages/account/wishlist/partials/wishlist-primary-action.test.js @@ -5,20 +5,24 @@ * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ import React from 'react' -import {mockedCustomerProductListsDetails} from '../../../../commerce-api/mock-data' +import {mockWishListDetails} from './wishlist-primary-action.mock' import ItemVariantProvider from '../../../../components/item-variant' import {renderWithProviders} from '../../../../utils/test-utils' import WishlistPrimaryAction from './wishlist-primary-action' -import user from '@testing-library/user-event' +import userEvent from '@testing-library/user-event' import {screen, waitFor} from '@testing-library/react' +import PropTypes from 'prop-types' -const MockedComponent = (variant) => { +const MockedComponent = ({variant}) => { return (