Liane docs › Sections › Product page
Recently viewed
Add it to any page with Add section. In a new store it’s on the product page.
Recently viewed shows the products a visitor looked at last, newest first, pinned in a row like pictures in a sketchbook: a pencil-drawn pin with Liane, photo corners with Calame, washi tape with Marelle. It leaves out the product on screen, and on phones the row scrolls sideways.
The list is kept in the visitor’s own browser, up to 12 products, with no cookie. On a first visit there is nothing to show, so the section stays hidden. Each card is loaded fresh, with the current price and stock, and a product you have deleted drops out. In the theme editor, placeholder cards show where the row goes.
Tips
- A product joins the list when a visitor opens its product page. You can add the section to other pages too, such as the home page.
- The same row also appears by itself, as “Pick up where you left off”, on the empty cart, the 404 page and a search with no results.
Settings
| Setting | What it does | Default |
|---|---|---|
| The products a visitor looked at last, kept in their own browser. The section stays hidden until they have looked at one, and leaves out the product on screen. | ||
| Text above heading | ||
| Heading | “You looked at” | |
| Maximum products to show | 4 | |
| Columns on desktop | 4 | |
| Color scheme | Scheme 1 | |
| Heading position | Alternate with the line: the side follows the section’s place on the page and changes from one section to the next. | Alternate with the line |
| Line | Pass beside the content: the line runs down the section’s side and draws nothing around its content. Pause here: the line goes behind the section and comes out below it. | Draw around the content |