From 6f08795b2b731644d8ba6b096370acc23b2e91e6 Mon Sep 17 00:00:00 2001 From: Aayush Rajagopalan <61064137+Aayush-Rajagopalan@users.noreply.github.com> Date: Wed, 31 May 2023 16:50:31 +0000 Subject: [PATCH] added compareAtPriceRange to the Product object --- lib/shopify/fragments/product.ts | 10 ++++++++++ lib/shopify/types.ts | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/lib/shopify/fragments/product.ts b/lib/shopify/fragments/product.ts index be14dedca..40a4a699e 100644 --- a/lib/shopify/fragments/product.ts +++ b/lib/shopify/fragments/product.ts @@ -14,6 +14,16 @@ const productFragment = /* GraphQL */ ` name values } + compareAtPriceRange { + maxVariantPrice { + amount + currencyCode + } + minVariantPrice { + amount + currencyCode + } + } priceRange { maxVariantPrice { amount diff --git a/lib/shopify/types.ts b/lib/shopify/types.ts index 23dc02d46..8cc3382bc 100644 --- a/lib/shopify/types.ts +++ b/lib/shopify/types.ts @@ -116,6 +116,10 @@ export type ShopifyProduct = { description: string; descriptionHtml: string; options: ProductOption[]; + compareAtPriceRange: { + maxVariantPrice: Money; + minVariantPrice: Money; + }; priceRange: { maxVariantPrice: Money; minVariantPrice: Money;