> 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/cart-recommendations.md). Agents can also search and read this documentation through its [MCP server](https://staylime.com/docs/~gitbook/mcp).

# Cart recommendations

Shopify's product suggestions on the cart page, based on what the shopper has already added.

The cart is the last place where adding one more item costs the shopper nothing — no new page, no new decision about the store. **Cart recommendations** uses that moment: a row of products Shopify suggests for what is already in the cart, placed on the cart page like any other section.

The suggestions come from Shopify's Recommendations API, the same engine behind [Product recommendations](https://staylime.com/docs/avante-themes/sections/products/product-recommendations.md). You do not curate the list.

{% hint style="info" %}
**Theme Editor → Cart → Add section → Cart recommendations**
{% endhint %}

***

### How to add

{% stepper %}
{% step %}

#### Open the cart template

In the theme editor use the page selector to open **Cart**.
{% endstep %}

{% step %}

#### Add the section

Press **Add section**, choose **Cart recommendations** from the Products group, and drop it under the cart items.
{% endstep %}

{% step %}

#### Set the heading and the grid

**Heading** defaults to **Cart recommendations** — most stores change it to something softer. Then pick the desktop and mobile layouts.
{% endstep %}
{% endstepper %}

***

### Good to know

* **The suggestions are anchored on one product — the first item in the cart.** Not the whole basket, and not the most expensive item. If that first item is gift wrapping, it is skipped and the next one is used.
* **The row refreshes when the cart changes.** Add or remove something that changes which product is first, and the section reloads with new suggestions.
* **Your gift wrapping product never appears** among the recommendations.
* **An empty cart means no section** — nothing renders, not even the heading.
* **The list can be empty on a quiet store.** Shopify's algorithm needs order and product data; new stores and rarely-bought products often return nothing. That is Shopify, not the theme.
* **Up to ten products** are requested. The grid settings change how many fit per row, not how many Shopify returns.
* **The cart drawer has its own recommendations**, switched on in [Theme settings → Cart drawer](https://staylime.com/docs/avante-themes/theme-settings/cart-drawer.md). This section is for the cart page.
* **Not the same as Complementary products**, which you curate yourself in the [Shopify Search & Discovery](https://apps.shopify.com/search-and-discovery) app and which appear on the product page.

***

### Customization ideas

* **Directly under the cart items**, above the checkout button, so it is seen before the decision to check out.
* **A heading that frames it as help**, not as a sale — "Goes well with this", "Complete the set", "Often bought together".
* **A narrow row on mobile.** One or two columns with a scrollbar keeps the checkout button within reach.

***

### Best practices

* Keep it below the checkout button on mobile if your cart is long — anything that pushes checkout off screen costs more than the extra item earns.
* Give it a few weeks on a new store before judging the quality of the suggestions.
* If you want control over what appears, curate complementary products in Search & Discovery instead; this section cannot be curated.

***

### Related

* [Products overview](https://staylime.com/docs/avante-themes/sections/products.md)
* [Product recommendations](https://staylime.com/docs/avante-themes/sections/products/product-recommendations.md)
* [Cart page](https://staylime.com/docs/avante-themes/templates/cart-page.md)
* [Theme settings → Cart drawer](https://staylime.com/docs/avante-themes/theme-settings/cart-drawer.md)


---

# 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/cart-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.
