Online Food Ordering System in PHP and SQLite Database Free Source Code

Language

Introduction

This is a PHP Project entitled Online Food Ordering System. It is a web-based application that provides restaurant or fast foods businesses clients or possible clients an online platform to explore and order the menu they desire. The project is straight to the point and best to start with developing Online Food Ordering System to meet your client's requirements. The project has a simple and pleasant user interface and user-friendly functionalities.

I developed this project using the following:

  • XAMPP v3.3.0 as my local webserver that has a PHP Version 8.0.7
  • PHP Language
  • SQLite Database
  • HTML
  • CSS
  • JavaScript
  • jQuery
  • Ajax
  • Bootstrap
  • AdminLTE
  • GD Libray
  • and more...

About the Online Food Ordering System

This project has 2 modules which are the Admin Panel and the Public Side. The Admin Panel is the side of the system where the admin users manage the list of products, category products, and customers orders. The admin is in charge of managing or updating the customers' orders from pending into (confirmed, delivered, and canceled). The customer/clients/possible clients can create their account credentials on the public side. They can explore the business menu's that they may desire and wish to order. They can add their desired menu to their shopping cart, update the cart item quantity, and place their order.

Project Features

Admin Side

  • Secure Login/Logout
  • Dashboard/List Summary Page
  • Manage Product Category (CRUD)
  • Manage Product List (CRUD)
  • Manage Orders
    • Updated Status
    • View Order
    • Delete Order
  • Manage Customer List (CRUD)
  • Manage User List (CRUD)
  • Manage Account Credentials

Public Side

  • Secure Login and Registration
  • Explore Menu's
  • View Menu Details
  • View Menu Other Image
  • Add to Cart
  • List shopping cart items
  • Update Cart Item Quantity
  • Delete Cart Item
  • Checkout/Place Order
  • List My Order
  • View Order
  • Manage Account Credentials

Some of the System Snapshots

Public Side Default Page

Online Food Ordering System

Product Details Modal

Online Food Ordering System

Shopping Cart List

Online Food Ordering System

Order Details Modal

Online Food Ordering System

Admin Panel/Home Page

Online Food Ordering System

Admin Product List

Online Food Ordering System

The project source code is free to download on this website. Feel Free to download and modify the source code the way you wanter. Follow the instruction below to run this project.

How to Run ??

Requirements

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

Installation/Setup

  1. Open your XAMPP/WAMP's php.ini file and uncomment the sqlite3 and gd library. After that, save the file.
  2. Open your XAMPP/WAMP's Control Panel and start Apache.
  3. Extract the downloaded source code zip file.
  4. 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.
  5. Browse the Online Food Ordering System in a browser. i.e. http://localhost/online_ordering/ for the public side and http://localhost/online_ordering/admin for the admin side.

Default Admin Access

Username: admin
Password: admin123

Sample Client's Access

Username: jsmith
Password: jsmith123
Or, register a new client's account.

DEMO

That's it! You can now explore the features and functionalities of this Online Food Ordering System project in PHP and MySQL Database. I hope this will help you with what you are looking for and you'll find something useful for your future PHP 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 SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

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.

Comments

Submitted byesilate (not verified)on Sat, 09/18/2021 - 15:41

thanks, very helpful
Submitted byAnonim (not verified)on Wed, 04/06/2022 - 01:16

Hi, there is an error in your code. On page "products.php" in line 62 you need to remove this part of the code ($ row ['employee_code']. "-".) And also on line 97 it is necessary to change from url: '../ Actions.php? A = delete_transaction', on url: '../ Actions.php? A = delete_product', And so the site is cool)
Submitted byAnonim (not verified)on Fri, 04/22/2022 - 20:28

Hello, such an error, when a user enters "My Orders", a list of all orders opens, including other users. I believe the error is in the request, in the orders.php file, you need to change this request: $sql = "SELECT o.*,c.fullname FROM `order_list` o inner join `customer_list` c on o.customer_id = c.customer_id order by o.`status` asc, strftime('%s',o.` date_created`) asc"; UPD: Corrected request: $sql = "SELECT o.*,c.fullname FROM `order_list` o inner join `customer_list` c on o.customer_id = c.customer_id order by o.`status` asc, strftime('%s',o.` date_created`) asc";

Add new comment