# Recently viewed products

{% hint style="danger" %} <mark style="color:red;">Theme retirement</mark> | Context is no longer available on the Shopify theme store. **Theme support and updates for current users will end after May 18, 2024**. [Learn more here](https://help.fluorescent.co/context/readme/theme-retirement).
{% endhint %}

In the Product template, the **Product recommendations** section displays similar products to customers on product pages. Product recommendations let customers discover new products and can increase sales.

> Recommendations are automatically generated based on products in related collections, products that are commonly purchased together, or similar product descriptions. Recommendations improve over time with more customer and product information. You can **customize product recommendations** by downloading Shopify's [Search & Discovery app](https://apps.shopify.com/search-and-discovery).

## **Set up section**

Follow the steps to set up the Recently viewed products section. You can customize the section headings, the number of recommend products, and the section style.

<details>

<summary><mark style="color:blue;">STEPS</mark></summary>

In your theme editor (**Customize**):

1. Click (**+) Add section** and select **Recently viewed products** from the list.
2. Click the **Recently viewed products** section to open the settings.
3. Change the **Heading** text and alignment.

   > The following image outlines the layout differences between *Left*, *Center*, and *Right* aligned:

   ![](https://3096289102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvbp0IBkqpivnJ0UBSwsh%2Fuploads%2Fgit-blob-81dae090fd69e3d22d2c4b6426a675093d53c85f%2Falignment-desktop.jpeg?alt=media)
4. Choose the amount of **Rows** and **Products per row**

   > Using the *Rows* and *Products per row* sliders, you can create very different looking recently viewed products sections.

   ![](https://3096289102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvbp0IBkqpivnJ0UBSwsh%2Fuploads%2Fgit-blob-c43dc1e4ab29259f2df2d5cde8cdd8251aac541f%2Fproduct-page-desktop-recently-viewed-left-two-rows.jpeg?alt=media)
5. To make product images a uniform shape and size, select the **Image aspect ratio** to crop your images to **Square**, **Landscape**, or **Portrait**.

   > The default **Natural** setting will display the original orientation of your image.

   ![](https://3096289102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvbp0IBkqpivnJ0UBSwsh%2Fuploads%2Fgit-blob-18e593ad0edf007db92b2db4471c455059562ccf%2Faspect-ratio.jpeg?alt=media)
6. (*Optional*.) Choose to enable the **Outline section** style for an alternate look.

   > This option removes the section background and adds a border around the section, which uses your store's border color setting.

   ![](https://3096289102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvbp0IBkqpivnJ0UBSwsh%2Fuploads%2Fgit-blob-46b5df5c6acc2bcfd473f761695cf1b32f25c168%2Fsection-style-outline.jpeg?alt=media)
7. Click **Save**.

</details>

## Settings reference

Click the **Recently viewed products** section to find the following settings.

| Setting            | Description                                                                                                                                                                                                        |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Heading            | Add heading text to show a section title.                                                                                                                                                                          |
| Columns per row    | Change the amount of products displayed per row. You can choose between 2 and 4 columns. On mobile devices, this section will become click-through carousel with one column.                                       |
| Image aspect ratio | Use this setting to automatically crop images to a specific aspect ratio. Choose from Square (1:1), Landscape (3:2), or Portrait (2:3) aspect ratios. Choose Natural if you do not want your images to be cropped. |

<br>

***

> **Related links**
>
> [Product template](https://help.fluorescent.co/context/product-pages/product-template)\
> [Complementary products](https://help.fluorescent.co/context/product-pages/product-page-sections/complementary-products)\
> [Recommended products](https://help.fluorescent.co/context/product-pages/product-page-sections/recommended-products)
