My website was using graphql shopify api version 2021 until it was fully deprecated and removed couple of days ago and my website is not functional anymore. I updated the API version that my website uses however I get the following errors:
"message": "Field 'presentmentPrices' doesn't exist on type 'ProductVariant'",
Was presentmentPrices removed? I can’t seem to find it in the official docs anymore. How can I get multi currency prices of productvariant now?
My code is below:
body: `{
collectionByHandle(handle: "private-replicas") {
id
description
products(first: 20) {
edges {
node {
id
title
description
metafield(namespace: "global", key: "colour") {
value
}
rating: metafield(namespace: "global", key: "rating") {
value
}
elements: metafield(namespace: "global", key: "elements") {
value
}
variants (first: 2) {
edges {
node {
id
image {
originalSrc
}
price
presentmentPrices(first:3, presentmentCurrencies: [GBP, USD, EUR]) {
edges {
node {
compareAtPrice {
amount
currencyCode
}
price {
amount
currencyCode
}
}
}
}
}
}
}
priceRange {
minVariantPrice {
amount
currencyCode
}
maxVariantPrice {
amount
}
}
images(first: 9) {
edges {
node {
src
}
}
}
}
}
}
}
}`