0% found this document useful (0 votes)
61 views47 pages

Online Cake Ordering System Project

The document outlines a project on an Online Cake Ordering System developed for a Master's degree at Savitribai Phule Pune University. It details the system's features, including user registration, cake customization, secure payment options, and order management, aimed at enhancing customer experience and streamlining bakery operations. The project is built using PHP and MySQL, and includes various diagrams and analyses to support its design and implementation.

Uploaded by

patilvp740
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views47 pages

Online Cake Ordering System Project

The document outlines a project on an Online Cake Ordering System developed for a Master's degree at Savitribai Phule Pune University. It details the system's features, including user registration, cake customization, secure payment options, and order management, aimed at enhancing customer experience and streamlining bakery operations. The project is built using PHP and MySQL, and includes various diagrams and analyses to support its design and implementation.

Uploaded by

patilvp740
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 47

A

PROJECT DOCUMENTATION

ON

“Online Cake Ordering system”

SUBMITTED TO SAVITRIBAI PHULE PUNE UNIVERSITY


FOR THE PARTIAL FULFILLMENT OF AWARD OF DEGREE
Of
MASTER OF COMPUTER APPLICATIONS

ACADEMIC YEAR 2023-2024


-

SUBMITTED BY

Smita Nanaware
Seat No-13098

UNDER THE GUIDANCE OF

Prof.Santosh.B. Takale

NAME OF THE FACULTY

MCA-1st(sem-2)
DATTAKALA GROUP OF INSTITUTIONS,
Faculty of management,
MASTER OF COMPUTER Application
SWAMI- CHINCHOLI(BHIGWAN), TAL- DAUND, DIST- PUNE 413 130.

Certificate

This is to certify that Miss. Smita Rajendra Nanaware has


successfully & satisfactorily completed & submitted the report of Mini

Project Online Cake Ordering System . In Partial fulfilment for the

degree course in Master of Computer Application prescribed by University


of Pune, under the guidance of Prof. Santosh.B.Takale

Prof.In-Charge Examiner H.O.D of Dept.


ACKNOWLEDGEMENT

The happiness of anything depends on what we give more than what we


get. We would like to give the words of gratitude to many persons who spared
their whole hearted assistance and co-operation to the project. I got the
opportunity to express my sincere thanks to PROF.S.B.Takale for him valuable
guidance and contribution for giving precious time and information in preparing
the project. I also, thank my team members and classmates, every one of my
family and all the people who helped me directly or indirectly to complete the
project.
INDEX
Chapter No Details

1 Introduction

1.1 Abstract

1.2 Existing system and Need for System

1.3 Scope of System


1.4 Advantages of system
1.5 Operating Environment - Hardware and Software

2 Proposed System

2.1 Study of Similar Systems


2.2 Feasibility Study

2.3 Objectives of Proposed System

2.4 Users of System

3 Analysis and Design


3.1 Data Dictionary

3.2 Entity Relationship Diagram (ERD)

3.3 Use Case Diagram

3.4 Class Diagram

3.5 Activity Diagram

3.6 Sequence Diagram

3.7 Deployment Diagram

3.8 Screen Layout

4 Coding

4.1 Sample code

5 Limitations of Proposed System

6 Proposed Enhancements

7 Conclusion

8 Bibliography
Introduction:

Welcome to our Cake Ordering System powered by PHP, where your sweetest
cravings are just a click away. Step into our virtual bakery, a digital haven where
the scent of freshly baked cakes wafts through the air and temptation lurks around
every corner.

With our user-friendly interface, ordering the perfect cake for any occasion has
never been easier. From birthdays to weddings to spontaneous moments of
indulgence, we've got you covered with our diverse selection of mouth-watering
treats.

Customization is key, and our Cake Ordering System puts the power in your
hands. Choose your favourite flavour’s, sizes, and decorations to create a cake
that's as unique as you are.

Once you've made your selections, our streamlined checkout process ensures a
seamless experience from start to finish. With secure payment options and
reliable delivery, your cake will arrive fresh and ready to delight.

Join us on a journey of sweetness and celebration as we turn your cake dreams


into reality. Welcome to our Cake Ordering System – where every order is a piece
of cake. The Online Cake Ordering system project is for customers to order cakes
through online for home delivery or pick up from shop. As the internet users are
increasing exponentially, the company has introduced Online Cake Ordering
System for taking orders from customers. This system not only improves
customer’s experience but also eases the workload on the staff of cake shop. This
project developed using PHP, CSS and all the record stores in MySQL database.
1.1 ABSTRACT:

The Cake Ordering System is a web-based application developed using PHP,


designed to streamline the process of ordering cakes online. The system provides
an intuitive interface for customers to browse through a catalog of available
cakes, place orders, and make payments seamlessly. It also offers administrative
functionalities for managing orders, inventory, and user accounts.

Key Features:

1. User Registration and Authentication: Customers can create accounts, log in


securely, and manage their profiles.

2. Cake CatLog: A comprehensive catalog showcasing various types of cakes


with detailed descriptions, images, and prices.

3. Order Placement: Users can select cakes from the catalog, specify
customization options (if any), and add them to their shopping cart.

4. Shopping Cart Management: Customers can view and modify the items in their
shopping cart before proceeding to checkout.

5. Secure Checkout Process: Integration with payment gateways to facilitate


secure online transactions.

6. Order Tracking: Users can track the status of their orders in real-time, from
placement to delivery.

7. Admin Dashboard: An administrative interface for managing cake inventory,


processing orders, and monitoring sales.

8. Reporting and Analytics: Generate reports on sales performance, popular


products, and customer demographics to aid decision-making.

9. Inventory Management: Admins can add new cakes, update existing listings,
and track stock levels to ensure timely replenishment.

10. Customer Support: Integration of a support system to address customer


inquiries, complaints, and feedback effectively.
1.2 Existing system and Need for System:

1.User registration and login: A user registration system is required to allow


customers to create an account and login to the system. this feature will enable
users to view their order history and change their personal information, save their
preferred delivery address.
2.Cake catalog: This system should have a catalog of cakes available for
purchase. The catalog should provide information such as the cake name, image,
price and ingredients. Customers should be able to browse through the catalog
and select the cake they want to order.
3.Customization: The system should allow customers to customize their cakes
according to their preferences. This should include the selecting the size, flavour
and frosting type and adding messages or special instructions.
4.Ordering and payment: The system should allow customers to place an order
for cakes they have selected and makes payment online. Payment option should
be secure and the system should provide order confirmation and receipt.
5.Delivery options: The system should provide delivery options for customers
to select the date, time and address for cake delivery. The system should also
allow customers to choose between pickup and delivery options.
6.Security: The system should ensure the security of customer’s information and
payment details, by implementing robust security measures and encryption
protocols.
1.3 Scope of the System:

• This system helps customers to place orders through online also eases the
workload on the staff of cake shop.
• Online cake order system is a web-based application which enables customers
to order cakes through online for home delivery or pick up from the shop.
• This system will give option to the customer for online payment.
• This system will provide customer all the details of his order before making
order. This confirmation will help customers to check the items ordered with their
prices.
• This system reduced the paper work.
• It will reduce the purchasing time of the customers.
1.4 Advantages of system:

• It is a system that allows users to check for various cakes available at the
online store and purchase online.

• Helps cake shops to automate bakery selling online.

• Helps cake shops to take cc payments.

• Provides confirmation on payment success.


1.5 DETAILS OF HARDWARE AND SOFTWARE
REQUIREMENTS:
Software Requirement:
The software requirements include:
• presentation: HTML, CSS, PHP • Web Backend Database: PHP, MYSQL
• Operating System: Windows 10
• Web Server: XAMPP
• Browser: Google Chrome

Hardware Requirement:
The hardware requirements include:
• Processor: Intel 5.0 GHz or higher processor
• RAM Capacity: 1 GB (min)
• Hard Disk: 298GB
• Keyboard: Standard keyboard
• Mouse: Optical
• Monitor: “15” Colour.
2.Proposed System:

2.1 Feasibility Study:


One of the most important criteria of the system is that if it is feasible that
is within scope of the organization or not. It has three parts:

1.Technical Feasibility: The system is technical feasible for


implementation for the following reasons:
• As mentioned below in the hardware, software requirement system can
run on minimum computer resources and no special hardware or software are
required to be installed.
• High degree skilled people are not required in order to use and
implementation of the system.
• The system can be upgraded at any time in futures for the requirements of
the process if the number of users are increased.

2. Economic Feasibility: The system can be economically feasible for the


implementation for the following reasons:
• This system is economically feasible to implement. As well it provides
the economic benefits.
• It highly required system that provides feasibility to handle the
information.

3.Operational Feasibility:
• A system will be used if it is developed and implemented to check if
it operationally feasible. It is carried out by small number of the people
familiar to information system, techniques and the rules of organization.
• The person must be skilled and experienced in the system analysis and
design process.
2.2 Objectives of Proposed System:

The objectives of the proposed Cake Ordering System in PHP are as follows:
1. Efficient Ordering Process: Simplify the cake ordering process for
customers by providing a user-friendly interface, thereby enhancing user
experience and satisfaction.

2. Customization Options: Allow customers to customize their cake orders


according to their preferences, such as flavour, size, design, and special
instructions.

3. Secure Transactions: Ensure secure online transactions through integration


with reliable payment gateways, safeguarding customers' financial information.

4. Order Management: Provide administrative tools for managing orders,


including order tracking, status updates, and notifications to customers
regarding order progress.

5. Inventory Management: Enable bakery businesses to efficiently manage


their cake inventory, including adding new products, updating existing listings,
and tracking stock levels to prevent stockouts.

6. User Management: Facilitate user registration, authentication, and profile


management for both customers and administrators to access personalized
services and functionalities.

7. Reporting and Analytics: Generate reports on sales performance, popular


products, and customer demographics to gain insights into business trends and
make informed decisions.
8.Responsive Design: Ensure compatibility across different devices and screen
sizes to provide a seamless user experience for customers accessing the system
from various platforms.

9.Scalability and Flexibility: Design the system architecture to be scalable and


flexible, allowing for future enhancements and adaptations to meet evolving
business needs and technological advancements.

10.Customer Support: Incorporate customer support features to address


inquiries, complaints, and feedback promptly, enhancing overall customer
satisfaction and loyalty.

By achieving these objectives, the proposed Cake Ordering System aims to


optimize the cake ordering process, streamline business operations, and foster
growth and success for bakery businesses operating in the online marketplace.
2.3 Users of the System:
The users of an online cake ordering system developed in PHP can be categorized
into two main groups: customers and administrators.

1. Customers:
- General Users : These are individuals who visit the website or use the mobile
application to browse through available cakes, place orders, and make payments.
They interact with the system to select cake options, provide delivery details, and
track the status of their orders.
- Registered Users: Customers who create accounts on the platform gain access
to additional features such as order history, saved preferences, and personalized
recommendations. They benefit from a more streamlined ordering process and
can easily manage their profiles and preferences.
- Guest Users: Users who prefer not to create accounts can still place orders as
guests. While they may miss out on certain benefits like order history, they can
still make purchases without the need for account creation.

Each user group interacts with the online cake ordering system in PHP in different
ways, with distinct roles, privileges, and objectives. The system's design should
cater to the needs and preferences of each user category, providing a seamless
and satisfying experience for all stakeholders involved.
3.Analysis and Design:
3.1 Data Dictionary:

1.Registration Table:
Sr.no Name Datatype Size Constraints
1 UserID Varchar 120 Primary key
2 Uname Varchar 120 -
2 ContactID Int 50 -

2.login Table:
Sr.no Name Datatype Size Constraints
1 UserID Int 50 Primary key
2 Uname Varchar 120 -
3 Password Int 50 -

3.User Table:
Sr.no Name Datatype Size Constraints
1 UserID Int 50 Primary key
2 User_ name Varchar 120 -
4 User_email Varchar 120 -

4.Admin table:

Sr.no Name Datatype Size


Constraints
1 AdminID int 50 Primary key
2 Admin_name Varchar 120 -
3 Password Varchar 12 -
5.Order table:

Sr.no Name Datatype Size


Constraints
1 UserID Int 50 Primary key
2 Order_no Int 50 -
3 Date Date 50 -

6.Bill table:

Sr.no Name Datatype Size


Constraints
1 UserID Int 50 Primary key
2 Bill_no Int 50 Foreign key
3 Amount Float - -
4 Date Date 50 -

7.Product table:

Sr.no Name Datatype Size


Constraints
1 ProductID int 50 Primary key
2 p _name Varchar 120 -
3 P_desc Int 50 -
4 P_price Int 50 -

8.Payment table:

Sr.no Name Datatype Size


Constraints
1 BillID Int 50 Primary key
2 Bill_no Int 50 Foreign key
2 Amount Float - -
3 Payment_type Varchar 120 -
3.2Entity Relationship Diagram:

Contact id

Username
Registration has Login
Contact Id
Username

User has Admin

Id Contact Admin name Password

has

User Id Bill No Date

Order has Bill

Date Order no User Id Amount

has
has

Cake Cake type Payment

Cake price Bill no Pay type


Cake size

Pay amount
3.2 Use Case Diagram:

Registration

Login

Dashboard

Order

Cake selection
Customer Admin

Delivery

Payment
3.3 Class Diagram

Cake
Customer C.no:Integer
Name:String
Cust.id:Integer
Type:String
Name:String
Price:String
Phn.no:Integer
Address:String Setprice():
Settype():
Order():

Flavor
Registration Flavors:String
Order Occasions:String
Name:String
Order no:Integer Contact
Name:String detail:Integer
Type:String
Date:Integer
Bill(): Register():
3.4 Object Diagram:

Customer

Cust.id: 0001

Name: abc

Phone.no: 1234567890

Address: xyz

Order 01 Order 02 Order 03


Order.no=0001 Order.no= 002 Order.no= 003

Name= abc Name= abc Name= abc

Type= abc Type= abc Type= abc

Date= 12/02/2023 Date= 20/02/2023 Date= 25/02/2023

Amount= 500 Amount= 800 Amount= 1,000


3.5 Activity Diagram:

Customer Online Cake Ordering Employee


System

Start Shows list of cakes

Request to Avail
Service
Confirmation if
Cake is available
cake is available

Display cake details

Ask for how


Enter Quality of Order
many orders

Display orders

Order
Confirm

Display payments Prepare the order

Pay the Bill Receives


payment
Receives orders

End
3.6 sequence Diagram:

---
Customer Products Cart Order Feedback Database

Login()

Authorisation

Search products() search products()

Result()

Select products () Select product()

Add product () Add products ()

Response () Response ()

Update cart() Update cart ()

Response ()

Confirm items () place order() Place order()

Response ()

Give feedback () Give feedback()

Response ()
3.7 Deployment Diagram:

Database Server

MySQL
Server

Application Server System

XAMP Server Web Browser


3.8 Screen Layout:
4.CODING
4.1 Sample Code:

INDEX.php:

<?php
if (isset($_GET['login_success']) && $_GET['login_success'] == 1) {
echo "<script>alert('Logged in!')</script>";
echo "<script>window.location.assign('index.php')</script>";
}
if (isset($_GET['logout_success']) && $_GET['logout_success'] == 1) {
echo "<script>alert('Logged out!')</script>";
echo "<script>window.location.assign('index.php')</script>";
}
session_start();
if (!empty($_SESSION['cart'])) {
$printCount = count($_SESSION['cart']);
}
else {
$printCount = 0;
}
if (!empty($_SESSION['user_users_id']) &&
!empty($_SESSION['user_users_username'])) {
$printUsername = $_SESSION['user_users_username'];
}
else {
$printUsername = "None";
}
?>
<!doctype html>
<html lang="en">

<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-
to-fit=no">
<title>OCS - Home</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<link href="fonts/circular-std/style.css" rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/userpage.css">
<link rel="stylesheet" href="fonts/fontawesome/css/fontawesome-all.css">
<link rel="stylesheet" type="text/css" href="css/owl.carousel.min.css">
<link rel="stylesheet" type="text/css" href="css/owl.theme.default.min.css">
</head>

<body>
<!--
=========================================================
===== -->
<!-- main wrapper -->
<!--
=========================================================
===== -->
<div class="dashboard-main-wrapper">
<!--
=========================================================
===== -->
<!-- navbar -->
<!--
=========================================================
===== -->
<div class="dashboard-header">
<nav class="navbar navbar-expand-lg bg-white fixed-top">
<a class="navbar-brand" href="#">Online Cake Shop</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-
target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
<span><i class="fas fa-bars mx-3
"></i></span>
</button>
<div class="collapse navbar-collapse " id="navbarSupportedContent">
<ul class="navbar-nav ml-auto navbar-right-top">
<li class="nav-item">
<a class="nav-link active" href="index.php">Home</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link" href="#" id="navbarDropdownMenuLink1" data-
toggle="dropdown" aria-haspopup="true" aria-expanded="false">Shop</a>
<div class="dropdown-menu dropdown-menu-right" aria-
labelledby="navbarDropdownMenuLink1">
<?php
require_once('config.php');
$select = "SELECT * FROM cake_shop_category";
$query = mysqli_query($conn, $select);
while ($res = mysqli_fetch_assoc($query)) {
?>
<a class="dropdown-item" href="shop.php?category=<?php echo
$res['category_id'];?>">
<?php echo $res['category_name'];?>
</a>
<?php
}
?>
</div>
</li>
<li class="nav-item">
<a class="nav-link" href="cart.php"><i class="fas fa-shopping-cart"></i>
<span class="badge badge-pill badge-secondary"><?php echo
$printCount;?></span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="about.php">About us</a>
</li>
<li class="nav-item">
<a class="nav-link" href="contact.php">Contact</a>
</li>
<li class="nav-item dropdown nav-user">
<a class="nav-link nav-user-img" href="#" id="navbarDropdownMenuLink2"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><img
src="uploads/default-image.jpg" alt="" class="user-avatar-md rounded-
circle"></a>
<div class="dropdown-menu dropdown-menu-right nav-user-dropdown" aria-
labelledby="navbarDropdownMenuLink2">
<div class="nav-user-info">
<h5 class="mb-0 text-white nav-user-name"><?php echo
$printUsername;?></h5>
<span class="status"></span><span class="ml-2">Available</span>
</div>
<a class="dropdown-item" href="account_users.php"><i class="fas fa-user mr-
2"></i>Account</a>
<a class="dropdown-item" href="login_users.php"><i class="fas fa-sign-in-alt
mr-2"></i>Login</a>
<a class="dropdown-item" href="logout_users.php"><i class="fas fa-power-off
mr-2"></i>Logout</a>
</div>
</li>
</ul>
</div>
</nav>
</div>
<!--
=========================================================
===== -->
<!-- end navbar -->
<!--
=========================================================
===== -->

<!--
=========================================================
===== -->
<!-- wrapper -->
<!--
=========================================================
===== -->
<!-- <div class="dashboard-wrapper"> -->
<div class="container-fluid dashboard-content">
<div class="row">
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
<div id="carouselExampleControls" class="carousel slide" data-
ride="carousel">
<div class="carousel-inner rounded">
<div class="carousel-item active">
<img class="d-block w-100" src="uploads/1.jpg" alt="First slide">
<div class="carousel-caption d-md-block pb-5">
<h3 class="text-white">GOOD FOOD, GOOD LIFE</h3>
<p>Cakes are special, every celebration ends with something sweet like a cake
and people remember it's all about the memories.</p>
<a href="about.php" class="btn btn-rounded btn-outline-light">Read More</a>
</div>
</div>
<div class="carousel-item">
<img class="d-block w-100" src="uploads/2.jpg" alt="Second slide">
<div class="carousel-caption d-md-block pb-5">
<h3 class="text-white">The cake we bake with love</h3>
<p>Take the shredded pieces of your life and bake a master cake out of it.</p>
<a href="about.php" class="btn btn-rounded btn-outline-light">Read More</a>
</div>
</div>
<div class="carousel-item">
<img class="d-block w-100" src="uploads/3.jpg" alt="Third slide">
<div class="carousel-caption d-md-block pb-5">
<h3 class="text-white">Love at first bite</h3>
<p>You can’t be down when you are holding a cupcake.</p>
<a href="about.php" class="btn btn-rounded btn-outline-light">Read More</a>
</div>
</div>
<div class="carousel-item">
<img class="d-block w-100" src="uploads/5.jpg" alt="Fourth slide">
<div class="carousel-caption d-md-block pb-5">
<h3 class="text-white">A party without cake is really just a meeting.</h3>
<p>Cakes are special, every celebration ends with something sweet like a cake
and people remember it's all about the memories.</p>
<a href="about.php" class="btn btn-rounded btn-outline-light">Read More</a>
</div>
</div>
<div class="carousel-item">
<img class="d-block w-100" src="uploads/6.jpg" alt="Fifth slide">
<div class="carousel-caption d-md-block pb-5">
<h3 class="text-white">Eat a cake.</h3>
<p>Cakes are special, every celebration ends with something sweet like a cake
and people remember it's all about the memories.</p>
<a href="about.php" class="btn btn-rounded btn-outline-light">Read More</a>
</div>
</div>
<div class="carousel-item">
<img class="d-block w-100" src="uploads/7.jpg" alt="Sixth slide">
<div class="carousel-caption d-md-block pb-5">
<h3 class="text-white">View our categories.</h3>
<p>Cakes are special, every celebration ends with something sweet like a cake
and people remember it's all about the memories.</p>
<a href="about.php" class="btn btn-rounded btn-outline-light">Read More</a>
</div>
</div>
</div>
<a class="carousel-control-prev" href="#carouselExampleControls"
role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span> </a>
<a class="carousel-control-next" href="#carouselExampleControls"
role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span> </a>
</div>
</div>
</div>

<div class="row m-5">


<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 text-center">
<h1>Our Features</h1>
</div>
<div class="col-xl-4 col-lg-4 col-md-4 col-sm-12 col-12">
<div class="card text-center p-3">
<div class="card-body">
<h1 class="card-title"><i class="fas fa-thumbs-up"></i></h1>
<h3 class="card-title">Quality</h3>
<p class="card-text">Our very first priority is the quality we never
compromised in the quality of our bakery products.</p>
</div>
</div>
</div>
<div class="col-xl-4 col-lg-4 col-md-4 col-sm-12 col-12">
<div class="card text-center p-3">
<div class="card-body">
<h1 class="card-title"><i class="fas fa-birthday-cake"></i></h1>
<h3 class="card-title">Fresh & natural</h3>
<p class="card-text">Our every product is fresh and made with natural
ingredients we do not use the artificial food ingredient in our products.</p>
</div>
</div>
</div>
<div class="col-xl-4 col-lg-4 col-md-4 col-sm-12 col-12">
<div class="card text-center p-3">
<div class="card-body">
<h1 class="card-title"><i class="fas fa-shipping-fast"></i></h1>
<h3 class="card-title">Free delivery</h3>
<p class="card-text">We provide free delivery to our customers. We deliver in
1 hr from the time customer order the product.</p>
</div>
</div>
</div>
</div>

<div class="row mx-5">


<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 text-center">
<h1>Our Categories</h1>
</div>
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
<div class="owl-carousel owl-theme">
<?php
require_once('config.php');
$select = "SELECT * FROM cake_shop_category";
$query = mysqli_query($conn, $select);
while ($res = mysqli_fetch_assoc($query)) {
?>
<div class="item">
<div class="card h-100">
<div class="card-body">
<h3 class="card-title"><?php echo $res['category_name'];?></h3>
<a href="shop.php?category=<?php echo $res['category_id'];?>"><img
class="card-img" src="uploads/<?php echo $res['category_image'];?>"></a>
</div>

</div>
</div>
<?php
}
?>
</div>
</div>
</div>

<div class="row m-5 hero-image2 rounded">


<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 p-3 hero-text">
<h1 class="text-dark">Who We Are</h1>
<p class="text-dark px-5">We are bakers, we bake the piece of joy. We believe
cake and baked goods are an expression of love.</p>
<p class="text-dark px-5">We bake from scratch daily using traditional
methods and quality ingredients. There are some things in life you just can't
fake, and dang good cake? That's one of them. We use organic whole milk,
cage-free eggs, loads of real fruit, pure extracts, amazingly delicious chocolate,
and lots and lots of real butter to create simply delicious treats the old-fashioned
way.</p>
<a href="about.php" class="btn btn-rounded btn-success">Read More</a>
</div>
</div>

<div class="row mx-5 hero-image rounded">


<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12 p-3 hero-text">
<h1 class="text-white">Always happy to hear from you.</h1>
<a href="contact.php" class="btn btn-rounded btn-brand">Contact Us</a>
</div>
</div>

</div>
<!--
=========================================================
===== -->
<!-- footer -->
<!--
=========================================================
===== -->
<div class="footer">
<div class="container-fluid">
<div class="row">
<div class="col-xl-6 col-lg-6 col-md-12 col-sm-12 col-12">
Copyright © 2018 Concept. All rights reserved. Dashboard by <a
href="https://colorlib.com/wp/">Colorlib</a>.
</div>
<div class="col-xl-6 col-lg-6 col-md-12 col-sm-12 col-12">
<div class="text-md-right footer-links d-none d-sm-block">
<a href="javascript: void(0);">About</a>
<a href="javascript: void(0);">Support</a>
<a href="javascript: void(0);">Contact Us</a>
</div>
</div>
</div>
</div>
</div>
<!--
=========================================================
===== -->
<!-- end footer -->
<!--
=========================================================
===== -->
<!-- </div> -->
</div>
<!--
=========================================================
===== -->
<!-- end main wrapper -->
<!--
=========================================================
===== -->
<!-- Optional JavaScript -->
<script src="js/jquery-3.3.1.min.js"></script>
<script src="js/bootstrap.bundle.js"></script>
<script src="js/jquery.slimscroll.js"></script>
<script src="js/main-js.js"></script>
<script type="text/javascript" src="js/owl.carousel.min.js"></script>
<script>
$(document).ready(function(){
$('.owl-carousel').owlCarousel({
loop: true, margin: 10, dots: 0, autoplay: 4000, autoplayHoverPause: true,
responsive:{
0:{items:1}, 600:{items:2}, 1000:{items:4}
}
})
});
</script>
</body>

</html>
Login.php:

<?php
if (isset($_GET['login_error']) && $_GET['login_error'] == 1) {
echo "<script>alert('Username or Password does not exist!')</script>";
echo "<script>window.location.assign('login_users.php')</script>";
}
?>
<!doctype html>
<html lang="en">

<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-
to-fit=no">
<title>OCS - Login</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<link href="fonts/circular-std/style.css" rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="fonts/fontawesome/css/fontawesome-all.css">
<style>
html,
body {
height: 100%;
}

body {
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center;
padding-top: 40px;
padding-bottom: 40px;
}
</style>
</head>

<body>
<!--
=========================================================
===== -->
<!-- login page -->
<!--
=========================================================
===== -->
<div class="splash-container">
<div class="card ">
<div class="card-header text-center"><a href="#"><h2 class="text-
primary">Online Cake Shop</h2></a><span class="splash-description">Please
enter your user information.</span></div>
<div class="card-body">
<form id="form" data-parsley-validate="" method="post"
action="login_check_users.php">
<div class="form-group">
<input class="form-control form-control-lg" type="text"
name="users_username" data-parsley-trigger="change" required=""
placeholder="Username" autocomplete="off">
</div>
<div class="form-group">
<input class="form-control form-control-lg" id="pass1" type="password"
required="" placeholder="Password" name="users_password">
</div>
<button type="submit" class="btn btn-primary btn-lg btn-block">Sign
in</button>
</form>
</div>
<div class="card-footer bg-white p-0 ">
<div class="card-footer-item card-footer-item-bordered">
<a href="register.php" class="footer-link">Create An Account</a></div>
<div class="card-footer-item card-footer-item-bordered">
<a href="#" class="footer-link">Forgot Password</a>
</div>
</div>
</div>
</div>

<!--
=========================================================
===== -->
<!-- end login page -->
<!--
=========================================================
===== -->
<!-- Optional JavaScript -->
<script src="js/jquery-3.3.1.min.js"></script>
<script src="js/bootstrap.bundle.js"></script>
<script src="js/parsley.js"></script>
<script>
$('#form').parsley();
</script>
</body>

</html>
5. Limitation Of Proposed System:

Several limitations may arise in a proposed online cake ordering system


developed in PHP. Here are some potential ones:

1.Scalability: Depending on the architecture and design of the system, it may


struggle to handle a large number of concurrent users or a sudden spike in traffic
during peak times, leading to slow performance or system crashes.

2. Security Vulnerabilities: PHP, like any other programming language, is


susceptible to security vulnerabilities such as SQL injection, cross-site scripting
(XSS), and session hijacking if not properly handled. The system needs robust
security measures in place to protect user data and prevent unauthorized access.

3. Limited Functionality: The system may lack certain features or functionalities


that users expect from an online ordering platform, such as advanced
customization options, real-time order tracking, or integration with third-party
payment gateways.

4. User Experience: Poorly designed user interfaces or unintuitive user flows can
lead to a subpar user experience, resulting in frustration and abandonment of the
ordering process.

5. Maintenance Challenges: Over time, as the system grows and evolves,


maintaining and updating the codebase can become increasingly challenging,
especially if it lacks proper documentation or modularization.

6. Compatibility Issues: The system may encounter compatibility issues with


certain web browsers or devices, limiting the accessibility of the platform to
users.

7. Dependency on External Factors: Reliance on external services, such as web


hosting providers or third-party APIs, introduces a level of dependency and can
impact the reliability of the system if these services experience downtime or
disruptions.

8. Localization and Internationalization: If the system is intended for use in


multiple regions or countries, it may face challenges related to localization
(adapting content for different languages and cultures) and internationalization
(handling different currencies, units of measurement, etc.).
9. Regulatory Compliance: Depending on the jurisdiction in which the system
operates, there may be legal and regulatory requirements related to data privacy,
online transactions, and consumer protection that need to be addressed to ensure
compliance.

10. Feedback and Improvement: Without mechanisms in place for collecting user
feedback and analyzing system performance, it can be difficult to identify areas
for improvement and enhance the overall effectiveness of the online cake
ordering system.
6.Proposed Enhancements:

Enhancing an online cake ordering system in PHP can significantly improve its
functionality, user experience, and overall effectiveness. Here are some proposed
enhancements:

1. Mobile Responsiveness: Ensure that the system is fully responsive and


optimized for mobile devices, allowing users to conveniently place orders from
smartphones and tablets.

2. User Accounts and Profiles: Implement user registration and login


functionality to enable users to create accounts, manage their profiles, view order
history, and save favorite items for future orders.

3. Advanced Search and Filtering: Enhance the search functionality to allow users
to easily find cakes based on criteria such as flavor, type, occasion, dietary
restrictions, and price range.

4.Customization Options: Introduce features that enable users to customize their


cakes, such as selecting cake size, flavor, frosting, decorations, and adding
personalized messages.

5.Real-time Order Tracking: Implement real-time order tracking functionality


that allows users to track the status of their orders from placement to delivery,
providing transparency and peace of mind.

6. Integration with Social Media: Enable users to share their favorite cakes or
recent orders on social media platforms, increasing brand visibility and
potentially attracting new customers.

7. Multiple Payment Gateways: Integrate multiple payment gateways to offer


users a variety of payment options, including credit/debit cards, digital wallets,
and online banking, improving convenience and flexibility.

8. Inventory Management: Implement inventory management features to track


available cake flavors, sizes, and decorations in real-time, ensuring that users are
only offered options that are currently in stock.

9. Automated Email Notifications: Set up automated email notifications to


confirm order placement, provide order updates, and request feedback after
delivery, keeping users informed and engaged throughout the process.
10. Feedback and Review System: Incorporate a feedback and review system
where users can rate their experience, provide feedback on the quality of cakes
and service, and read reviews from other customers, fostering trust and
transparency.

11. Promotions and Discounts:Create promotional campaigns and discount codes


to incentivize repeat purchases and attract new customers, offering discounts for
birthdays, holidays, and special occasions.

12. Performance Optimization: Optimize the performance of the system by


caching frequently accessed data, optimizing database queries, and minimizing
page load times to ensure a smooth and responsive user experience.

13. Security Enhancements: Strengthen security measures by implementing


techniques such as input validation, parameterized queries, encryption of
sensitive data, and regular security audits to protect user information and prevent
unauthorized access.

14. Multilingual Support: Provide multilingual support to cater to users from


different linguistic backgrounds, allowing them to navigate the system and place
orders in their preferred language.

15. Accessibility Compliance: Ensure that the system complies with accessibility
standards such as WCAG (Web Content Accessibility Guidelines), making it
accessible to users with disabilities and enhancing inclusivity.

By implementing these enhancements, the online cake ordering system can


become more user-friendly, feature-rich, and competitive in the market,
ultimately driving customer satisfaction and business growth.
7.CONCLUSION:
In conclusion, enhancing an online cake ordering system in PHP can significantly
improve its functionality, user experience, and overall effectiveness. By
implementing features such as mobile responsiveness, user accounts, advanced
search and filtering, customization options, real-time order tracking, and multiple
payment gateways, the system becomes more convenient and user-friendly for
customers.

Integrating inventory management, automated email notifications, feedback and


review systems, promotions, and security enhancements ensures smoother
operations, better communication with customers, and increased trust in the
platform. Moreover, multilingual support and accessibility compliance make the
system more inclusive and accessible to a wider range of users.

Ultimately, these enhancements not only elevate the user experience but also
contribute to the system's competitiveness in the market, driving customer
satisfaction, loyalty, and business growth. With continuous improvement and
adaptation to user needs and technological advancements, the online cake
ordering system can remain relevant and successful in the dynamic landscape of
e-commerce.
8.Bibliography:

• http://www.tutorialspoint.com/index.html
• http://www.tutorialspoint.com
• http://www.w3schools.com

You might also like