Flipkart Clone is a complete e-commerce web application built with PHP and MySQL, designed to work just like a real online shopping site. From signing up with email OTP verification to adding products to the cart and paying through a payment gateway, every core feature of a modern shopping platform is included in this project.
Table of Contents
If you are a computer science student looking for a final-year project that actually impresses, an e-commerce clone is one of the strongest choices. It touches every important skill — user authentication, database design, session handling, AJAX, and payment integration — all in one project.
Before we start, you can also explore our 100+ PHP Projects with Source Code playlist on YouTube.
What is the Flipkart Clone Project?
This project recreates the shopping experience of Flipkart in a simplified, easy-to-understand codebase. A visitor can browse products, view details, add items to their cart or wishlist, and complete a purchase. Behind the scenes, PHP handles the logic, MySQL stores all the data, and AJAX keeps the experience smooth — prices update instantly when you change quantity, without reloading the page.
Main Features
- OTP email verified signup — new users confirm their email with a one-time password, so every registration is genuine
- Login, signup and logout — standard secure authentication flow
- Cart and wishlist — add or remove products from the cart, save favourites to a wishlist
- Save for later — move cart items to a separate list for future purchase
- Cashfree payment gateway — integrated online payments for a real checkout experience
- Profile page — users can view and update their personal details and mobile number
- Buy Now option — purchase a product directly with one click, skipping the cart
- Order tracking — users can check the live status of their orders
- Real-time price updates — totals recalculate instantly when quantity changes, powered by AJAX
How It Works
A new user signs up and verifies their email through OTP. Once logged in, they can browse the product catalogue, open any product to see its details, and either add it to the cart or buy it immediately. The cart page lets them adjust quantities, with the total price updating live. At checkout, the Cashfree payment gateway handles the transaction securely. After ordering, the user can track the order status from their profile. All products, users, orders, and payments are stored in a structured MySQL database.
Technology Used
The front-end is built with HTML, CSS, Bootstrap, and JavaScript, so the site is responsive and works well on mobile screens. The back-end runs on PHP with a MySQL database. You can run the whole project locally using XAMPP, MAMP, or LAMP — whichever you prefer. Google Chrome is recommended for testing.
How to Set It Up
- Install XAMPP on your computer and start the Apache and MySQL services from the control panel.
- Copy the project folder into the htdocs directory of XAMPP.
- Open phpMyAdmin in your browser and create a new database named flipkart_clone.
- Import the SQL file provided in the project’s root folder into that database.
- Open the project in your browser, register a new account, and start exploring.
Documents and Reports
Along with the source code, this project can include a synopsis, project report, and diagrams (ER diagram, DFD, use-case) for your college submission. Documentation is prepared as per your requirements and usually takes 2–3 days.
Video Demo
Watch the complete working demo and more PHP projects on our YouTube channel: Will upload soon
Final Words
The Flipkart Clone in PHP and MySQL is a complete, practical project that demonstrates real e-commerce skills — perfect for final-year submissions, portfolios, or learning how online shopping platforms actually work. The complete source code with step-by-step setup support is available — just use the card below this post and we’ll get you started right away.
Explore more: All Projects | PHP Projects