Recommendations
You can add a Reccomendations block to your cart page that displays a list of related products that are automatically-generated or manually set by you using the Shopify Search & Discovery app. Learn how to customize related products with the app.
Displaying related products to customers makes it easier for them to discover new products, and can help to increase online store sales.
Related products are based on products that are commonly purchased together, have a similar product description, or products in related collections. Related products become more accurate over time as more order and product information becomes available.
How Related Products Appear in the Cart
- Single Product Added
- When a product is added to the cart, its related products will automatically appear below it.
- Example: You add Product A → Related products for A show up.
- Multiple Products Added
- Only the related products of the first-added product will be displayed.
- Related products of any other products added afterward will not appear.
- Example:
- Add Product A → Related products of A appear.
- Add Product B → Related products of B do not appear in the cart.
- Products Without Related Products
- If the first-added product has no related products, nothing appears.
- Users may manually add other products, but only the related products of the first product matter.
- Automatic vs. Manual Related Products
- If your system is set to automatically generate related products for all items, then every product could theoretically have related products.
- But due to the cart logic, only the first product’s related items will be displayed, even if later products have automatically generated related products.
| Setting | Description |
|---|---|
| Heading |
Enter a heading that describes the collection list. In the top menu of the field, you can find options to customize the heading. Furthermore, you can click the dynamic source button to insert a dynamic source as the title of the section. |
| Heading size |
Choose the size of the section heading: • Small • Medium • Large |
| Enable custom color scheme | Overrides the block's regular color scheme with a separate custom one for the recommendation cards. Disabled by default. |
| Custom color scheme | The color scheme applied to the recommendation cards when Enable custom color scheme is turned on. Only shown when that setting is enabled. |
| Image ratio |
The "Image ratio" setting allows you to control how images are displayed on your website based on their width-to-height ratio. You have several options to choose from: • Adapt to image: This option uses the aspect ratio of the images, ensuring that they are not cropped and displayed in their original dimensions. • Portrait: This option crops the images to use a 2:3 ratio, creating a taller appearance with a width that is 2/3 of its height. • Square: This option crops the images to use a 1:1 ratio, creating a square-shaped display with equal width and height. • Landscape: The image is wider than it is tall. It is typically represented as a ratio of width to height. |
| Show gallery preview | Enable this option to display a preview of the product's image gallery on hover. This feature works only if the product has more than one image, and will display a maximum of three images. |
| Show type |
Click "Show type" to display the product type on product cards in this section. Note: The product type must first be added on the product page in the admin. |
| Show vendor |
Click "Show vendor" to display the product vendor on product cards in this section. Note: The product vendor must first be added on the product page in the admin. |
| Enable quick add button | Adds a quick-add button to each recommendation card, letting customers add the item to cart without leaving the cart page. Enabled by default. |
| Show swatch | Enable the toggle to show color swatches on product in the section. |
| Swatch variant name |
If the variant option name on the product page differs from the default "Color", enter the custom name here to ensure swatches are displayed correctly on product cards. Only shown when Show swatch is enabled. |
| Product description | Pulls a short custom description onto each product card from a metafield. Enter the name of a "Single line text" metafield created under the product's custom namespace (e.g. "Product description") — the theme converts it to a handle and looks up product.metafields.custom.<handle> . Requires creating that metafield definition first. Leave blank to hide this line. |
| Product info | Same mechanism as Product description, but for a second, separate line of custom info (e.g. a shipping note, material, or care instruction). Enter the name of another "Single line text" metafield under the custom namespace (e.g. "Product info"). Leave blank to hide this line. |
Note: To add color swatches, see the article Creating and editing product and locate the “Add Color Swatches” section.