← Back to Snippets
Recently Viewed Products
Carousel of products the customer has previously viewed. Uses localStorage, no app required. Fetches live product data so prices and images are always current.
snippets/plynthr-recently-viewed.liquid
Purchase — $5
{% comment %}
Plynthr — Recently Viewed Products (Premium)
This is a preview of the snippet. Purchase to receive:
✓ Full source code (.liquid file)
✓ Installation guide (README)
✓ Support via plynthr.com/contact
FEATURES:
- Tracks product views via localStorage (no app, no cookies)
- Fetches live product data (prices always current)
- Horizontal scroll carousel with navigation
- Loading skeleton animation
- Scroll snap on mobile for swipe gesture
- Auto-hides when no history exists
- Excludes current product
- Configurable max products, title, vendor display
- CSS custom properties for theming
{% endcomment %}
<!-- Full code available after purchase -->
<!-- Includes: 200+ lines of Liquid, CSS, and JavaScript -->
<!-- Fully documented with installation guide -->
Installation
- Purchase the snippet from Gumroad — you'll receive a .zip with the
.liquidfile andREADME.md - In your Shopify admin, go to Online Store → Themes → Edit Code
- Under Snippets, click "Add a new snippet"
- Name it
recently-viewed-products - Paste the code from the downloaded file and save
- Add the render tag at the bottom of your product template, or on your homepage
Customization
- Configurable max products displayed (default: 10)
- Section title text
- Show/hide vendor name
- 15+ CSS custom properties for card sizing, colors, spacing
- Mobile card width separate from desktop
Want your whole store dialled in?
Snippets fix one thing at a time. Want your whole Shopify store audited and tuned — speed, SEO, conversion? Get a free audit in about 60 seconds, or work with me directly.
Purchase — $5 Run your free store audit →
✓ Speed, SEO & mobile✓ Results in ~60s✓ No signup
FAQ
What do I get when I purchase?
A .zip file containing the full
.liquid snippet (200+ lines) and a detailed README.md with installation steps and customisation options.Does this need an app?
No. It uses the browser's localStorage to track views and Shopify's product JSON endpoint to fetch data. Zero external dependencies.
Is the data private?
Yes. All data is stored locally in the customer's browser. Nothing is sent to any server. Clearing browser data removes the history.