Built to order

Online Spare Parts Ordering Portal for Two-Wheelers with Compatibility Check and Delivery Tracking

This project builds an online spare parts ordering portal for two-wheelers that matches every part to the buyer's exact bike model and year before checkout, with a working cart, order placement and delivery tracking. It is built with PHP, MySQL and JavaScript, and its demo catalogue covers 12 common parts across 8 popular Indian two-wheeler models. Suitable for B.E./B.Tech final-year projects in Computer Science, IT and Web Development.

Chat on WhatsApp — get a quotation

Web Development GitMySQLHTML5 · CSS3 · JavaScriptPHP 8phpMyAdminJavaScript · Fetch APIApache via XAMPPUPI demo checkout flowSoftware
Online Spare Parts Ordering Portal for Two-Wheelers with Compatibility Check and Delivery Tracking — project thumbnail preview
More project photos (2)

The problem

Ordering a spare part for a two-wheeler should be simple, but it usually is not. A brake pad or clutch plate that looks right can still be wrong for a specific model and year, and the mistake is discovered only after the part arrives — the buyer pays return shipping and the bike stays off the road for days. At a local shop the shopkeeper asks for the model and year and picks the matching part from memory. Most online listings do none of that — they show a generic part name and leave fitment to guesswork. This online spare parts ordering portal for two-wheelers closes that gap with a compatibility engine: the buyer selects a bike model and year, the catalogue shows only the parts that fit, and the order is placed and tracked in the same flow. The result is fewer wrong orders, faster repairs and a storefront any two-wheeler owner can use.

In the demo build, the compatibility check for a Hero Splendor Plus (2018–2024) returns 8 matching parts out of the 12-part catalogue, and the demo cart totals ₹1,006 for brake pads (₹349), engine oil (₹399) and two spark plugs (₹258) with free delivery above ₹999. These figures come from the working demo itself, not from a specification sheet — the catalogue, the fitment table and the cart arithmetic are all implemented and clickable in the demo.

SYSTEM FLOW

6 components 5 connections

Live flow
Drag to explore
100%
userBuyer

Picks a bike model and year.

Follow the working sequence

How it works

From the buyer's side the flow is one straight line: choose the bike, see only the parts that fit, add them to the cart, place the order, and watch it move to delivery. Behind that line, the browser sends the selected model and year to the server, the server queries the parts table through a fitment table that maps each part to the models it fits, and the catalogue is re-rendered with only matching parts. Adding a part writes a row to the cart, and the cart page recomputes the subtotal, applies the free-delivery rule above ₹999, and shows the final total before checkout. Placing the order creates an order record and its line items in MySQL and returns an order number; the tracking page reads that order's status history and renders the five-step timeline with timestamps, courier name and AWB number. An admin view manages parts, prices, stock and order statuses.

  1. The buyer selects a bike model and year — for example Hero Splendor Plus, 2018–2024 — in the compatibility check.
  2. The server filters the 12-part catalogue through the fitment table and shows only the parts that fit — 8 of 12 parts for the Splendor Plus.
  3. The buyer opens a part to see its price, discount, stock status and the full list of models it fits, then adds it to the cart.
  4. The cart page recomputes the subtotal live, applies free delivery on orders above ₹999, and shows the final total.
  5. Checkout collects the delivery address and a demo UPI payment step, then creates the order and its line items in MySQL and returns an order number.
  6. The tracking page shows the order's five-step timeline — placed, packed, shipped, out for delivery, delivered — with timestamps, courier name and AWB number.
  7. The admin panel updates part prices and stock, maintains fitment mappings, and moves orders through the five statuses.

Tech stack:

  • PHP 8 (server-side logic)
  • MySQL (parts, fitment, cart and orders)
  • HTML5 · CSS3 · JavaScript (portal UI)
  • Apache via XAMPP (local hosting)
  • phpMyAdmin (database management)
  • JavaScript fetch API (AJAX catalogue filtering)
  • UPI demo checkout flow
  • Git (version control)
Parameter Value
Catalogue size 12 parts (demo build)
Bike models covered 8 popular Indian models
Compatibility matches 8 of 12 parts fit a Hero Splendor Plus 2018–2024 (measured in the demo build)
Demo order total ₹1,006 (brake pads ₹349 + engine oil ₹399 + 2 spark plugs ₹258; delivery free above ₹999)
Delivery rule Free above ₹999; ₹49 below (design rule)
Tracking steps 5 (placed → packed → shipped → out for delivery → delivered)
Database tables 6 (parts, models, fitment, cart, orders, order_items — design)
Main views 3 (catalogue, cart, tracking) plus admin (design)
Compatibility filter response Under 1 second on local XAMPP (expected)

Project features

The portal's four strongest capabilities are its compatibility check, its fitment-filtered catalogue, its working cart and checkout, and its delivery tracking. The compatibility check asks for the bike model and model year, then filters the 12-part catalogue to only the parts that fit — for a Hero Splendor Plus (2018–2024) it returns 8 matching parts out of 12, so a wrong part can never reach the cart. The catalogue shows each part with its price, discount, stock status and the exact models it fits, so the buyer decides with real information. The cart totals itself live — the demo order of brake pads, engine oil and two spark plugs totals ₹1,006 with free delivery above ₹999 — and checkout records the order with an order number. Delivery tracking then shows the order moving through placed, packed, shipped, out for delivery and delivered, with courier and expected-delivery details.

  • [Model-and-year compatibility check] The buyer picks a bike model and year; the catalogue filters through a fitment table so only parts that fit that model are shown, and incompatible parts are hidden instead of sold.
  • [Fitment-filtered catalogue] 12 real two-wheeler parts across 8 popular Indian models — brake pads, clutch plates, air filter, chain and sprocket kit, spark plug, engine oil and more — each with price, discount, stock status and the models it fits.
  • [Live cart with free-delivery rule] Quantities update the subtotal instantly, delivery is ₹49 below ₹999 and free above it, and the final total is shown before checkout so there are no surprises.
  • [Order placement with order number] Checkout collects the delivery address and a demo UPI payment step, creates the order and its line items in MySQL, and returns an order number the buyer can track.
  • [Five-step delivery tracking] Every order moves through placed, packed, shipped, out for delivery and delivered, with timestamps, courier name, AWB number and expected delivery date.
  • [Admin part and order management] The admin panel adds parts, edits prices and stock, maintains the fitment table, and moves orders through the five tracking statuses.
  • [Search and category browsing] Parts can be searched by name and browsed by category — braking, engine, transmission, electrical, suspension and lubricants — with or without a compatibility filter applied.

What is included

  • Complete portal source code (PHP, MySQL, HTML, CSS, JavaScript)
  • MySQL schema with demo data: 12 parts, 8 bike models and the full fitment table
  • Working demo of the compatibility check, cart and delivery tracking
  • Setup instructions for XAMPP and database import
  • Project report PDF (background, methodology, database design, working, results)
  • PPT presentation for final review
  • Viva Q&A preparation document (fitment logic, cart arithmetic, database design, payment flow)

Limitations & prerequisites

  • The demo catalogue covers 12 parts and 8 models; adding more models needs a fitment entry for every part that fits them.
  • Prices are catalogue prices for the demo; live pricing needs a seller-supplied price list.
  • Payment is a demo UPI flow — a real gateway needs merchant onboarding and test-mode keys.
  • Delivery tracking shows demo statuses; live courier tracking needs a courier API key.
  • No real inventory sync with a physical shop — stock is a database field the admin updates.
  • Fitment data is entered manually, so a wrong fitment entry would show a wrong part; the admin must verify each mapping before publishing it.

Frequently Asked Questions

How does the compatibility check work?

The buyer selects a bike model and model year, and the portal queries a fitment table that maps every part to the models it fits, then shows only the matching parts. For a Hero Splendor Plus (2018–2024) the demo returns 8 of 12 parts, and incompatible parts are hidden so a wrong part cannot be added to the cart. The fitment table is maintained by the admin, who adds a row for each part-model pair.

Which two-wheeler models are covered?

The demo catalogue covers 8 popular Indian models: Hero Splendor Plus, Hero HF Deluxe, Honda Activa 6G, Suzuki Access 125, Bajaj Pulsar 150, TVS Apache RTR 160, Yamaha FZ-S Fi and Royal Enfield Classic 350. Each part lists the models it fits, and the compatibility check filters the catalogue to those matches. More models can be added by entering their fitment rows in the admin panel.

Can I add more parts or models?

Yes — the admin panel adds parts with name, category, price, stock and a photo, then maps each part to the models it fits in the fitment table. No code change is needed to add a part or a model, only data entry, and the compatibility check picks up the new mappings immediately. Bulk import from a spreadsheet is listed as future scope.

Is payment gateway integration included?

The checkout includes a demo UPI payment step that records the order and returns an order number, but no real money moves. A live gateway (Razorpay or a UPI provider) needs merchant onboarding, test-mode keys and a webhook for payment confirmation, which is documented as a customization step. Cash on delivery can be added as a payment option on request.

How does delivery tracking work?

After checkout the buyer gets an order number, and the tracking page shows a five-step timeline: placed, packed, shipped, out for delivery and delivered, each with a timestamp. The demo order shows the courier name, AWB number and expected delivery date. Statuses are updated by the admin; live courier-API tracking is a documented future extension.

Is this project suitable for a final-year project?

Yes — for Computer Science, IT and Web Development programs, because it covers a complete e-commerce build rather than a single screen. It demonstrates database design with a many-to-many fitment table, server-side filtering, cart and order management, and a full order-to-delivery tracking flow, all working in the demo. The demo is fully working, the catalogue uses real parts and real bike models, and the report explains every design decision for the viva.

Components & software requirements
  • PHP 8 (server-side logic)
  • MySQL (parts, fitment, cart and orders)
  • HTML5 · CSS3 · JavaScript (portal UI)
  • Apache via XAMPP (local hosting)
  • phpMyAdmin (database management)
  • JavaScript fetch API (AJAX catalogue filtering)
  • UPI demo checkout flow
  • Git (version control)
Delivery information

Built-to-order project. Delivery timeline is shared after order confirmation based on current queue.

Support terms

Complete documentation, setup guide, and viva preparation included. Support for setup and explanation provided.

Download free synopsis (PDF)

Enter your name and WhatsApp number — the synopsis PDF downloads immediately. We may send occasional project updates on WhatsApp; no spam.

Get a quotation