1. Commerce Search Results rendering

Modify Commerce Search Results rendering labels

Version:

You can modify the Commerce Search Results rendering labels for stock status, savings, and sale period. The following figure shows the Commerce Search Results rendering on a live storefront. You can further customize the behavior of the Commerce Search Results rendering by modifying the template.

Search results showing stock status labels
Note

To calculate the product price, the rendering identifies the lowest price across its variants and displays the formatted SellPrice. If there are multiple price ranges, the rendering displays a Starting from label.

The following table describes the stock statuses that are possible:

Stock statusDescription
In StockA product is in stock when the IsAvailable flag is true and the Count parameter is greater than zero or the IsAlwaysAvailable flag is true.
Out of StockA product is out of stock if its status is not In Stock, Pre*-orderable* or Back-orderable.
Back orderableA product is back orderable if its policy is Sitecore*.Commerce.Plugin.Backorderable.AvailabilityBackOrderedPolicy* and its QuantityOrdered has not exceeded its BackorderLimit.
Pre-orderableA product is pre-orderable if its policy is Sitecore*.Commerce.Plugin.Preorderable.AvailabilityPreOrderedPolicy* and its QuantityOrdered has not exceed its PreOrderLimit.

To modify labels:

  1. To modify the labels for Details, Savings, and Starting From, in the Content Editor, go to /sitecore/Content/<tenant>/<site>/<site> Dictionary/Commerce Search Results.

    DetailLabelsInTree.png
  2. To modify the labels for stock status, in the Content Editor, go to /sitecore/Commerce/Commerce Control Panel/<site> Settings/Commerce Terms/Inventory Statuses.

    StockStatusInTree.png
  3. Modify any of the following labels:

LabelsDefault valueItem pathDescription
DetailsDetails/sitecore/Content/Sitecore/Storefront/<site> Dictionary/Commerce Search Results/DetailsThe label that displays at the bottom of the rendering that links to the product details page.
Back-orderableBack-Orderable/sitecore/Commerce/Commerce Control Panel/Storefront Settings/Commerce Terms/Inventory Statuses/Back orderableThe label for the product back-orderable indicator.
Pre-orderablePre-Orderable/sitecore/Commerce/Commerce Control Panel/Storefront Settings/Commerce Terms/Inventory Statuses/ Pre orderableThe label for the product pre-orderable indicator.
Savings LabelOff/sitecore/Content/<tenant>/<site>/<site>  Dictionary/Commerce Search Results/Savings LabelThe label that displays after the discount value.
Starting fromStarting from/sitecore/Content/Sitecore/Storefront/<site> Dictionary/Commerce Search Results/Starting fromThe label that appears above the price value. It is an indicator that the product has more than one price range.
In stockIn-Stock/sitecore/Commerce/Commerce Control Panel/<site> Settings/Commerce Terms/Inventory Statuses/InStockThe label for the product in stock indicator.
Out of StockOut-of-stock/sitecore/Commerce/Commerce Control Panel/<site> Settings/Commerce Terms/Inventory Statuses/OutOfStockThe label for the product out of stock indicator.
If you have suggestions for improving this article, let us know!