# Related products

The related products section displays recommendations powered by Shopify’s Search & Discovery app. It automatically surfaces products similar to the current item to help customers explore alternatives and continue shopping.

#### Header

Controls whether the section header is displayed above the related products.

#### Direction

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

#### Heading

The title displayed 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 surrounding content for improved readability.

#### Vertical spacing

Controls spacing around the section to adjust its layout within the product page.

#### Vertical spacing (desktop)

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

#### Vertical spacing (mobile)

Sets the amount of vertical spacing applied on mobile devices for improved mobile layout consistency.


---

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