eCommerce - Online Book Store in PHP with PayPal Free Source Code



This is an ECommerce Website in PHP project for Book Stores that I called Online Book Store. This project provides the book store's client or possible client to have an online platform for exploring and order the different kinds of books that the store/shop is selling. The system has also an Admin Panel where the store management can manage the products, orders, and other data in the system.

About the Online Book Store

This project that I created was developed or written in PHP/MySQLi, MySQL Database, HTML, CSS, JavaScript (Ajax and jQuery), Bootstrap, Admin LTE, and other plugins/libraries. In the system Admin Panel, admin users are required to submit their admin system credentials to access this side of the system. The admin users can manage the list of Categories, Sub-Categories, Book List, Inventory, and more. He/She is also in charge of managing the order list where he/she can update the status of each order. The admin also has the capability also to manage some information of the system such as the system name and logo. On the public/clients side, they can browse/explore the different kinds of types of books that the store is selling. The books are organized in each category and their subcategories. In the Navigation Bar, there are 3 Categories listed as the navigation and to show all the list of categories, the clients can simply navigate to the page by simply clicking the "All Categories" menu. On the book's view page, all the details of the selected book will be shown and this is the page where the customer can add the product to his/her cart. Talking about checking out or placing the customer orders, after clicking the "checkout" button at the cart list, the customer will be redirected to the checkout form where customer/client will choose if he/she wants to pick up or to deliver his/her order. The client can also choose his/her payment method for either "Cash on Delivery" and "Online Payment using PayPal". The system also generates a printable sales report.


Admin Side

  • Secure Login
  • Dashboard Page
  • Manage Category List
  • Manage Sub-Category List
  • Manage Book List
  • Manage Inventory
  • Manage Order List
  • View Sales Report
  • Manage System Information
  • Manage Account

Client/Customer Side

  • Secure Login and Registration
  • Explore Books
  • Search Books
  • View Book's Information
  • Add Book to Cart
  • View Cart List
  • Manage Cart
  • Checkout
  • Place Order
  • Pay Online

System Snapshots

Admin Panel Dashboard


Admin Order View


Sales Report Page


Payment View when Choosing Online Payment (PayPal)


Online Store's Public Home Page


Category List page


Category's Book List Page


Book View


Cart's Page


The source code of this Online Book Store - an ECommerce Website project is free to download on this website. Just follow the instructions below on how to run this project.

How to Run


  • Download and Install any local web server such as XAMPP/WAMP.
  • Download the provided source code zip file. (download button is located below)


  1. Open your XAMPP/WAMP's Control Panel and start the Apache and MySQL.
  2. Extract the downloaded source code zip file.
  3. If you are using XAMPP, copy the extracted source code folder and paste it into the XAMPP's "htdocs" directory. And If you are using WAMP, paste it into the "www" directory.
  4. Browse the PHPMyAdmin in a browser. i.e. http://localhost/phpmyadmin
  5. Create a new database naming book_shop_db.
  6. Import the provided SQL file. The file is known as book_shop_db.sql located inside the database folder.
  7. Browse the Online Book Shop in a browser. i.e. http://localhost/book_shop and http://localhost/book_shop/admin for the admin side.

Admin Access Information

Username: admin
Password: admin123

Sample Client/Customer Access:

Email: [email protected]
Password: jsmith123


That's it! You can now explore the features/functionalities of this Online Book Shop in PHP. Feel free to modify the source code the way you wanted. I hope this will help you with what you are looking for and for your future PHP projects.

Explore more on this website for Free Source Codes and Tutorials.

Enjoy Coding :)

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.


1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.


Submitted byMario Verdini (not verified)on Sat, 12/18/2021 - 01:00

it would be interesting if, after payment confirmation, the customer could download the book
Submitted byAnonymous (not verified)on Sat, 02/12/2022 - 14:30


Add new comment