1. カタログ

上書きカタログ テンプレートを構成する

Version:
日本語翻訳に関する免責事項

このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。

既定では、カタログ品目はグローバル コマース テンプレートに基づいています。つまり、マルチサイト設定では、すべてのストアフロントサイトに同じプレゼンテーション項目とカスタム項目があります。各サイトに独自のプレゼンテーション フィールドとユーザー設定フィールドを持たせる場合は、各カタログに上書きテンプレートを定義して、ページ タイプ テンプレートが他の基本テンプレートから継承するコンテナになり、テンプレートとページのデザイン マッピングによってページ デザインが決定されるようにする必要があります。これは、ページのレンダリングに必要なデータ構造とデータ継承を定義するテンプレートです。これを次の図に示します。

メモ

このトピックではストアフロント サイト テンプレートを参照していますが、このコンテンツはSXAストアフロントまたはストアフロント サイト テンプレートを使用せずにSitecore Commerceを使用する場合にも適用されます。

Overview of template types.

次の上書きテンプレートは、Storefrontサイト テンプレートと共に既定で提供されます。

手記

_SearchableWithoutRelatedItemsテンプレートは、カスタム インデックスを使用している場合、またはSitecoreコンテンツ クローラーがカタログ コンテンツをクロールするように設定されている場合にのみ必要です。この場合、カタログ・コンテンツのインデックス作成に必要な時間を短縮するために、このタグを含めることが重要です。

オーバーライド テンプレート

基本テンプレート

カテゴリテンプレート

  • /sitecore/Templates/Project/<tenant>/Catalog Navigation Page

  • /sitecore/Templates/Foundation/Commerce Experience Accelerator/Commerce Pages/Catalog Category Page

  • /sitecore/Templates/Commerce/Catalog/Commerce Category

  • /sitecore/Templates/Foundation/Experience Accelerator/Search/Computed Fields/_SearchableWithoutRelatedItems

商品テンプレート

  • /sitecore/Templates/Project/<tenant>/Catalog Navigation Page

  • /sitecore/Templates/Foundation/Commerce Experience Accelerator/Commerce Pages/Catalog Product Page

  • /sitecore/Templates/Commerce/Catalog/Commerce Product

  • /sitecore/Templates/Foundation/Experience Accelerator/Search/Computed Fields/_SearchableWithoutRelatedItems

製品バリアント テンプレート

  • /sitecore/Templates/Project/<tenant>/Catalog Navigation Page

  • /sitecore/Templates/Foundation/Commerce Experience Accelerator/Commerce Pages/Catalog Product Page

  • /sitecore/Templates/Commerce/Catalog/Commerce Product Variant

  • /sitecore/Templates/Foundation/Experience Accelerator/Search/Computed Fields/_SearchableWithoutRelatedItems

静的バンドルテンプレート

  • /sitecore/Templates/Project/Sitecore/Catalog Navigation Page

  • /sitecore/Templates/Foundation/Commerce Experience Accelerator/Commerce Pages/Catalog Product Page

  • /sitecore/Templates/Commerce/Catalog/Commerce Bundle

  • /sitecore/Templates/Foundation/Experience Accelerator/Search/Computed Fields/_SearchableWithoutRelatedItems

ダイナミックバンドルテンプレート

  • /sitecore/Templates/Project/Sitecore/Catalog Navigation Page

  • /sitecore/Templates/Foundation/Commerce Experience Accelerator/Commerce Pages/Catalog Product Page

  • /sitecore/Templates/Commerce/Catalog/Commerce Dynamic Bundle

  • /sitecore/Templates/Foundation/Experience Accelerator/Search/Computed Fields/_SearchableWithoutRelatedItems

データプロバイダが使用するテンプレートを上書きするには:

  1. コンテンツ エディタで、/sitecore/Content/<tenant>/<site>/Home/Catalogsに移動します。

  2. カタログを選択します。

  3. ContentタブのTemplate Overridesセクションで、テンプレート タイプごとにフィールドをクリックし、オーバーライド テンプレートをTemplates/Project/<tenant> フォルダー内のプロジェクト テンプレートにマッピングします。

  4. 変更を有効にするには、リボンのCommerceタブでRefresh Commerce Cacheをクリックします。

上書きテンプレートを定義したら、カタログ表示を構成する必要があります。ダイレクト ナビゲーションを構成する場合は、ストアフロント サイトで 有効に する必要があります。

この記事を改善するための提案がある場合は、 お知らせください!