> For the complete documentation index, see [llms.txt](https://help.byinspiredlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.byinspiredlabs.com/product-page/product-recommendations.md).

# Product recommendations

This section helps shoppers discover related products and return to products they've already viewed.

The Product recommendations section shows **related products** and **recently viewed products** on your product page, so shoppers can keep browsing.

<figure><img src="https://441504973-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv0IRrXJZ4YweBmaaR6L8%2Fuploads%2F1FTYGzbWTVxAPfITg67D%2FScreenshot%202025-09-23%20at%2010.44.23%E2%80%AFAM.png?alt=media&amp;token=deb2a2ad-adcb-44ac-b9a3-f519d3e2a742" alt=""><figcaption></figcaption></figure>

### 1. How it works

* **Related products:** Shopify picks these automatically, based on things like products that are often bought together, similar descriptions and shared collections. Recommendations get better as your store collects more order and product data.
* **Recently viewed products:** the products this shopper has looked at, remembered in their browser. The product they're viewing now isn't included.
* If you add both blocks, their headings work as tabs that shoppers click to switch between lists. A tab is hidden when it has no products, and the whole section hides when there's nothing to show.

{% hint style="info" %}
**Note:** You can also choose related products yourself with the free Shopify **Search & Discovery** app.
{% endhint %}

{% stepper %}
{% step %}
In the Shopify Search & Discovery app, click **Product recommendations**, and then click **Add recommendations**.
{% endstep %}

{% step %}
Select the product you want to customize recommendations for.
{% endstep %}

{% step %}
Select up to 10 **Related products** to recommend. Choose whether to show only your picks or your picks plus automatic recommendations.
{% endstep %}

{% step %}
Click **Save**.
{% endstep %}
{% endstepper %}

### 2. How to add the section

On a product template in the theme editor, click **Add section** and choose **Product recommendations**. Then add a **Related products** block, a **Recently viewed products** block, or both.

### 3. Section settings

<figure><img src="https://441504973-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv0IRrXJZ4YweBmaaR6L8%2Fuploads%2FtcFLA4gDYPzeRdqX13EZ%2FScreenshot%202025-09-23%20at%2010.44.04%E2%80%AFAM.png?alt=media&amp;token=19227497-f2fa-457d-b3b5-168c73c61e6b" alt=""><figcaption></figcaption></figure>

* **Heading alignment:** places the block headings (or tabs) on the Left or in the Center.
* **Products per row on desktop:** from 2 to 4.

**Product card**

* **Image ratio:** Adapt to image, Portrait or Square.

**Mobile layout**

* **Products per row on mobile:** 1 column or 2 columns.

{% hint style="info" %}
**Note:** Padding, section width, section header and color settings work the same in every section. See [Common settings](https://help.byinspiredlabs.com/section/common-settings.md).
{% endhint %}

### 4. Block settings

* **Related products** (one per section):
  * **Heading:** the title or tab label. Default: Related products.
  * **Maximum products to show:** from 2 to 12, in steps of 2.
* **Recently viewed products** (one per section):
  * **Heading:** the title or tab label. Default: Recently viewed.
  * **Maximum products to show:** from 2 to 12, in steps of 2.
