Online eyewear store PHP project – VisionKart is a full e-commerce website for sunglasses, eyeglasses, computer glasses and kids eyewear, built in core PHP 8 with a MySQL database. Customers browse and filter frames, add them to the cart, check out with Cash on Delivery or Razorpay test payment, download a tax invoice and follow their order on a tracking timeline. The admin controls the whole store from a separate panel.
How it works
- Customer registers and logs in (passwords stored with bcrypt)
- Browses the shop with filters for category, brand, gender, price and search
- Adds products to the cart (quantity limited to available stock)
- Checks out with a saved or new address and chooses COD or Razorpay
- Order, items, payment and stock are saved in one database transaction
- Admin updates the order status (Pending → Confirmed → Shipped → Delivered) with a note
- Customer sees every status change on the order tracking timeline and prints the invoice
Users
- Guest – browse, search and view products
- Customer – cart, checkout, orders, tracking, invoice, cancel order, write review
- Admin – catalog, stock, orders, payments, invoices, customers, messages, reports
Highlights
- 6 public pages, 9 customer pages and 26 admin screens
- 16 MySQL tables with foreign keys
- PDO prepared statements, bcrypt passwords and separate customer/admin sessions
- Razorpay test mode with server-side HMAC-SHA256 signature verification
- Stock movement history, low-stock report and date-wise sales report
- Printable A4 tax invoice
- 53 tested test cases included in the report
What you get
- Complete PHP source code and SQL file
- Project report (60 pages) with DFD, ER, UML, sequence and activity diagrams
- Abstract, SRS, project explanation with viva questions, setup guide
- Real screenshots and a README with a 10-minute demo script
Who can use this project
BCA, BSc CS / IT, MCA and Diploma final year students, and Engineering 2nd / 3rd year students as a micro project.
Frequently asked questions
Does it run on XAMPP? Yes – copy the folder to htdocs, import the SQL in phpMyAdmin and follow the setup guide. Is online payment real? No. It uses Razorpay test mode with free test keys, so no real money is charged. Cash on Delivery works without internet. Is the report included? Yes – the full report, abstract, SRS, setup guide and viva questions come in Word and PDF. Can I change the design? Yes – the code is plain PHP, HTML, CSS and JavaScript with no framework.