いつ頃からかわからないですけど、StoreFront APIの結果が変わりましたでしょうか?
query {
products(first:1, query:"available_for_sale:true") {
edges {
node {
availableForSale
priceRange {
minVariantPrice {
amount
currencyCode
}
maxVariantPrice {
amount
currencyCode
}
}
compareAtPriceRange {
minVariantPrice {
amount
currencyCode
}
maxVariantPrice {
amount
currencyCode
}
}
}
}
}
}
の結果が、
{
"data": {
"products": {
"edges": [
{
"node": {
"availableForSale": true,
"priceRange": {
"minVariantPrice": {
"amount": "3000.0",
"currencyCode": "JPY"
},
"maxVariantPrice": {
"amount": "3000.0",
"currencyCode": "JPY"
}
},
"compareAtPriceRange": {
"minVariantPrice": {
"amount": "0.0",
"currencyCode": "JPY"
},
"maxVariantPrice": {
"amount": "0.0",
"currencyCode": "JPY"
}
}
}
}
]
}
と、割引してないのに 「availableForSale」が「true」でレスポンスされるようになってますね。
APIのバージョンは下記を試してみましたけど、どちらも変わりはありません。
- 2022-01
- 2022-10