From 85fcf6603165dbdcbe3dd515a85921c755980ab9 Mon Sep 17 00:00:00 2001 From: Tommy Wiebell Date: Wed, 13 Apr 2022 15:31:39 -0500 Subject: [PATCH 1/4] Update two areas displaying special prices incorrectly --- .../EditModal/productFormFragment.gql.js | 8 ++++++++ .../ProductListing/EditModal/useProductForm.js | 17 +++++------------ .../ProductFullDetail/useProductFullDetail.js | 6 +++--- .../Product/productDetailFragment.gql.js | 16 ++++++++++++++++ 4 files changed, 32 insertions(+), 15 deletions(-) diff --git a/packages/peregrine/lib/talons/CartPage/ProductListing/EditModal/productFormFragment.gql.js b/packages/peregrine/lib/talons/CartPage/ProductListing/EditModal/productFormFragment.gql.js index 1b3f1138c5..bd82f71e66 100644 --- a/packages/peregrine/lib/talons/CartPage/ProductListing/EditModal/productFormFragment.gql.js +++ b/packages/peregrine/lib/talons/CartPage/ProductListing/EditModal/productFormFragment.gql.js @@ -43,6 +43,14 @@ export const ProductFormFragment = gql` } } } + price_range { + maximum_price { + final_price { + currency + value + } + } + } sku } } diff --git a/packages/peregrine/lib/talons/CartPage/ProductListing/EditModal/useProductForm.js b/packages/peregrine/lib/talons/CartPage/ProductListing/EditModal/useProductForm.js index 7e912dc5e7..312dfa8cd3 100644 --- a/packages/peregrine/lib/talons/CartPage/ProductListing/EditModal/useProductForm.js +++ b/packages/peregrine/lib/talons/CartPage/ProductListing/EditModal/useProductForm.js @@ -19,11 +19,11 @@ import DEFAULT_OPERATIONS from './productForm.gql'; * * @param {Object} props * @param {Object} props.cartItem The cart item to configure on the form - * @param {GraphQLAST} props.getConfigurableOptionsQuery GraphQL query to get the configurable options for a product. + * @param {GraphQLDocument} props.getConfigurableOptionsQuery GraphQL query to get the configurable options for a product. * @param {function} props.setIsCartUpdating Function for setting the updating state for the shopping cart. * @param {function} props.setVariantPrice Function for setting the variant price on a product. - * @param {GraphQLAST} props.updateConfigurableOptionsMutation GraphQL mutation for updating the configurable options for a product. - * @param {GraphQLAST} props.updateQuantityMutation GraphQL mutation for updating the quantity of a product in a cart. + * @param {GraphQLDocument} props.updateConfigurableOptionsMutation GraphQL mutation for updating the configurable options for a product. + * @param {GraphQLDocument} props.updateQuantityMutation GraphQL mutation for updating the quantity of a product in a cart. * @param {function} props.setActiveEditItem Function for setting the actively editing item. * * @return {ProductFormTalonProps} @@ -150,15 +150,8 @@ export const useProductForm = props => { }, [storeConfigData]); useEffect(() => { - let variantPrice = null; - - if (selectedVariant) { - const { product } = selectedVariant; - const { price } = product; - const { regularPrice } = price; - variantPrice = regularPrice.amount; - } - + const variantPrice = + selectedVariant?.product?.price_range?.maximum_price?.final_price; setVariantPrice(variantPrice); }, [selectedVariant, setVariantPrice]); diff --git a/packages/peregrine/lib/talons/ProductFullDetail/useProductFullDetail.js b/packages/peregrine/lib/talons/ProductFullDetail/useProductFullDetail.js index d41fbedc2a..dd4730b090 100644 --- a/packages/peregrine/lib/talons/ProductFullDetail/useProductFullDetail.js +++ b/packages/peregrine/lib/talons/ProductFullDetail/useProductFullDetail.js @@ -155,7 +155,7 @@ const getConfigPrice = (product, optionCodes, optionSelections) => { 0; if (!isConfigurable || !optionsSelected) { - value = product.price.regularPrice.amount; + value = product.price_range?.maximum_price?.final_price; } else { const item = findMatchingVariant({ optionCodes, @@ -164,8 +164,8 @@ const getConfigPrice = (product, optionCodes, optionSelections) => { }); value = item - ? item.product.price.regularPrice.amount - : product.price.regularPrice.amount; + ? item.product.price_range?.maximum_price?.final_price + : product.price_range?.maximum_price?.final_price; } return value; diff --git a/packages/peregrine/lib/talons/RootComponents/Product/productDetailFragment.gql.js b/packages/peregrine/lib/talons/RootComponents/Product/productDetailFragment.gql.js index 4393976ec5..764c883001 100644 --- a/packages/peregrine/lib/talons/RootComponents/Product/productDetailFragment.gql.js +++ b/packages/peregrine/lib/talons/RootComponents/Product/productDetailFragment.gql.js @@ -33,6 +33,14 @@ export const ProductDetailsFragment = gql` } } } + price_range { + maximum_price { + final_price { + currency + value + } + } + } sku small_image { url @@ -119,6 +127,14 @@ export const ProductDetailsFragment = gql` } } } + price_range { + maximum_price { + final_price { + currency + value + } + } + } custom_attributes { selected_attribute_options { attribute_option { From d116f336e5cb2b6469e78ccd13d614a4dc9fdec8 Mon Sep 17 00:00:00 2001 From: Tommy Wiebell Date: Wed, 13 Apr 2022 17:12:28 -0500 Subject: [PATCH 2/4] Update additional areas not using final_price that includes special pricing. --- .../lib/ContentTypes/Products/products.js | 2 +- .../Category/categoryFragments.gql.js | 2 +- .../lib/talons/SearchPage/searchPage.gql.js | 2 +- .../__snapshots__/gallery.spec.js.snap | 8 +++---- .../__tests__/__snapshots__/item.spec.js.snap | 4 ++-- .../Gallery/__tests__/gallery.spec.js | 4 ++-- .../components/Gallery/__tests__/item.spec.js | 2 +- .../venia-ui/lib/components/Gallery/item.js | 6 ++--- .../__tests__/suggestedProduct.spec.js | 8 +++++++ .../lib/components/SearchBar/autocomplete.js | 8 +++++++ .../components/SearchBar/suggestedProduct.js | 19 +++++++++++---- .../productMockCall/productMockResponse.json | 24 +++++++++---------- .../data/default/accessoriesCategory.json | 6 ++--- .../multiStore/data/default/topsCategory.json | 6 ++--- .../multiStore/data/productsCarousel.json | 20 ++++++++-------- .../data/storeB/subcategoryACategory.json | 4 ++-- 16 files changed, 75 insertions(+), 50 deletions(-) diff --git a/packages/pagebuilder/lib/ContentTypes/Products/products.js b/packages/pagebuilder/lib/ContentTypes/Products/products.js index 79379db860..3b5597a1b1 100644 --- a/packages/pagebuilder/lib/ContentTypes/Products/products.js +++ b/packages/pagebuilder/lib/ContentTypes/Products/products.js @@ -288,7 +288,7 @@ export const GET_PRODUCTS_BY_URL_KEY = gql` name price_range { maximum_price { - regular_price { + final_price { currency value } diff --git a/packages/peregrine/lib/talons/RootComponents/Category/categoryFragments.gql.js b/packages/peregrine/lib/talons/RootComponents/Category/categoryFragments.gql.js index d32e7ac925..da9713bbd7 100644 --- a/packages/peregrine/lib/talons/RootComponents/Category/categoryFragments.gql.js +++ b/packages/peregrine/lib/talons/RootComponents/Category/categoryFragments.gql.js @@ -18,7 +18,7 @@ export const ProductsFragment = gql` name price_range { maximum_price { - regular_price { + final_price { currency value } diff --git a/packages/peregrine/lib/talons/SearchPage/searchPage.gql.js b/packages/peregrine/lib/talons/SearchPage/searchPage.gql.js index e869d75a7c..8798d9628a 100644 --- a/packages/peregrine/lib/talons/SearchPage/searchPage.gql.js +++ b/packages/peregrine/lib/talons/SearchPage/searchPage.gql.js @@ -48,7 +48,7 @@ export const PRODUCT_SEARCH = gql` name price_range { maximum_price { - regular_price { + final_price { currency value } diff --git a/packages/venia-ui/lib/components/Gallery/__tests__/__snapshots__/gallery.spec.js.snap b/packages/venia-ui/lib/components/Gallery/__tests__/__snapshots__/gallery.spec.js.snap index 5beb988ff0..68d34ff8d7 100644 --- a/packages/venia-ui/lib/components/Gallery/__tests__/__snapshots__/gallery.spec.js.snap +++ b/packages/venia-ui/lib/components/Gallery/__tests__/__snapshots__/gallery.spec.js.snap @@ -78,7 +78,7 @@ exports[`renders if \`items\` is an array of objects 1`] = `
- + - + - + {
@@ -152,7 +152,7 @@ GalleryItem.propTypes = { sku: string.isRequired, price_range: shape({ maximum_price: shape({ - regular_price: shape({ + final_price: shape({ value: number.isRequired, currency: string.isRequired }).isRequired diff --git a/packages/venia-ui/lib/components/SearchBar/__tests__/suggestedProduct.spec.js b/packages/venia-ui/lib/components/SearchBar/__tests__/suggestedProduct.spec.js index 9b7a85100a..0c420ca607 100644 --- a/packages/venia-ui/lib/components/SearchBar/__tests__/suggestedProduct.spec.js +++ b/packages/venia-ui/lib/components/SearchBar/__tests__/suggestedProduct.spec.js @@ -20,6 +20,14 @@ const defaultProps = { value: 3.5 } } + }, + price_range: { + maximum_price: { + final_price: { + currency: 'USD', + value: 3.5 + } + } } }; diff --git a/packages/venia-ui/lib/components/SearchBar/autocomplete.js b/packages/venia-ui/lib/components/SearchBar/autocomplete.js index ace098abfc..591c3f06a7 100644 --- a/packages/venia-ui/lib/components/SearchBar/autocomplete.js +++ b/packages/venia-ui/lib/components/SearchBar/autocomplete.js @@ -40,6 +40,14 @@ const GET_AUTOCOMPLETE_RESULTS = gql` } } } + price_range { + maximum_price { + final_price { + currency + value + } + } + } } page_info { total_pages diff --git a/packages/venia-ui/lib/components/SearchBar/suggestedProduct.js b/packages/venia-ui/lib/components/SearchBar/suggestedProduct.js index 00406adbe6..09856b5bfe 100644 --- a/packages/venia-ui/lib/components/SearchBar/suggestedProduct.js +++ b/packages/venia-ui/lib/components/SearchBar/suggestedProduct.js @@ -12,7 +12,14 @@ const IMAGE_WIDTH = 60; const SuggestedProduct = props => { const classes = useStyle(defaultClasses, props.classes); - const { url_key, small_image, name, onNavigate, price, url_suffix } = props; + const { + url_key, + small_image, + name, + onNavigate, + price_range, + url_suffix + } = props; const handleClick = useCallback(() => { if (typeof onNavigate === 'function') { @@ -25,6 +32,11 @@ const SuggestedProduct = props => { url_suffix ]); + const priceProps = { + currencyCode: price_range?.maximum_price?.final_price?.currency, + value: price_range?.maximum_price?.final_price?.value + }; + return ( { /> {name} - + ); diff --git a/venia-integration-tests/src/fixtures/categoryPage/productMockCall/productMockResponse.json b/venia-integration-tests/src/fixtures/categoryPage/productMockCall/productMockResponse.json index e37cb9da29..5034806db3 100644 --- a/venia-integration-tests/src/fixtures/categoryPage/productMockCall/productMockResponse.json +++ b/venia-integration-tests/src/fixtures/categoryPage/productMockCall/productMockResponse.json @@ -20,7 +20,7 @@ "name": "Carina Cardigan", "price_range": { "maximum_price": { - "regular_price": { + "final_price": { "currency": "USD", "value": 78, "__typename": "Money" @@ -45,7 +45,7 @@ "name": "Juno Sweater", "price_range": { "maximum_price": { - "regular_price": { + "final_price": { "currency": "USD", "value": 68, "__typename": "Money" @@ -70,7 +70,7 @@ "name": "Phoebe Cardigan", "price_range": { "maximum_price": { - "regular_price": { + "final_price": { "currency": "USD", "value": 88, "__typename": "Money" @@ -95,7 +95,7 @@ "name": "Rosalina Cardigan", "price_range": { "maximum_price": { - "regular_price": { + "final_price": { "currency": "USD", "value": 98, "__typename": "Money" @@ -120,7 +120,7 @@ "name": "Hanna Sweater", "price_range": { "maximum_price": { - "regular_price": { + "final_price": { "currency": "USD", "value": 98, "__typename": "Money" @@ -145,7 +145,7 @@ "name": "Sabina Hooded Cardigan", "price_range": { "maximum_price": { - "regular_price": { + "final_price": { "currency": "USD", "value": 108, "__typename": "Money" @@ -170,7 +170,7 @@ "name": "Brigid Boucle Cardigan", "price_range": { "maximum_price": { - "regular_price": { + "final_price": { "currency": "USD", "value": 118, "__typename": "Money" @@ -195,7 +195,7 @@ "name": "Roxana Cropped Sweater", "price_range": { "maximum_price": { - "regular_price": { + "final_price": { "currency": "USD", "value": 78, "__typename": "Money" @@ -220,7 +220,7 @@ "name": "Helena Cardigan", "price_range": { "maximum_price": { - "regular_price": { + "final_price": { "currency": "USD", "value": 98, "__typename": "Money" @@ -245,7 +245,7 @@ "name": "Corina Lace-Back Sweater", "price_range": { "maximum_price": { - "regular_price": { + "final_price": { "currency": "USD", "value": 108, "__typename": "Money" @@ -270,7 +270,7 @@ "name": "Echo Sweater", "price_range": { "maximum_price": { - "regular_price": { + "final_price": { "currency": "USD", "value": 78, "__typename": "Money" @@ -295,7 +295,7 @@ "name": "Lorena Cardigan", "price_range": { "maximum_price": { - "regular_price": { + "final_price": { "currency": "USD", "value": 98, "__typename": "Money" diff --git a/venia-integration-tests/src/fixtures/multiStore/data/default/accessoriesCategory.json b/venia-integration-tests/src/fixtures/multiStore/data/default/accessoriesCategory.json index c9f436aa19..0401b78ed7 100644 --- a/venia-integration-tests/src/fixtures/multiStore/data/default/accessoriesCategory.json +++ b/venia-integration-tests/src/fixtures/multiStore/data/default/accessoriesCategory.json @@ -24,7 +24,7 @@ "name": "Silver Sol Earrings", "price_range": { "maximum_price": { - "regular_price": { + "final_price": { "currency": "USD", "value": 48, "__typename": "Money" @@ -49,7 +49,7 @@ "name": "Augusta Necklace", "price_range": { "maximum_price": { - "regular_price": { + "final_price": { "currency": "USD", "value": 98, "__typename": "Money" @@ -74,7 +74,7 @@ "name": "Carmina Necklace", "price_range": { "maximum_price": { - "regular_price": { + "final_price": { "currency": "USD", "value": 98, "__typename": "Money" diff --git a/venia-integration-tests/src/fixtures/multiStore/data/default/topsCategory.json b/venia-integration-tests/src/fixtures/multiStore/data/default/topsCategory.json index dc19e8c54d..ab8234636b 100644 --- a/venia-integration-tests/src/fixtures/multiStore/data/default/topsCategory.json +++ b/venia-integration-tests/src/fixtures/multiStore/data/default/topsCategory.json @@ -24,7 +24,7 @@ "name": "Carina Cardigan", "price_range": { "maximum_price": { - "regular_price": { + "final_price": { "currency": "USD", "value": 78, "__typename": "Money" @@ -49,7 +49,7 @@ "name": "Juno Sweater", "price_range": { "maximum_price": { - "regular_price": { + "final_price": { "currency": "USD", "value": 68, "__typename": "Money" @@ -74,7 +74,7 @@ "name": "Phoebe Cardigan", "price_range": { "maximum_price": { - "regular_price": { + "final_price": { "currency": "USD", "value": 88, "__typename": "Money" diff --git a/venia-integration-tests/src/fixtures/multiStore/data/productsCarousel.json b/venia-integration-tests/src/fixtures/multiStore/data/productsCarousel.json index da5fd290a6..06191d1205 100644 --- a/venia-integration-tests/src/fixtures/multiStore/data/productsCarousel.json +++ b/venia-integration-tests/src/fixtures/multiStore/data/productsCarousel.json @@ -8,7 +8,7 @@ "name": "Bellona Skirt", "price_range": { "maximum_price": { - "regular_price": { + "final_price": { "currency": "USD", "value": 78, "__typename": "Money" @@ -32,7 +32,7 @@ "name": "Rowena Skirt", "price_range": { "maximum_price": { - "regular_price": { + "final_price": { "currency": "USD", "value": 78, "__typename": "Money" @@ -56,7 +56,7 @@ "name": "Johanna Skirt", "price_range": { "maximum_price": { - "regular_price": { + "final_price": { "currency": "USD", "value": 78, "__typename": "Money" @@ -80,7 +80,7 @@ "name": "Daria Crochet Skirt", "price_range": { "maximum_price": { - "regular_price": { + "final_price": { "currency": "USD", "value": 98, "__typename": "Money" @@ -104,7 +104,7 @@ "name": "Agatha Skirt", "price_range": { "maximum_price": { - "regular_price": { + "final_price": { "currency": "USD", "value": 78, "__typename": "Money" @@ -128,7 +128,7 @@ "name": "Leona Skirt", "price_range": { "maximum_price": { - "regular_price": { + "final_price": { "currency": "USD", "value": 88, "__typename": "Money" @@ -152,7 +152,7 @@ "name": "Davina Skirt", "price_range": { "maximum_price": { - "regular_price": { + "final_price": { "currency": "USD", "value": 108, "__typename": "Money" @@ -176,7 +176,7 @@ "name": "Tatiana Skirt", "price_range": { "maximum_price": { - "regular_price": { + "final_price": { "currency": "USD", "value": 98, "__typename": "Money" @@ -200,7 +200,7 @@ "name": "Iona Skirt", "price_range": { "maximum_price": { - "regular_price": { + "final_price": { "currency": "USD", "value": 88, "__typename": "Money" @@ -224,7 +224,7 @@ "name": "Samara Skirt", "price_range": { "maximum_price": { - "regular_price": { + "final_price": { "currency": "USD", "value": 108, "__typename": "Money" diff --git a/venia-integration-tests/src/fixtures/multiStore/data/storeB/subcategoryACategory.json b/venia-integration-tests/src/fixtures/multiStore/data/storeB/subcategoryACategory.json index b2f0123c9c..ab5fa5ebf7 100644 --- a/venia-integration-tests/src/fixtures/multiStore/data/storeB/subcategoryACategory.json +++ b/venia-integration-tests/src/fixtures/multiStore/data/storeB/subcategoryACategory.json @@ -21,7 +21,7 @@ "name": "Augusta Earrings", "price_range": { "maximum_price": { - "regular_price": { + "final_price": { "currency": "USD", "value": 78, "__typename": "Money" @@ -46,7 +46,7 @@ "name": "Ombre Infinity Scarf", "price_range": { "maximum_price": { - "regular_price": { + "final_price": { "currency": "USD", "value": 48, "__typename": "Money" From 39301dcda12ff5ab17ebf6c032500e3af631c84c Mon Sep 17 00:00:00 2001 From: Tommy Wiebell Date: Wed, 13 Apr 2022 17:30:43 -0500 Subject: [PATCH 3/4] Fix whitespace in snaps from manual edit --- .../Gallery/__tests__/__snapshots__/gallery.spec.js.snap | 4 ++-- .../Gallery/__tests__/__snapshots__/item.spec.js.snap | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/venia-ui/lib/components/Gallery/__tests__/__snapshots__/gallery.spec.js.snap b/packages/venia-ui/lib/components/Gallery/__tests__/__snapshots__/gallery.spec.js.snap index 68d34ff8d7..fe1f90a735 100644 --- a/packages/venia-ui/lib/components/Gallery/__tests__/__snapshots__/gallery.spec.js.snap +++ b/packages/venia-ui/lib/components/Gallery/__tests__/__snapshots__/gallery.spec.js.snap @@ -78,7 +78,7 @@ exports[`renders if \`items\` is an array of objects 1`] = `
- + - + - + Date: Thu, 21 Apr 2022 16:07:54 -0500 Subject: [PATCH 4/4] Add price_range data to integration test fixtures. --- .../data/default/product1ProductDetail.json | 187 ++++++++++++++++++ .../data/storeB/product2ProductDetail.json | 176 +++++++++++++++++ 2 files changed, 363 insertions(+) diff --git a/venia-integration-tests/src/fixtures/multiStore/data/default/product1ProductDetail.json b/venia-integration-tests/src/fixtures/multiStore/data/default/product1ProductDetail.json index f81e5f4bba..7962f94dd6 100644 --- a/venia-integration-tests/src/fixtures/multiStore/data/default/product1ProductDetail.json +++ b/venia-integration-tests/src/fixtures/multiStore/data/default/product1ProductDetail.json @@ -58,6 +58,17 @@ }, "__typename": "ProductPrices" }, + "price_range": { + "maximum_price": { + "final_price": { + "currency": "USD", + "value": 78, + "__typename": "Money" + }, + "__typename": "ProductPrice" + }, + "__typename": "PriceRange" + }, "sku": "VSW01", "small_image": { "url": "https:\/\/master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud\/media\/catalog\/product\/cache\/89b95971682c72ea898815b5daec2278\/v\/s\/vsw01-rn_main_2.jpg", @@ -474,6 +485,17 @@ }, "__typename": "ProductPrices" }, + "price_range": { + "maximum_price": { + "final_price": { + "currency": "USD", + "value": 78, + "__typename": "Money" + }, + "__typename": "ProductPrice" + }, + "__typename": "PriceRange" + }, "custom_attributes": [ { "selected_attribute_options": { @@ -762,6 +784,17 @@ }, "__typename": "ProductPrices" }, + "price_range": { + "maximum_price": { + "final_price": { + "currency": "USD", + "value": 78, + "__typename": "Money" + }, + "__typename": "ProductPrice" + }, + "__typename": "PriceRange" + }, "custom_attributes": [ { "selected_attribute_options": { @@ -1050,6 +1083,17 @@ }, "__typename": "ProductPrices" }, + "price_range": { + "maximum_price": { + "final_price": { + "currency": "USD", + "value": 78, + "__typename": "Money" + }, + "__typename": "ProductPrice" + }, + "__typename": "PriceRange" + }, "custom_attributes": [ { "selected_attribute_options": { @@ -1338,6 +1382,17 @@ }, "__typename": "ProductPrices" }, + "price_range": { + "maximum_price": { + "final_price": { + "currency": "USD", + "value": 78, + "__typename": "Money" + }, + "__typename": "ProductPrice" + }, + "__typename": "PriceRange" + }, "custom_attributes": [ { "selected_attribute_options": { @@ -1626,6 +1681,17 @@ }, "__typename": "ProductPrices" }, + "price_range": { + "maximum_price": { + "final_price": { + "currency": "USD", + "value": 78, + "__typename": "Money" + }, + "__typename": "ProductPrice" + }, + "__typename": "PriceRange" + }, "custom_attributes": [ { "selected_attribute_options": { @@ -1914,6 +1980,17 @@ }, "__typename": "ProductPrices" }, + "price_range": { + "maximum_price": { + "final_price": { + "currency": "USD", + "value": 78, + "__typename": "Money" + }, + "__typename": "ProductPrice" + }, + "__typename": "PriceRange" + }, "custom_attributes": [ { "selected_attribute_options": { @@ -2202,6 +2279,17 @@ }, "__typename": "ProductPrices" }, + "price_range": { + "maximum_price": { + "final_price": { + "currency": "USD", + "value": 78, + "__typename": "Money" + }, + "__typename": "ProductPrice" + }, + "__typename": "PriceRange" + }, "custom_attributes": [ { "selected_attribute_options": { @@ -2490,6 +2578,17 @@ }, "__typename": "ProductPrices" }, + "price_range": { + "maximum_price": { + "final_price": { + "currency": "USD", + "value": 78, + "__typename": "Money" + }, + "__typename": "ProductPrice" + }, + "__typename": "PriceRange" + }, "custom_attributes": [ { "selected_attribute_options": { @@ -2778,6 +2877,17 @@ }, "__typename": "ProductPrices" }, + "price_range": { + "maximum_price": { + "final_price": { + "currency": "USD", + "value": 78, + "__typename": "Money" + }, + "__typename": "ProductPrice" + }, + "__typename": "PriceRange" + }, "custom_attributes": [ { "selected_attribute_options": { @@ -3066,6 +3176,17 @@ }, "__typename": "ProductPrices" }, + "price_range": { + "maximum_price": { + "final_price": { + "currency": "USD", + "value": 78, + "__typename": "Money" + }, + "__typename": "ProductPrice" + }, + "__typename": "PriceRange" + }, "custom_attributes": [ { "selected_attribute_options": { @@ -3354,6 +3475,17 @@ }, "__typename": "ProductPrices" }, + "price_range": { + "maximum_price": { + "final_price": { + "currency": "USD", + "value": 78, + "__typename": "Money" + }, + "__typename": "ProductPrice" + }, + "__typename": "PriceRange" + }, "custom_attributes": [ { "selected_attribute_options": { @@ -3642,6 +3774,17 @@ }, "__typename": "ProductPrices" }, + "price_range": { + "maximum_price": { + "final_price": { + "currency": "USD", + "value": 78, + "__typename": "Money" + }, + "__typename": "ProductPrice" + }, + "__typename": "PriceRange" + }, "custom_attributes": [ { "selected_attribute_options": { @@ -3930,6 +4073,17 @@ }, "__typename": "ProductPrices" }, + "price_range": { + "maximum_price": { + "final_price": { + "currency": "USD", + "value": 78, + "__typename": "Money" + }, + "__typename": "ProductPrice" + }, + "__typename": "PriceRange" + }, "custom_attributes": [ { "selected_attribute_options": { @@ -4218,6 +4372,17 @@ }, "__typename": "ProductPrices" }, + "price_range": { + "maximum_price": { + "final_price": { + "currency": "USD", + "value": 78, + "__typename": "Money" + }, + "__typename": "ProductPrice" + }, + "__typename": "PriceRange" + }, "custom_attributes": [ { "selected_attribute_options": { @@ -4506,6 +4671,17 @@ }, "__typename": "ProductPrices" }, + "price_range": { + "maximum_price": { + "final_price": { + "currency": "USD", + "value": 78, + "__typename": "Money" + }, + "__typename": "ProductPrice" + }, + "__typename": "PriceRange" + }, "custom_attributes": [ { "selected_attribute_options": { @@ -4794,6 +4970,17 @@ }, "__typename": "ProductPrices" }, + "price_range": { + "maximum_price": { + "final_price": { + "currency": "USD", + "value": 78, + "__typename": "Money" + }, + "__typename": "ProductPrice" + }, + "__typename": "PriceRange" + }, "custom_attributes": [ { "selected_attribute_options": { diff --git a/venia-integration-tests/src/fixtures/multiStore/data/storeB/product2ProductDetail.json b/venia-integration-tests/src/fixtures/multiStore/data/storeB/product2ProductDetail.json index a882fe8097..524cf47773 100644 --- a/venia-integration-tests/src/fixtures/multiStore/data/storeB/product2ProductDetail.json +++ b/venia-integration-tests/src/fixtures/multiStore/data/storeB/product2ProductDetail.json @@ -58,6 +58,17 @@ }, "__typename": "ProductPrices" }, + "price_range": { + "maximum_price": { + "final_price": { + "currency": "EUR", + "value": 33.92, + "__typename": "Money" + }, + "__typename": "ProductPrice" + }, + "__typename": "PriceRange" + }, "sku": "VA03", "small_image": { "url": "https://master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud/media/catalog/product/cache/89b95971682c72ea898815b5daec2278/v/a/va03-ly_main_2.jpg", @@ -410,6 +421,17 @@ }, "__typename": "ProductPrices" }, + "price_range": { + "maximum_price": { + "final_price": { + "currency": "EUR", + "value": 33.92, + "__typename": "Money" + }, + "__typename": "ProductPrice" + }, + "__typename": "PriceRange" + }, "custom_attributes": [ { "selected_attribute_options": { @@ -634,6 +656,17 @@ }, "__typename": "ProductPrices" }, + "price_range": { + "maximum_price": { + "final_price": { + "currency": "EUR", + "value": 33.92, + "__typename": "Money" + }, + "__typename": "ProductPrice" + }, + "__typename": "PriceRange" + }, "custom_attributes": [ { "selected_attribute_options": { @@ -858,6 +891,17 @@ }, "__typename": "ProductPrices" }, + "price_range": { + "maximum_price": { + "final_price": { + "currency": "EUR", + "value": 33.92, + "__typename": "Money" + }, + "__typename": "ProductPrice" + }, + "__typename": "PriceRange" + }, "custom_attributes": [ { "selected_attribute_options": { @@ -1082,6 +1126,17 @@ }, "__typename": "ProductPrices" }, + "price_range": { + "maximum_price": { + "final_price": { + "currency": "EUR", + "value": 33.92, + "__typename": "Money" + }, + "__typename": "ProductPrice" + }, + "__typename": "PriceRange" + }, "custom_attributes": [ { "selected_attribute_options": { @@ -1306,6 +1361,17 @@ }, "__typename": "ProductPrices" }, + "price_range": { + "maximum_price": { + "final_price": { + "currency": "EUR", + "value": 33.92, + "__typename": "Money" + }, + "__typename": "ProductPrice" + }, + "__typename": "PriceRange" + }, "custom_attributes": [ { "selected_attribute_options": { @@ -1530,6 +1596,17 @@ }, "__typename": "ProductPrices" }, + "price_range": { + "maximum_price": { + "final_price": { + "currency": "EUR", + "value": 33.92, + "__typename": "Money" + }, + "__typename": "ProductPrice" + }, + "__typename": "PriceRange" + }, "custom_attributes": [ { "selected_attribute_options": { @@ -1754,6 +1831,17 @@ }, "__typename": "ProductPrices" }, + "price_range": { + "maximum_price": { + "final_price": { + "currency": "EUR", + "value": 33.92, + "__typename": "Money" + }, + "__typename": "ProductPrice" + }, + "__typename": "PriceRange" + }, "custom_attributes": [ { "selected_attribute_options": { @@ -1978,6 +2066,17 @@ }, "__typename": "ProductPrices" }, + "price_range": { + "maximum_price": { + "final_price": { + "currency": "EUR", + "value": 33.92, + "__typename": "Money" + }, + "__typename": "ProductPrice" + }, + "__typename": "PriceRange" + }, "custom_attributes": [ { "selected_attribute_options": { @@ -2202,6 +2301,17 @@ }, "__typename": "ProductPrices" }, + "price_range": { + "maximum_price": { + "final_price": { + "currency": "EUR", + "value": 33.92, + "__typename": "Money" + }, + "__typename": "ProductPrice" + }, + "__typename": "PriceRange" + }, "custom_attributes": [ { "selected_attribute_options": { @@ -2426,6 +2536,17 @@ }, "__typename": "ProductPrices" }, + "price_range": { + "maximum_price": { + "final_price": { + "currency": "EUR", + "value": 33.92, + "__typename": "Money" + }, + "__typename": "ProductPrice" + }, + "__typename": "PriceRange" + }, "custom_attributes": [ { "selected_attribute_options": { @@ -2650,6 +2771,17 @@ }, "__typename": "ProductPrices" }, + "price_range": { + "maximum_price": { + "final_price": { + "currency": "EUR", + "value": 33.92, + "__typename": "Money" + }, + "__typename": "ProductPrice" + }, + "__typename": "PriceRange" + }, "custom_attributes": [ { "selected_attribute_options": { @@ -2874,6 +3006,17 @@ }, "__typename": "ProductPrices" }, + "price_range": { + "maximum_price": { + "final_price": { + "currency": "EUR", + "value": 33.92, + "__typename": "Money" + }, + "__typename": "ProductPrice" + }, + "__typename": "PriceRange" + }, "custom_attributes": [ { "selected_attribute_options": { @@ -3098,6 +3241,17 @@ }, "__typename": "ProductPrices" }, + "price_range": { + "maximum_price": { + "final_price": { + "currency": "EUR", + "value": 33.92, + "__typename": "Money" + }, + "__typename": "ProductPrice" + }, + "__typename": "PriceRange" + }, "custom_attributes": [ { "selected_attribute_options": { @@ -3322,6 +3476,17 @@ }, "__typename": "ProductPrices" }, + "price_range": { + "maximum_price": { + "final_price": { + "currency": "EUR", + "value": 33.92, + "__typename": "Money" + }, + "__typename": "ProductPrice" + }, + "__typename": "PriceRange" + }, "custom_attributes": [ { "selected_attribute_options": { @@ -3546,6 +3711,17 @@ }, "__typename": "ProductPrices" }, + "price_range": { + "maximum_price": { + "final_price": { + "currency": "EUR", + "value": 33.92, + "__typename": "Money" + }, + "__typename": "ProductPrice" + }, + "__typename": "PriceRange" + }, "custom_attributes": [ { "selected_attribute_options": {