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

# Slider recommendations

## Block limitations

This is a private block and can only be used within specific parent blocks. It is designed to work exclusively within the [Slider](/slab/content/blocks/layout/slider.md) block.

## Overview

A dynamic product recommendations block that displays recommended products in a horizontal slider layout with scroll snap behavior. This block uses Alpine.js to asynchronously load product recommendations from Shopify's recommendation engine based on a source product. Products are displayed as horizontally scrollable cards with configurable widths and support for filtering by tags, cart status, and responsive visibility options.

## Common use cases

* Set a source product in block settings before adding to ensure relevant recommendations
* Adjust item count (default: 5) based on your slider layout and desired scroll behavior
* Configure width\_mobile (default: 80vw) and width\_desktop (default: 40vw) to control how many items are visible at once
* Use tag filtering when you want to show only products from specific collections or categories
* Enable "show products in cart" for cross-sell scenarios, disable for upsell to avoid redundancy
* The block works best when placed on product pages, cart pages, or thank you pages
* Best suited for contexts where horizontal scrolling is preferred over a static grid layout

## Block settings

### General

| Setting                | Description                           | Options                   |
| ---------------------- | ------------------------------------- | ------------------------- |
| Show advanced settings | Reveals filter by tag, and visibility | Checkbox (default: false) |

### Content

| Setting               | Description                                           | Options                                                                             |
| --------------------- | ----------------------------------------------------- | ----------------------------------------------------------------------------------- |
| Intent                | Recommendation type                                   | <p>• Related (default)<br>• Complementary</p>                                       |
| Product               | Source product for recommendations                    | Product picker                                                                      |
| Item count            | Number of recommendations to display                  | Number (default: 5)                                                                 |
| Filter by tag         | Filter recommendations by a specific tag              | <p>Text input<br><br>Visible when <strong>Show advanced settings</strong> is on</p> |
| Show products in cart | Displays products even if they're already in the cart | Checkbox (default: true)                                                            |

### Spacing

| Setting       | Description                          | Options                 |
| ------------- | ------------------------------------ | ----------------------- |
| Width mobile  | Width of each slider item on mobile  | 5 - 100 % (default: 80) |
| Width desktop | Width of each slider item on desktop | 5 - 100 % (default: 20) |

### Display

| Setting    | Description                        | Options                                                                                                                            |
| ---------- | ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| Visibility | Controls when the block is visible | <p>• All (default)<br>• Mobile only<br>• Desktop only</p><p><br><br>Visible when <strong>Show advanced settings</strong> is on</p> |


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.brickspacelab.com/slab/content/blocks/all-pagination/products/slider-product-recommendations.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
