add compareAtPriceRange

This commit is contained in:
codingChewie 2024-10-30 16:54:01 -05:00
parent 57016c1582
commit 8efe945118
2 changed files with 14 additions and 0 deletions

View File

@ -14,6 +14,16 @@ const productFragment = /* GraphQL */ `
name name
values values
} }
compareAtPriceRange {
maxVariantPrice {
amount
currencyCode
}
minVariantPrice {
amount
currencyCode
}
}
priceRange { priceRange {
maxVariantPrice { maxVariantPrice {
amount amount

View File

@ -123,6 +123,10 @@ export type ShopifyProduct = {
description: string; description: string;
descriptionHtml: string; descriptionHtml: string;
options: ProductOption[]; options: ProductOption[];
compareAtPriceRange: {
maxVariantPrice: Money;
minVariantPrice: Money;
};
priceRange: { priceRange: {
maxVariantPrice: Money; maxVariantPrice: Money;
minVariantPrice: Money; minVariantPrice: Money;