Skip to main content

CustomerProductVariant

顧客向けプラングループの商品のバリエーション

type CustomerProductVariant {
id: String!
title: String!
displayName: String!
sku: String
price: String!
requiresShipping: Boolean!
availableForSale: Boolean!
image: CustomerProductVariantImage
selectedOptions: [CustomerProductVariantSelectedOption]
}

Fields

CustomerProductVariant.id ● String! non-null scalar

バリエーションID

  • 説明: バリエーションの globally-unique ID
  • 例: "gid://shopify/ProductVariant/123456789"

CustomerProductVariant.title ● String! non-null scalar

バリエーション名

  • 説明: バリエーションの名前。バリエーションが無い商品の場合は Default Title となる
  • 例: "バリエーション名"

CustomerProductVariant.displayName ● String! non-null scalar

バリエーションの表示名

  • 説明: バリエーションの表示名。バリエーションが無い商品の場合は 商品名 - Default Title となる
  • 例: "商品名 - バリエーション名"

CustomerProductVariant.sku ● String scalar

SKU

  • 説明: バリエーションのSKU
  • 例: "SKU123"

CustomerProductVariant.price ● String! non-null scalar

単価

  • 説明: バリエーションの単価
  • 例: "1000"

CustomerProductVariant.requiresShipping ● Boolean! non-null scalar

配送が必要な商品のフラグ

  • 説明: バリエーションの配送が必要かどうか
  • 例: true: 配送が必要, false: 配送が不要

CustomerProductVariant.availableForSale ● Boolean! non-null scalar

販売可能な商品のフラグ

  • 説明: バリエーションの販売が可能かどうか
  • 例: true: 販売可能, false: 販売不可能

CustomerProductVariant.image ● CustomerProductVariantImage object

バリエーションの画像

  • 説明: バリエーションの画像
  • 例: "https://example.com/image.jpg"

CustomerProductVariant.selectedOptions ● [CustomerProductVariantSelectedOption] list object

バリエーションの選択肢

  • 説明: バリエーションの情報

Example

{
"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"
}
}

Member Of

CustomerProduct object