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

# Product recommendations

Algorithmic product suggestions from Shopify's Recommendations API. Available only on product templates.

**Product recommendations** shows products Shopify suggests for the product the shopper is viewing. The theme does not pick the list — Shopify's Recommendations API does, using order and product data that improves over time.

{% hint style="info" %}
**Theme Editor → Products → (any product template) → Add section → Product recommendations**
{% endhint %}

{% hint style="warning" %}
**Product templates only.** The section is limited to the product template in its schema. It appears in the **Products** group in **Add section**, but **only while you are editing a product template**. You will not find it on the home page, a collection, or a page template — that is expected, not a missing install.
{% endhint %}

{% hint style="warning" %}
Even on a product page the section can look blank until Shopify has enough data and the request has finished. New stores and quiet products often return an empty list. That is normal.
{% endhint %}

***

### How it works

1. The section requests recommendations for the current product, with a limit of **10**.
2. Shopify returns products only after the request has been performed and the list is not empty.
3. Until then the section renders nothing on the storefront (the editor may still show the section shell).

Complementary products inside **Product overview** are a different feature: those come from the [Shopify Search & Discovery](https://apps.shopify.com/search-and-discovery) app. **Product recommendations** is algorithmic and does not use that app's complementary set. [Learn more about Shopify product recommendations](https://shopify.dev/docs/themes/product-merchandising/recommendations).

***

### How to add

{% stepper %}
{% step %}

#### Open a product template

In the theme editor open **Products → Default product** (or another product template). The demos already include this section under the buy area with the heading **You may also like**.
{% endstep %}

{% step %}

#### Or add it yourself

Still on a **product** template, press **Add section**, choose **Product recommendations** from the Products group, and place it where you want the suggestions.
{% endstep %}

{% step %}

#### Set the heading

**Heading** defaults to **You may also like**. Wrap a word in `{curly brackets}` to use the Secondary heading style from [Theme settings → Typography](https://staylime.com/docs/avante-themes/theme-settings/typography.md).
{% endstep %}
{% endstepper %}

***

### Layout

| Setting               | Default       | Notes                                                                      |
| --------------------- | ------------- | -------------------------------------------------------------------------- |
| **Desktop grid type** | Four in a row | Three, four or five in a row; or a side heading with two or three products |
| **Grid gap**          | Default       | Switch to **Custom** for separate column gaps on desktop and mobile        |
| **Mobile layout**     | Two columns   | Or one column                                                              |
| **Mobile navigation** | Arrows        | Or **Scrollbar** when there are more products than fit                     |

Heading size, heading tag, and solid or gradient heading color follow the usual section controls.

***

### Product cards

**Image ratio** defaults to **Square (1:1)** and **Focal point** to center. On hover the card can show a second image or a slider — the same pattern as every other product grid in the theme.

Card options match the rest of the theme's product cards: vendor, rating, short description, color pills, quick view, maximum product name length, price position, and Add to cart on desktop or mobile. Store-wide card behaviour still comes from [Theme settings](https://staylime.com/docs/avante-themes/theme-settings/overview.md).

***

### Good to know

* **Looking for it on the home page?** Switch the editor to a product template — the section is hidden everywhere else by design.
* **Not the same as Cart recommendations** — those suggestions live in the cart and the cart drawer.
* **Not Complementary products** — that block inside Product overview is curated in Search & Discovery.
* **The limit is fixed at 10** in the theme's request. Grid settings change how many show per row, not how many Shopify returns.

***

### Related

* [Products overview](https://staylime.com/docs/avante-themes/sections/products.md)
* [Default product](https://staylime.com/docs/avante-themes/templates/default-product.md) — the template lists the section; the details stay on this page
* [Theme settings → Cart drawer](https://staylime.com/docs/avante-themes/theme-settings/cart-drawer.md) — recommendations inside the drawer


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://staylime.com/docs/avante-themes/sections/products/product-recommendations.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
