> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kameleoon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 商品レコメンデーションブロックを作成する

> ウィジェットに商品レコメンデーションブロックを追加、構成、スタイル付けして、パーソナライズされた商品提案を表示します。

本記事では、次の方法を学びます。

* レコメンデーションブロックの追加
* レコメンデーションブロックの編集
* レコメンデーションブロックの配置

## レコメンデーションブロックを追加する

レコメンデーションブロックを追加するには:

1. 左サイドバーで **Add element** をクリックします。
2. リストで **Product Recommendation** > **Product Recommendation** をクリックします。
3. **Settings** > **Block** をクリックして、ウィジェットに追加したいブロックを選択します。

![商品レコメンデーションブロックのプレビュー](https://storage.googleapis.com/kameleoon-storage-documentation/user-manual/images/assets/widgets/create-a-widget-with-the-widget-studio/create-a-product-recommendation-block/product-recommendation-block.png)

**Settings** では、レコメンデーションブロックを表示するために必要な最小商品数を設定できます。また、ウィジェットを表示する商品ページから商品 ID を取得する方法も指定できます。レコメンデーションブロックでアルゴリズム「Similar products」または「Products usually purchased with this product」を使用している場合、この設定は必須です。

## レコメンデーションブロックを編集する

ブロックのサイズと位置を編集するには、**Design** をクリックします。CSS も編集できます。拡大アイコンをクリックしてカスタムコードセクションを開きます。

**Block** をクリックして、背景色、ボーダープロパティ、シャドウ効果などの追加設定をカスタマイズします。ブロックのホバー状態も作成できます。
