---
title: "Commerce Search Results表示ラベルの修正"
slug: "modify-commerce-search-results-rendering-labels"
abstract: "Commerce Searchの結果表示のラベル(在庫状況、節約状況、セール期間など)を変更する方法。"
---
# Commerce Search Results表示ラベルの修正

Commerce Search Resultsのレンダリングラベルは、在庫状況、節約状況、セール期間ごとに変更できます。以下の図は、ライブストアフロントでのCommerce Search結果レンダリングを示しています。テンプレートを変更することで、Commerce Search結果レンダリングの [挙動](https://doc.sitecore.com/xp/ja/developers/93/sitecore-experience-commerce/customizing-the-commerce-search-results-rendering.html "Customizing the Commerce Search Results rendering") をさらにカスタマイズできます。

![Search results showing stock status labels](https://doc.sitecore.com/api/markdown-image/xp/ja/developers/93/sitecore-experience-commerce/images/CommerceSearchRenderingLive.png)

> !注商品価格を計算するために、レンダリングはバリアント全体の最低価格を特定し、フォーマットされた*SellPrice*を表示します。複数の価格帯がある場合は、レンダリングに*Starting from*ラベルを表示します。

以下の表は、可能な株価の状態を示しています。

種の現状

概要

在庫あり

*IsAvailable*フラグが真で*Count*パラメータがゼロより大きい、または*IsAlwaysAvailable*フラグが真である場合、その商品は在庫とみなされます。

在庫切れ

商品の状態が *In Stock*、 *Pre**注文可能* 、 *またはバックオーダー可能*でない場合、在庫切れとなります。

バックオーダー

商品がバックオーダー可能であるのは、そのポリシーが *Sitecore**である場合です。Commerce.Plugin.Backorderable.AvailabilityBackOrderedPolicy* およびその QuantityOrdered がバックオーダー制限を超えていません。

予約注文可能

商品が事前注文可能であるのは、そのポリシーが *Sitecore**である場合です。Commerce.Plugin.Preorderable.AvailabilityPreOrderedPolicy* およびその *QuantityOrdered* がその *PreOrderLimit*を超えていない場合。

ラベルを変更するには:

1.  詳細、節約、開始点のラベルを変更するには、コンテンツエディターで /sitecore/Content/<tenant>/<site>/<site> Dictionary/Commerce Search Resultsへ行ってください。
    
    ![DetailLabelsInTree.png](https://doc.sitecore.com/api/markdown-image/xp/ja/developers/93/sitecore-experience-commerce/images/DetailLabelsInTree.png)
    
2.  在庫ステータスのラベルを変更するには、コンテンツエディターで /sitecore/Commerce/Commerce Control Panel/<site> Settings/Commerce Terms/Inventory Statusesへ行ってください。
    
    ![StockStatusInTree.png](https://doc.sitecore.com/api/markdown-image/xp/ja/developers/93/sitecore-experience-commerce/images/StockStatusInTree.png)
    
3.  以下のいずれかのラベルを修正してください:
    

レーベル

デフォルト値

アイテムパス

概要

詳細

詳細

/sitecore/Content/Sitecore/Storefront/<site> Dictionary/Commerce Search Results/Details

レンダリングの下部に表示されるラベルで、商品詳細ページへのリンクです。

バックオーダー可能

バックオーダー可能

/sitecore/Commerce/Commerce Control Panel/Storefront Settings/Commerce Terms/Inventory Statuses/Back orderable

製品バックオーダー可能インジケーターのラベル。

予約注文可能

予約注文可能

/sitecore/Commerce/Commerce コントロールパネル/ストアフロント設定/Commerce Terms/在庫状況/予約可能

商品事前注文インジケーターのラベル。

セービングス・ラベル

消えろ

/sitecore/Content/<tenant>/<site>/<site>  Dictionary/Commerce Search Results/Savings Label

割引値の後に表示されるラベルです。

出発点

出発点

/sitecore/Content/Sitecore/Storefront/<site> Dictionary/Commerce Search Results/Starting from

価格の上に表示されるラベル。これは製品に複数の価格帯があることを示す指標です。

在庫あり

在庫

/sitecore/Commerce/Commerce Control Panel/<site> Settings/Commerce Terms/Inventory Statuses/InStock

在庫表示のラベル。

在庫切れ

在庫切れ

/sitecore/Commerce/Commerce Control Panel/<site> Settings/Commerce Terms/Inventory Statuses/OutOfStock

品切れ表示のラベル。