Headless commerce and custom storefronts with Shopify APIs and SDKs
We are running against the latest Storefront API in a private app to query our products. Yesterday everything worked fine, today pricing changes are no longer reflected within the API.
We have the following product listed
As you can see the min and max price are different.
When using the following query
import { gql } from 'apollo-angular';
export const PRODUCT_QUERY = gql`
query($handle: String!) {
productByHandle(handle: $handle) {
id
tags
handle
description
title
images(first: 1) {
edges {
node {
transformedSrc(maxWidth: 350)
}
}
}
metaFieldsGlobal: metafields(first: 10, namespace: "global") {
edges {
node {
key
value
}
}
}
metaFieldsDetails: metafields(first: 5, namespace: "details") {
edges {
node {
key
value
}
}
}
variants(first: 5) {
edges {
node {
id
}
}
}
description
priceRange {
minVariantPrice {
amount
currencyCode
}
maxVariantPrice {
amount
currencyCode
}
}
}
}
`;
the result looks as follows:
],
"__typename": "ProductVariantConnection"
},
"priceRange": {
"minVariantPrice": {
"amount": "495.0",
"currencyCode": "EUR",
"__typename": "MoneyV2"
},
"maxVariantPrice": {
"amount": "495.0",
"currencyCode": "EUR",
"__typename": "MoneyV2"
},
"__typename": "ProductPriceRange"
},
"__typename": "Product"
}
}
}
Any changes to the price are being completely ignored, changes to everything else are immediately reflected within the API.
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022