Liquid Snippets by ALSEL
📘 公式リファレンス📦 リファレンス/オブジェクト上級

remote_details オブジェクト

外部ストアから取得した商品など、リモートソースから供給されたオブジェクトの出所情報を提供する。出所の種類と提供元ストアの詳細にアクセスできる。

用途
Shopify Markets や多店舗統合で外部ストアの商品データを表示するとき、その商品がどのストアから来たのかを確認したい場面で使用。
設置場所
Liquid テンプレート内で `{{ remote_product.remote_details.type }}` または `{{ remote_product.remote_details.shop }}` の形で参照する。remote_product オブジェクトのプロパティとしてのみアクセス可能。
注意点
このオブジェクトは remote_product オブジェクトにのみ紐付いており、通常の product オブジェクトには存在しない。type プロパティは現在「seller」のみサポートされているが、将来拡張される可能性がある。リモートソースではない通常の商品で remote_details にアクセスすると null を返すため、事前に条件分岐で確認する必要がある。
タグ:remote-productmulti-merchantobjectmarketplace

仕様

69 行 / json
{
  "access": {
    "global": false,
    "parents": [
      {
        "object": "remote_product",
        "property": ""
      },
      {
        "object": "remote_product",
        "property": "remote_details"
      }
    ],
    "template": []
  },
  "deprecated": false,
  "deprecation_reason": "",
  "description": "Remote details can only be accessed on an object that comes from a remote source,\nsuch as a product from another store.",
  "properties": [
    {
      "deprecated": false,
      "deprecation_reason": "",
      "description": "",
      "examples": [],
      "return_type": [
        {
          "type": "string",
          "name": "",
          "description": "",
          "array_value": ""
        }
      ],
      "summary": "Provides context on how the remote object was surfaced.\nCurrently the only supported value is \"seller\", but this may be expanded in the future.",
      "name": "type"
    },
    {
      "deprecated": false,
      "deprecation_reason": "",
      "description": "",
      "examples": [],
      "return_type": [
        {
          "type": "remote_shop",
          "name": "",
          "description": "",
          "array_value": ""
        }
      ],
      "summary": "Information about the store that the remote object came from.",
      "name": "shop"
    }
  ],
  "summary": "Information about the remote source from which the object came from.",
  "name": "remote_details",
  "examples": [],
  "json_data": {
    "path": "",
    "handle": "",
    "data_from_file": ""
  },
  "return_type": [
    {
      "type": "RemoteDetailsDrop",
      "name": "",
      "description": "",
      "array_value": ""
    }
  ]
}

出典・ライセンス

License:
MIT

このコードは Shopify 著作の MIT ライセンスソースです。 原本の著作権は Shopify が保有します。日本語訳は ALSEL によるものです。

関連項目

📘 公式リファレンス📦 リファレンス/オブジェクト初級

content_for_header オブジェクト

Shopify が必要とするスクリプト(分析・チェックアウト・言語設定など)をすべて動的に出力するオブジェクト。theme.liquid の <head> タグ内に埋め込む必須要素。

📁 theme-liquid-docs·MIT·20
📘 公式リファレンス📦 リファレンス/オブジェクト中級

metaobjects オブジェクト

ストア全体のメタオブジェクト定義にアクセスするグローバルオブジェクト。個別のメタオブジェクトはタイプとハンドルで参照でき、メタオブジェクト定義のエントリをループで反復処理できる。

📁 theme-liquid-docs·MIT·20
📘 公式リファレンス📦 リファレンス/オブジェクト初級

additional_checkout_buttons オブジェクト

PayPal Express Checkout など、オフサイト決済に対応した外部決済プロバイダーがストアに設定されているかを真偽値で返す。`content_for_additional_checkout_buttons` と組み合わせて、該当するチェックアウトボタンを条件付きで表示する。

📁 theme-liquid-docs·MIT·27
📘 公式リファレンス📦 リファレンス/オブジェクト初級

canonical_url オブジェクト

現在のページの正規 URL を取得するオブジェクト。Google などの検索エンジンに対してどのページ版が正規であるかを指定するために使用する。

📁 theme-liquid-docs·MIT·27
📘 公式リファレンス📦 リファレンス/オブジェクト初級

content_for_index オブジェクト

ホームページに表示するセクションの内容を動的に返すオブジェクト。Liquid インデックステンプレートで必ず使用する。

📁 theme-liquid-docs·MIT·27
📘 公式リファレンス📦 リファレンス/オブジェクト初級

content_for_additional_checkout_buttons オブジェクト

PayPal、Apple Pay、Google Pay など複数の決済プロバイダが有効になっているとき、その決済ボタンを HTML として出力するオブジェクト。`additional_checkout_buttons` で有無を判定したうえで、このオブジェクトで実際のボタンを表示する。

📁 theme-liquid-docs·MIT·27