Online Medicine Ordering System in PHP/OOP Free Source Code



This project is an Online Medicine Ordering System. This is a web-based application project developed in PHP and MySQL Database. This project's main goal is to give the Pharmacy's Customers an automated and online platform to order their medicine. The system can help both customers and the management. The customer will have an opportunity to purchase their medicinal needs without actually going to the Pharmacy. This project has a pleasant user interface with the help of Bootstrap Framework and AdminLTE Template. It also consists of user-friendly features and functionalities.

About the Online Medicine Ordering System

I developed this project using the following:

  • XAMPP v3.3.0
  • PHP
  • MySQL Database
  • HTML
  • CSS
  • JavaScript
  • Ajax
  • jQuery
  • Bootstrap
  • Font Awesome
  • AdminLTE

This Online Medicine Ordering System has two sides of the user interface which are the Management Panel/Admin Panel and the Public/Customer Site.

The Public Site is accessible to anyone. Customers can explore different kinds of medicinal drugs does the Pharmacy is selling. Here the customer or possible customer of the said business can List their Medicine to Purchase on the Car for paying it later at once. In order for the customer to gain access to the said feature, he/she is required to register and log in to the site. A new customer can simply create their account by filling all the required fields on the Registration Form without any hassle. Customer can also list their orders where they can also track the status of their orders.

The Management Site/Panel is the side of the system that is accessible only to the management. This site requires valid user credentials in order to gain access to the features and functionalities of the said side. The users have 2 different roles which are the Administrator and Staff. The Administrator users have the privilege to access and manage all the features and functionalities while the Staff Users only have limited permission. This site is the side of the system where the management can manage their products, inventory, and customer orders. The admin users can generate the Printable Daily Sales Report on this side.



  • Login and Registration
  • Home Page
  • Product List Page
  • Product Details Page
  • Add Product to Shopping Cart
  • List all Items in Shopping Cart
  • Update Product Quantity in Shopping Cart
  • Place Order
  • List Orders
  • View Order Details
  • Update Account Details/Credentials
  • 'About Us' Content Page
  • 'Contact Us' Content Page
  • Logout


  • Home Page
    • Display the summary.
  • Category Management
    • Add New Category
    • List All Categories
    • Edit/Update Category Details
    • View Category Details
    • Delete Category
  • Product Management
    • Add New Product
    • List All Products
    • Edit/Update Product Details
    • View Product Details
    • Delete Product
  • Inventory Management
    • Add New Stock Entry
    • List All Stock Entry
    • Edit/Update Stock Entry Details
    • Delete Stock Entry
  • Order Management
    • Add New Order
    • List All Orders
    • List Filtered Orders by Status
    • View Order Details
    • Update Order Details
    • Update Order Status
    • Delete Order
  • Report
    • Generate Printable Daily Sales Report
  • Customer Management
    • Add New Customer
    • List All Customers
    • Edit Customer Details
    • Delete Customer Details
  • User Management
    • Add New User
    • List All Users
    • Edit User Details
    • Delete User Details
  • Update Contact Information
  • Update System Information
  • Update Account Details/Credentials
  • Login and Logout

The source code was developed only for educational purposes only. You can download the source code for free and modify it the way you wanted.

System Snapshots of some Features

Home Page

Online Medicine Ordering System

Product List (Customer Side)

Online Medicine Ordering System

Product Details (Customer Side)

Online Medicine Ordering System

Cart List Page

Online Medicine Ordering System

Place Order

Online Medicine Ordering System

Customer's Order List

Online Medicine Ordering System

Management Dashboard

Online Medicine Ordering System

Inventory List

Online Medicine Ordering System

Product Stock Details

Online Medicine Ordering System

Daily Sales Report

Online Medicine Ordering System

How to Run ??


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

System Installation/Setup

  1. Enable the GD Library in your php.ini file.
  2. Open your XAMPP Control Panel and start Apache and MySQL.
  3. Extract the downloaded source code zip file.
  4. Copy the extracted source code folder and paste it into the XAMPP's "htdocs" directory.
  5. Browse the PHPMyAdmin in a browser. i.e. http://localhost/phpmyadmin
  6. Create a new database naming omos_db.
  7. Import the provided SQL file. The file is known as omos_db.sql located inside the database folder.
  8. Browse the Online Medicine Ordering System in a browser. i.e. http://localhost/omos/.

Admin Default Access:

Username: admin
Password: admin123


That's it. You can now explore the features and functionalities of this Online Medicine Ordering System in PHP. I hope this will help you with what you are looking for and you'll find something useful for your future projects.

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

Enjoy :)

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 bySabahat Mehdi (not verified)on Sun, 08/14/2022 - 21:50

I download this project I just want to remove the function which shows developed by oretnom?
Submitted byAdamsam (not verified)on Thu, 01/12/2023 - 10:37

In reply to by Sabahat Mehdi (not verified)

Hi for hide developed by oretnom? remark the line 56 in admin/inc/header.php as load_data()); ?> and do the same in remark the line 58 in /inc/header.php as load_data()); ?>
Submitted byYashaswini Acharya (not verified)on Fri, 08/19/2022 - 21:27

I download this project I just want to remove the function which shows developed by oretnom?
Submitted byJohn maka (not verified)on Fri, 01/20/2023 - 13:57

Am facing the upload issue with images anyone with the solut

To hide developed by oretnom? remark the line 56 in admin/inc/header.php? and do the same in remark the line 58 in /inc/header.php as load_data());

Submitted byAnonymous (not verified)on Mon, 03/20/2023 - 15:48

hi how i can remove when the product is out of stock but i want to still here in the screen
Submitted byGod123 (not verified)on Sat, 04/08/2023 - 15:11

To hide developed by oretnom remove the line 56 in admin/inc/header.php and do the same in remark the line 58 in /inc/header.php also to remove copyright and change the name Amos remove the line 63 and change name in line 64 from amos to whatever you like from /inc/footer.php
Submitted bykaviyamalya (not verified)on Thu, 04/13/2023 - 18:24

hi can anyone provide documentation of this project?
Submitted byChinmay hegde (not verified)on Mon, 10/09/2023 - 22:38

Fatal error: Uncaught Error: Failed opening required 'config.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\omos\index.php:1 Stack trace: #0 {main} thrown in C:\xampp\htdocs\omos\index.php on line 1 why this error

Add new comment