A lightweight E-commerce Checkout Template built as a single self-contained HTML file.
The template is currently themed for an Automobile Service Station, but it can easily be adapted for any E-commerce application such as spare parts, accessories, digital products, groceries, or services.
- Hash-based routing for smooth navigation
#home#product/1#cart#checkout
- Cart is stored in localStorage
- Storage key:
Pit_Lane - Cart remains intact even after page refresh.
Products are defined in a simple JavaScript array.
Each product contains:
idnamepricecategorydescriptionimages(array of image URLs)stock
Any changes to the product list automatically update the entire site.
- Category bar auto-generates from product data
- Allows quick filtering of products.
- Main product image
- Thumbnail preview images
- Click thumbnails to change view.
- Automatically suggests products from the same category.
Quantity selectors available in: - Product page - Cart page
Product cards display:
In Cart ✓
This stays perfectly synced with the cart state.
Orders are submitted through Formspree.
After submission: - A success overlay is shown - The page automatically redirects after 3 seconds
Before going live, edit two things at the top of the HTML file.
Find the following in the CONFIG block:
formspreeUrl: "https://formspree.io/f/YOUR_FORM_ID"Replace it with your actual Formspree endpoint.
Example:
formspreeUrl: "https://formspree.io/f/xyknponj"The PRODUCTS array sits directly below the CONFIG.
Example:
{
id: 1,
name: "Premium Engine Oil",
price: 1200,
category: "Fluids",
description: "High performance synthetic engine oil",
images: ["image1.jpg","image2.jpg"],
stock: 25
}You can:
- Add products
- Remove products
- Update prices
- Change categories
The site will automatically update everywhere.
The template uses a modern automotive aesthetic.
Design highlights:
- Warm earthy color palette
- Elegant Playfair Display headings
- Clean DM Sans body text
- Smooth UI interactions
- Card hover effects
- Fully mobile responsive layout
The template includes:
- Responsive grid layout
- Touch-friendly controls
- Mobile optimized cart
- Hamburger navigation menu
Works smoothly across:
- 📱 Mobile
- 💻 Desktop
- 📟 Tablets
Since this project is a single HTML file, deployment is extremely simple.
You can host it on:
- GitHub Pages
- Netlify
- Vercel
- Any static hosting service
Just upload the HTML file and it's ready.
This template can be adapted for:
- Automobile Service Stations
- Spare Parts Stores
- Bike Accessories Shops
- Garage Booking Systems
- Small E-commerce stores
- Digital product checkout pages
Template Developed by:
Zomb-AI (balram3429)
If you find this template useful:
- ⭐ Star the repository
- 🍴 Fork it
- 🔧 Customize it for your project
Happy building 🚀