Liquid、JavaScriptなどに関する質問
いつ頃からかわからないですけど、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のバージョンは下記を試してみましたけど、どちらも変わりはありません。
すみません。そもそも 「availableForSale」は購入可能かどうかでした。
Shopify アカデミーの学習パスと認定スキルバッジExpanding Your Shopify Business Internationallyを活用して、国際的にビジネ...
By Shopify Feb 7, 2025Shopify アカデミーの学習パスB2B on Shopify:立ち上げとカスタマイズで卸売販売に進出しましょう。これら3つの無料コースは、ShopifyストアでB2B機能...
By Shopify Jan 31, 2025サポートの選択肢が増えていく中、最適となる選択の判断が難しくなっているかと存じます。今回は問題の解決に最適となるサポートの選択方法を、紹介させて頂きます。 選択肢のご紹介...
By Mirai Oct 6, 2024