PremiumNewProduct Sections

Recently Viewed

Carousel of products the visitor recently looked at, localStorage-driven.

#pdp#recently-viewed#personalization#localStorage#rvp-replacement

Live preview

See it in action.

Fully interactive, drag, click, scroll inside the frame, toggle to mobile.

About this section

Tracks the visitor's product views in localStorage on every PDP load, then renders a horizontal scrollable carousel of those items. Auto-hides when the visitor doesn't have enough history. Excludes the product they're currently viewing. No third-party SDK, no cookies, no GDPR overhead.

Install in 90 seconds

  1. 01

    Create /sections/modblo-recently-viewed.liquid.

  2. 02

    Paste the section code and save.

  3. 03

    Add the section to product.json AND any template where you want the carousel to appear (collection.json, cart.json, etc.).

  4. 04

    The tracker auto-runs on product pages, so no extra wiring needed.

  5. 05

    (Optional) Adjust max items shown and minimum visibility threshold in the theme editor.

The code

This is the file you'll paste into your theme.

Unlock the section code

Recently Viewed is a premium section. Get the full Liquid + scoped CSS paste-ready.

One-time purchase ยท Lifetime updates ยท You own the code

What you can customize

Every setting below shows up in the Shopify theme editor. Change them without touching code.

SettingTypeDefault

Heading

heading

TextRecently viewed

Clear button label

clear_label

TextClear

Max items shown

limit

Slider8

Hide section unless N+ items

min_items

Slider2

Background

bg

Color picker#ffffff

Foreground

fg

Color picker#0b0b0c

Accent

accent

Color picker#6366f1

SEO and accessibility notes

  • Section starts hidden and reveals via JS only when there's enough history, no flash of empty section.
  • Uses native horizontal scroll with scroll-snap, no carousel library.
  • Real <a> elements per card, all crawlable, all keyboard navigable.
  • Tracks state client-side only (localStorage), no server roundtrip.
Recently Viewed. Shopify section | modblo