Skip to content

Wishlist Screen with Price Drop Alerts

Mobile wishlist screen with price drop badges, a price alert switch per saved item, filter chips, move to bag and remove actions with an undo toast.

Also known as: wishlist app ui, saved items screen, price drop alert app, favorites page mobile, ecommerce wishlist page html

Wishlist Screen with Price Drop Alerts live demo

Open in new tab

Pure CSS code (HTML, CSS, JS)

A wishlist screen for shopping apps, built with pure CSS and vanilla JavaScript: saved items show price drop badges, each product has its own price alert switch, and shoppers can move items to the bag or remove them with an undo toast. It is an HTML mobile template for mobile sites and PWAs, and it can be packaged as a native app with Capacitor. Use it as the saved items page, favorites screen or wishlist tab of a home, lifestyle or electronics store.

How it works

The root .wl-app is a phone-width column (max 430px, centred on wider screens) with a sticky top bar and a sticky .wl-tabs bottom tab bar. Each saved product is an li.wl-item with data-wl-price; items with a lower price also carry data-wl-was (the old price) and data-wl-days (when the price fell). From these values update() fills the .wl-hero summary (price drops and total saving) and all counters.

The .wl-chip buttons use aria-pressed and hide rows that do not match. Each row has an input.wl-switch for the price alert, a .wl-remove and a .wl-move button. Removing or moving a row shows the .wl-toast with Undo, which restores the item in place; Move to bag also raises the Bag tab counter. The toast hides after six seconds or on Escape, and [data-wl-empty] covers empty filters.

Dates are computed from today ("Price dropped today", "Saved Nov 14") without a year, so the screen never goes stale.

Customization

  • --wl-accent, --wl-accent-text and --wl-accent-soft on .wl-app: the coral of the switches, discount badges, active tab and hero icon.
  • --wl-ink on .wl-app: the near-black of the hero card, active chip, Move to bag button and toast.
  • --wl-radius on .wl-app: the 14px corner radius of photos, cards and the toast.
  • data-wl-was and data-wl-days on an li.wl-item: add them to mark a price drop, remove them for a regular saved item (then data-wl-saved sets the saved date).
  • data-wl-bag on .wl-app: the starting number on the Bag tab badge.
  • TOAST_MS in script.js: how long the undo toast stays visible.

Use cases

  • Home and furniture stores: shoppers wait for a sofa or chair to go on sale.
  • Electronics shops: price alerts on gadgets with frequent discounts.
  • Fashion and lifestyle PWAs: a Saved tab next to Home, Search and Bag.
  • Marketplace apps built with Capacitor: one place to compare saved products before checkout.

Accessibility

The chips sit in a labelled group with aria-pressed. Alert switches are real checkboxes with role="switch" and a visible label. Remove buttons name the product, and after a removal focus moves to the next row or to Undo. A polite live region announces filters, alert changes and removals. Controls are at least 44px with visible focus, and the switch animation respects prefers-reduced-motion.

Usage notes

Product photos come from Unsplash; replace them with your own images. Prices are sample data. Call your cart and alert APIs with fetch() in the click and change handlers.

Wishlist Screen with Price Drop Alerts at a glance

Framework
Pure CSS
Code
HTML, CSS, JavaScript
JavaScript
Vanilla JavaScript, no jQuery
Dependencies
fonts.googleapis.com, Bootstrap Icons
Layout
Mobile-first app screen, centred on wider screens
Category
Mobile Shop & Checkout
License
Free for personal and commercial use

Questions about this template

Can I use the Wishlist Screen with Price Drop Alerts code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

Load fonts.googleapis.com and Bootstrap Icons from a CDN (the links are under Requirements). Paste the HTML where the component should appear, add the CSS to your stylesheet and load the JavaScript before the closing </body> tag. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. The script is plain vanilla JavaScript, so it works without jQuery, React or Vue. You can still use the markup inside those frameworks.

Can I turn this screen into an iOS or Android app?

Yes. It is plain HTML, CSS and JavaScript, so it works in a mobile website or progressive web app as it is. To ship it as a store app, put it in the web folder of a Capacitor or Cordova project and build it for iOS and Android; replace the sample data with calls to your own API.

How does it look on a desktop screen?

The screen is designed for phones. On wider screens it stays at phone width in the middle of the page, so it still looks like an app. The live demo opens at mobile width; use the Tablet and Desktop buttons to check other sizes.

Requirements

Add these to your page (already included in the download):

  • <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap">
  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
Wishlist Screen with Price Drop Alerts – free Pure CSS mobile shop & checkout template
Wishlist Screen with Price Drop Alerts · free Pure CSS mobile shop & checkout template

More Mobile Shop & Checkout

Sneaker Store Home with Filters Sheet – free Tailwind CSS mobile shop & checkout template

Sneaker Store Home with Filters Sheet

Sneaker store app home screen with brand chips, search, product cards and a filter bottom sheet with price range, sizes and sort that applies to the product grid.

Mobile Shopping Bag Screen – free Pure CSS mobile shop & checkout template

Mobile Shopping Bag Screen

Mobile shopping bag screen with quantity steppers, remove and undo, promo code validation, free delivery progress, order summary and a sticky checkout bar.

Coffee Shop Order Customization Screen – free Bootstrap 5 mobile shop & checkout template

Coffee Shop Order Customization Screen

Coffee shop app order screen where customers customize a drink: size cards, milk and syrup options, an extra shot stepper and a live price on the add to order button.

Fashion Store Product Detail Screen – free Tailwind CSS mobile shop & checkout template

Fashion Store Product Detail Screen

Fashion store product detail screen with swipeable photos, colour swatches, size chips with a size guide bottom sheet, details accordion and a sticky Add to bag bar.