I am having trouble getting the correct currency code for selling plan prices using the Shopify GraphQL API. Even though my store is set to TWD (New Taiwan Dollar), the prices are still showing in USD (US Dollar).
Can you help me understand why the currency code is still in USD and how I can make it show TWD?
Any help or guidance on this issue would be greatly appreciated.
Thank you for your assistance!
query allProducts @inContext(country: TW) {
product(id: "gid://shopify/Product/#####") {
id
title
handle
tags
sellingPlanGroups(first: 20) {
edges {
node {
name
sellingPlans(first: 20) {
edges {
node {
id
name
priceAdjustments {
adjustmentValue {
... on SellingPlanFixedPriceAdjustment {
price {
amount
currencyCode
}
}
... on SellingPlanPercentagePriceAdjustment {
adjustmentPercentage
}
}
}
checkoutCharge {
value {
... on MoneyV2 {
amount
currencyCode
}
}
}
}
}
}
}
}
}
variants(first: 20) {
edges {
node {
id
title
quantityAvailable
priceV2 {
amount
currencyCode
}
sku
barcode
}
}
}
}
}