You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Myself (and I think many others) are a bit lost with the deprecated presentmentPrices and the move to the International pricing API
Are there methods in the shopify-buy sdk to handle this now?
For example, when initialising the client do we need to set the currency? Or do we need to somehow set the currency per fetching method?
client.collection
.fetchWithProducts(collectionId, {
productsFirst: 120,
currency: 'USD' // Is there an option here we need to pass in order to get the right price?
})
.then((collection) => {
// do something
});
Or do we need to use the graphql API instead and move away from the the buy sdk?
Thanks
The text was updated successfully, but these errors were encountered:
You have to use raw GraphQL queries for all calls, since things like line items won't be fetched in the correct context without continuing to specify the inContext directive.
Hello Shopify—
Myself (and I think many others) are a bit lost with the deprecated presentmentPrices and the move to the International pricing API
Are there methods in the
shopify-buy
sdk to handle this now?For example, when initialising the client do we need to set the currency? Or do we need to somehow set the currency per fetching method?
Or do we need to use the graphql API instead and move away from the the buy sdk?
Thanks
The text was updated successfully, but these errors were encountered: