Skip to content

Order Confirmation Thank You Page

Pure CSS order confirmation page with an order number ticket, product photos, a delivery progress tracker and a paid order summary.

Also known as: order confirmation page, thank you page ecommerce, order success page, purchase confirmation screen, checkout thank you

Order Confirmation Thank You Page live demo

Open in new tab

Pure CSS code (HTML, CSS, JS)

An order confirmation thank you page built with pure CSS and a few lines of JavaScript: a check badge and personal greeting, a dashed "ticket" with the order number, the purchased items with product photos, a progress tracker and a paid summary with delivery details. Drop it in after checkout as the success page of a shop, booking flow or subscription signup.

How it works

The root main.oc-page paints a warm cream background with two soft radial shapes and holds .oc-wrap, which limits the width. .oc-hero is a grid with the .oc-check badge, the heading block and the .oc-ticket description list (.oc-order-no and the order date). On narrow screens everything stacks; from 720px the badge sits next to the text and from 960px the ticket moves to the right edge.

Below, .oc-grid places two .oc-card panels side by side on wide screens. .oc-items lists each product as an .oc-item grid row with an .oc-thumb image, name, variant and .oc-price. The .oc-steps list draws the delivery progress: every .oc-step gets a connector line through ::before, .is-done fills the dot and line with the brand color, and .is-current adds a highlighted ring. The .oc-summary aside shows the totals as a dl, the shipping address and arrival window in .oc-meta-grid, and two .oc-btn links. The checkmark draws itself once with a stroke-dashoffset animation. A small script fills .oc-placed with today's date and .oc-arrives with a window from data-oc-arrives.

Customization

  • --oc-brand and --oc-accent on .oc-page: the deep green used for the badge, buttons and finished steps, and the terracotta used for labels, the item count and the current step.
  • --oc-bg, --oc-surface and --oc-line: page, card and divider colors for a cooler or darker theme.
  • data-oc-arrives on .oc-arrives: the delivery window in days, e.g. 2-3 for express.
  • Move .is-current and aria-current="step" to another .oc-step and add .is-done to the earlier ones to show a later order status.
  • grid-template-columns: 1.4fr 1fr on .oc-grid (960px media query): change the ratio between the item list and the summary.
  • Replace the .oc-btn--ghost link with a second .oc-btn--primary, or remove it, to change the call to action.

The product photos come from Unsplash; replace them with your own product images in the same square format.

Use cases

  • Online stores: an order number ticket confirms the purchase right after checkout
  • Shipping updates: a delivery progress tracker shows the order's next steps
  • Receipt pages: product photos and a paid order summary list what was bought
  • Checkout flows: a clear final page with an order number reassures customers after paying

Accessibility

The page uses a single h1, labelled section and aside regions and h2/h3 headings. Totals, the order number and the delivery details use description lists, every product image has a descriptive alt text and fixed dimensions, and the badge SVG is aria-hidden. The progress list has an aria-label, marks the active step with aria-current="step" and adds a visually hidden "completed" note to finished steps. Buttons and links get a clear accent outline on :focus-visible, colors meet WCAG AA contrast, and the checkmark animation is turned off under prefers-reduced-motion.

Usage notes

Fill the order data on the server when rendering the page and delete script.js; the dates it writes are sample values. Without JavaScript the static "Today" and "In 4–6 days" text remains.

Order Confirmation Thank You Page at a glance

Framework
Pure CSS
Code
HTML, CSS, JavaScript
JavaScript
Vanilla JavaScript, no jQuery
Dependencies
None
Layout
Responsive, works on mobile
Category
Checkout
License
Free for personal and commercial use

Questions about this template

Can I use the Order Confirmation Thank You Page 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?

There is nothing to install. 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.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

No dependencies. Pure HTML, CSS and JavaScript.

Order Confirmation Thank You Page – free Pure CSS checkout template
Order Confirmation Thank You Page · free Pure CSS checkout template

More Checkout

Checkout Shipping Method Selection – free Bootstrap 5 checkout template

Checkout Shipping Method Selection

Bootstrap 5 checkout step with shipping method radio cards, live delivery dates, prices and an order summary that updates the total.

One-Page Checkout with Payment Options – free Tailwind CSS checkout template

One-Page Checkout with Payment Options

Tailwind CSS one-page checkout with shipping address, shipping method cards, card / wallet / bank payment tabs, discount code and a live order summary.

Checkout Form with Order Summary – free Bootstrap 5 checkout template

Checkout Form with Order Summary

Bootstrap 5 one-page checkout with contact, shipping, delivery and payment sections, card input masks, validation, promo code and a live order summary.

Order Summary with Coupon – free Tailwind CSS checkout template

Order Summary with Coupon

Tailwind CSS checkout order summary card with a discount code field, live totals, tax and a free shipping progress bar.