Project Report (E-Commerce)
Project Report (E-Commerce)
Project Report (E-Commerce)
AND TECHNOLOGY
DEPATMENT OF COMPUTER SCIENCE ENGINEERING AND IT
PROJECT REPORT
ON
E-COMMERCE SHOPING WEBSITE
ABSTRACT
The thesis aimed to develop an online shop using open-source technologies (PHP,
HTML, CSS, JavaScript, MySQL and Apache Web Server) for electronics products in
Ghana where customers will be able to buy products online.
The designed application will have an admin view and the public or guest view. The
admin view is meant for the administrator to update the products, change prices,
remove and add products and also manage customers. The customer view will be
accessible to the customers, and they will be able to handle their information such as
their name, ad- dress, and contact. Also, the customer will be able to order for products
from the shop.
CONTENTS
1.INTRODUCTION
2.TOOLS AND TECHNOLOGIES
a) PHP
b) CSS
c) JAVASCRIPT
d) MySQL
e) XAMPP
f) PhpMyAdmin
3.APPLICATION AND DESCRIPTION
4.DATABASE GUI DESIGN
a) Database
b) Customer Interface layout
c) Management Interface design
5.IMPLEMENTATION
a) Description
b) Implementation of functions
6.TESTING
a) Testing shopping cart
b) Customer checking out
7.CONCLUSION
INTRODUCTION
E-commerce (electronic commerce or EC) is the buying and selling of goods and
services, or the transmitting of funds or data, over an electronic network, primarily the
internet. These business transactions occur either as business-to-business, business-
to- consumer, consumer-to-consumer or consumer-to-business.
E-commerce shops have become part of our daily lives. Technological advancement
has made it possible for people to sit in the convenience of their homes and still shop
online without going to a physical shop. Africans have also joined the trend of e-
commerce business, so this project is meant to design an eCommerce online shop so
that the people in Ghana (Africa)will be able to purchase their goods and services
online.
This project is mainly divided into two main categories: The Administrators and the
Customers/Users.
The store manager and the staff members operate as the administrators. They can add,
edit, update products or, delete products thus they able to change the names of
products, change prices and, add or remove products.
The customer can search for products selection, update the cart, remove products from
the cart and check out from the shop. The customer is also able to update his
information such as names, address and other data.
The User is only able to browse the online shop and add a product to the cart. The user
is limited to the use of the shop.
This thesis contains eight chapters to explain the project. The first chapter introduces
the project; the second chapter defines the tools and technology used for the project,
and the third chapter describes the application and description of the process. The
fourth chapter represents the MVC layout, the fifth defines the database and the Gui
designs, the sixth chapter explains the implementation process, and the seventh
chapter describes the testing of the shop and its features, the eight chapter describes
the conclusion of the whole project. The ninth chapter illustrates possible future
improvement to the shop.
PHP
PHP is a server-side scripting language that is used to develop Static websites or
Dynamic websites or Web applications. It is designed for web development to
implement dynamic web pages and can be embedded into HTML for it to be displayed.
Figure 2 demonstrates how the web server operates.
Figure 2: Demonstrating how the web server Operates using PHP
CSS
CSS is simply referred to as Cascading Style Sheets.CSS is used to define styles for
web pages, including the design, layout, and variations in the display for different de-
vices and screen sizes.
The general structure of
p {text-align: center;
color: black;
font-family: arial}
CSS can be used in a separate style sheet or used in the webpage
<!DOCTYPE html>
<html lang=”en-US”>
<head>
<metacharset=”UTF-8”>
<link rel=”stylessheet” type=”text/css” href= “mystyle.css”/>
</head>
JAVASCRIPT
JavaScript is a high-level language which could be used independently or inculcated
into the webpage. It can be used to, handle requests and responses and also add
dynamic behavior and also store information on a website.
MySQL
MySQL is a free source database system, and it enables the cost-effective delivery of
reliable and a high-performance and scalable Web-based and embedded database
applications. It is a relational database system(RDBMS). It is a high performing program
and scalable to meet the demands of users and data. MySQL is written in C and C++,
so it is compatible with most of the operating systems available around the world.
XAMPP
XAMPP is an integrated development surrounding, which incorporates Apache HTTP
Server, MySQL Database, and PHP, Mercury, PERL or Python on a home Windows
based computer. Apache is a free web server. MySQL is an open source database.
XAMPP is used in collaboration with, PHP, MySQL and, Windows 8 operating system.
PhpMyAdmin
PhpMyAdmin is a free and open source MySQL management program application
written in PHP and was first launched in 1998 under the GNU preferred Public License.
It is cross-platform help for the essential working structures and helps management of
more than one server. It supports most MySQL capabilities and has an intuitive net
interface. It additionally has supports developing PDF graphics of data-base layout,
importing information from CSV and SQL formats as well as exporting records to
various codecs such as SQL, XML, PDF and, CSV.
APPLICATION AND DESCRIPTION
Overview of the Various Parts
This project has several parts to it, but the most essential are three listed in Table 1.
Table 1: The overview of the three major parts of the shop
Administrators Customers User
Login access Login access Cannot login
Can add products Can add to cart Can add to cart
Can edit products Can edit product in carts Can edit product in carts
Can view products Can checkout Cannot check out
Can delete customer None None
Admin register
The administrator needs to register before they can have access to the core data of the
shop.
Admin login
The admin logs in and can view, add products, manage customers.
Admin Edit
The Admin can make changes to the shop such as delete customers, add a customer or,
upload new products.
Manage Customer
The administrator has the authority to delete or add a customer.
Customer Detailed Attribute
sign up
This refers to registering as a customer. The registered member has a lot of privileges associated
with the shop when one becomes a customer.
Login
After the user has registered, the user becomes a customer, and he or she can log in with
their personal information.
View
The customer can see all the products in the catalog and able to look at the products and
some features on the homepage.
Edit
The customer can make changes to their data displayed on the customer page.
Update Cart
This refers to putting or removing products from a shopping cart.
Figure 5 is the use case diagram of the shop. One can see the essential
attributes associated with both Administrator and Customers/Users.
Administrator Registration
The Administrator will use his particular data such as name, e-mail, and
password. After submitting the form, the html5 checks to see if all the fields
entered by the admin is correct. If the filed are not correctly filed, or conditions
are not met the admin remains on the same page but if all requirements are
met admin's information goes to the database and saves the data in the
"Admins" in the database. After that, the administrator is directed to the admin
webpage to log in. The Figure shows below the administrator registration
diagram.
Administrator Login
When the admin logs into the Administrators webpage the html5 checks to see
if Condi tiions are met when logging in. If all the information provided are
correct, the data is sent to the database to check if the data corresponds to the
information used to register. If it matches to the information provided by the
Administrator, a page opens, and the admin can have access to the
administrator's webpage if not the administrator is restricted from having
access to management webpage. The Figure shows the administrator log in
diagram.
Figure: Administrator Login diagram
The back-end module/Unit is used to manage the backend of the shop. This is only available to
the administrators. They can manipulate the shop to suit the conditions they have set for the
shop. They also make sure that customers have a good experience when visiting the shop
by updating products, deleting products, executing orders to ware- houses, and managing
customers.
DATABASE GUI DESIGN
Design for database and GUI application
Database
MySQL database is used to save software data for this project. MySQL is relational
database management, and it is free of charge. All of the information’s kept in a
select- editable, and every table has particular range columns and rows. It has eight
tables named as admins, brands, cart, categories, customers, orders, payments and
products.
Figure 12 shows the ER-diagram of the eight tables in the database.
Shopping Cart
The customer can add products to the shopping cart. They can also update the
shopping cart from time to time until they are done shopping. After that, they
can check out by clicking on the checkout button.
Payment
This is the final stage of the shopping experience. The customer who is
satisfied with their choice of product and price can now pay with online or
pay on delivery.
Management Interface design
The administrator must enter his username, email, and password. The html5
will check if all the fields are filled. If field conditions are not met the
admin remain on the same page; otherwise, his information is saved in
the database. He is directed to the login page to login. Figure below
shows the administrator registration form.
Figure: Administrator’s registration page
The electronic shop was developed using PHP, MySQL, HTML and CSS
technology. Any consumer can browse products, add, replace or
delete a product from the cart.
The consumer can log in, with his information such as his email and
password. If the login does not go through, the user can re-register or
ask to change the password. After login, the user can see the product
in the cart and proceed onwards. The product can be paid with
PayPal. The administrator can verify the order; However, the
consumer can still look at the orders in his or her account. The
ordered price is saved in the database.
FUTURE IMPROVEMENT