Skip to content
HTML Templates For Developers

Basket — Shopping Cart Page

A focused shopping cart page with quantity steppers, remove with undo, save for later, promo codes, shipping choice and a live order summary.

FreeVanilla HTMLOne-page
Basket — Shopping Cart Page — template preview

Live preview

This is the actual template running in a sandbox, shown at 1280px wide.

Description

Basket is a single-page cart built for one job: letting a shopper review what they are about to buy and feel confident moving on. It uses a calm slate and blue palette, Inter throughout and generous spacing, with a sticky summary beside the item list on wide screens.

Every control works on the bundled demo basket. Steppers respect per-item stock, Remove and Save for later can both be undone from a toast, saved items move back to the basket in one click, and the order summary recalculates subtotal, discount, shipping, tax and total after every change. A free-shipping progress bar tracks the threshold and an empty-basket state appears when the last item is removed.

Promo codes, shipping prices, tax rate and currency live in a short configuration block at the top of the script, so adapting the page to a real store means swapping the demo data for your own.

Key features

  • Quantity steppers with stock limits and a typed-quantity field
  • Remove, save for later and delete with an Undo toast
  • Saved-for-later list with move back to basket
  • Promo codes with percent, fixed-amount and free-shipping rules
  • Shipping method selector with free-shipping progress bar
  • Order summary recalculating subtotal, discount, shipping, tax and total
  • Empty-basket state with a refill button for demos
  • Original SVG product thumbnails
  • Prices formatted with Intl.NumberFormat from one currency setting
  • Keyboard friendly with focus management after each action

Front-end template: what is demonstration only

  • The basket holds demo data in memory only and resets on reload.
  • The promo code form validates against codes in the script; the Continue to checkout button only shows a message and takes no payment.

What is included

Pages and sections

  • Header with checkout steps
  • Free shipping progress bar
  • Cart items with steppers
  • Saved for later list
  • Promo code with demo codes
  • Shipping method selector
  • Order summary
  • Empty basket state

Framework

Plain HTML5, CSS3 and JavaScript. No framework, no build step — open index.html and edit.

Bundled open-source components

  • Inter typeface (OFL-1.1)
  • Lucide icons (inlined SVG) (ISC)

Everything is inside the download with its licence. Nothing loads from a CDN.

Supported browsers

Chrome, Edge, Firefox, Safari, Opera

Current versions. Checked in Chromium at desktop, tablet and phone widths.

Files in the download (16) · 122 KB ZIP
  • LICENSE.txt1.3 KB
  • README.md2.5 KB
  • assets/css/style.css15 KB
  • assets/fonts/inter-LICENSE.txt4.4 KB
  • assets/fonts/inter-latin-wght-italic.woff251 KB
  • assets/fonts/inter-latin-wght-normal.woff247 KB
  • assets/images/daypack.svg652 B
  • assets/images/desklamp.svg557 B
  • assets/images/favicon.svg342 B
  • assets/images/notebooks.svg660 B
  • assets/images/pourover.svg696 B
  • assets/images/sweater.svg580 B
  • assets/js/main.js15 KB
  • documentation/index.html11 KB
  • documentation/licenses/lucide-LICENSE.txt3.1 KB
  • index.html7.6 KB

Includes a README, a documentation page with customisation notes, and the licence text.

Read the documentation

Changelog

  1. Version 1.0.0 Nov 23, 2026Current

    • Initial release.

Licence

Free Template Licence. Use it in unlimited personal and commercial projects, modify it freely and use it in client work. You may not redistribute or resell the template itself. Attribution is appreciated, not required.

Read the full licence terms

Customer reviews

No reviews yet. Reviews come only from customers who have downloaded or bought this template.

Write a review