# Related products

The related products section displays recommendations based on the first item in the cart. It uses Shopify’s Search & Discovery app to surface similar or alternative products when the cart is not empty, helping customers continue browsing relevant items.

#### Header

Controls whether the section header is displayed above the related product recommendations.

#### Direction

Defines the layout direction on desktop. Set to “Row” for a horizontal layout; mobile always uses a column layout.

#### Heading

The title shown for the section. Leave blank to use the theme default.

#### Subheading

Optional supporting text displayed below the heading. Leave blank to use the theme default.

#### Product limit

Sets the maximum number of related products to display. Default is 10.

#### Show divider

Toggles a visual divider to separate the section from other cart content for improved clarity.

#### Vertical spacing

Controls spacing around the section to adjust its visual hierarchy within the cart page.

#### Vertical spacing (desktop)

Sets the vertical spacing applied on desktop devices. Default is Large.

#### Vertical spacing (mobile)

Sets the vertical spacing applied on mobile devices to ensure consistent spacing across screen sizes.


---

# Agent Instructions: 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:

```
GET https://gatame.gitbook.io/highstreet/templates/cart/related-products.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
