Skip to main content

CustomerProduct

顧客向けプラングループの商品

type CustomerProduct {
productId: String!
title: String!
onlineStorePreviewUrl: String!
hasOnlyDefaultVariant: Boolean!
images: [CustomerProductVariantImage]!
variants: [CustomerProductVariant]!
}

Fields

CustomerProduct.productId ● String! non-null scalar

商品ID

  • 説明: 商品の globally-unique ID
  • 例: "gid://shopify/Product/123456789"

CustomerProduct.title ● String! non-null scalar

商品名

  • 説明: 商品の名前
  • 例: "商品名"

CustomerProduct.onlineStorePreviewUrl ● String! non-null scalar

商品のプレビューURL

  • 説明: 商品のプレビューURL

CustomerProduct.hasOnlyDefaultVariant ● Boolean! non-null scalar

商品のバリエーションあるか

  • 説明: 商品のバリエーションあるか
  • 例: true
  • 備考: true:商品バリエーションあり false:商品バリエーションなし

CustomerProduct.images ● [CustomerProductVariantImage]! non-null object

商品の画像

  • 説明: 商品の画像

CustomerProduct.variants ● [CustomerProductVariant]! non-null object

商品のバリエーション

  • 説明: 商品のバリエーション

Example

{
"productId": "gid://shopify/Product/123456789",
"title": "商品名",
"onlineStorePreviewUrl": "https://example.com/preview",
"hasOnlyDefaultVariant": true,
"images": [
{
"id": "gid://shopify/ProductImage/123456789",
"width": 100,
"height": 100,
"originalSrc": "https://example.com/image.jpg",
"transformedSrc": "https://example.com/image.jpg"
}
],
"variants": [
{
"id": "gid://shopify/ProductVariant/123456789",
"title": "バリエーション名",
"displayName": "商品名 - バリエーション名",
"sku": "SKU123",
"price": "1000",
"requiresShipping": true,
"availableForSale": true,
"image": {
"id": "gid://shopify/ProductImage/123456789",
"width": 100,
"height": 100,
"originalSrc": "https://example.com/image.jpg",
"transformedSrc": "https://example.com/image.jpg"
},
"selectedOptions": [
{
"name": "色",
"value": "赤"
}
]
}
]
}

Member Of

ResultCustomerProductVariant object