You are on page 1of 80

E-commerce Website

Project Report
Submitted in partial fulfilment of the requirements for the degree of
BACHELOR OF COMPUTER APPLIACTION
BY

Sumanta Jana [ 32301220051 ]


Shaswata Gupta [ 32301220040 ]
Arnav Singha [ 32301220007]
Lokenath Kundu [ 32301220020
]
Arkaprabha Chowdhury [ 32301220026 ]

Dr. B.C. Roy Engineering College


Academy of Professional Courses
Durgapur | Affiliated to MAKAUT

Approved By :
Prof. Soumya Pal
Self Certificate

This is to certify that the dissertation/project proposal entitled


“E-Commerce Website” is done by us, is an authentic work
carried out for the partial fulfilment of the requirements for the
award of the degree of Bachelor of Computer Application
under the guidance of Prof. Soumya Pal. The matter embodied in
this project work has not been submitted earlier for award of any
degree to the best of my knowledge and belief.

Name of the Students :


 Sumanta Jana :
 Shaswata Gupta :
 Arnav Singha :
 Lokenath Kundu :
 Arkaprabha Chowdhury :
Certificate By Guide

This is to certify that this project entitled “E-Commerce WebSite”


submitted in partial fulfilment of the degree of Bachelor of
Computer Application by Sumanta Jana, Shaswata Gupta, Arnav
Singha, Lokenath kundu, Arkaprabha Chowdhury, students of Dr.
B.C. Roy Engineering College, Durgapur . Is an authentic work
carried out under my guidance & best of our knowledge and
belief.

( Signature with Date)


Certificate of Approval

This is to certify that this documentation of Major Website Project


2023, entitled “E-Commerce Website” is a record of bona-fide
work, carried out by Sumanta Jana, Shaswata Gupta, Arnav
Singha, Lokenath Kundu, under my supervision and guidance. In
my opinion, the report in its present form is in fulfilment of all the
requirements, as specified by the Dr. BC Roy Engineering College,
Durgapur and as per regulations of this college. In fact, it has
attained the standard, necessary for submission. To the best of my
knowledge, the results embodied in this report, are original in
nature and worthy of incorporation in the present version of the
report for Bachelor of Computer Application.

Prof. Soumya Pal


PROFESSOR OF DR. BC ROY ENGINEERING COLLEGE
ACADEMY OF PROFESSIONAL COURSES
JEMUA ROAD, FULJHOR
DURGAPUR – 713206
Table of Content

Slide No. Topic Title .

1. Introduction

2. System Specification

3. Data Flow Diagram

4. Entity Relationship Diagram

5. Project Category and Module

6. User Interface

7. Coding Section

8. Implementation and Testing

9. Future Scope

10. Conclusion
1. Introduction

E-commerce (electronic commerce or EC) is the purchase and trade of


products and services, and/or the transfer of finances or data, by
internet. This business sale takes place as a business-to- business,
business-tobuyer, buyer-to-buyer or buyer to- business. E-commerce
stores become a part of our diurnal lives. Advances in technology have
made it possible for people to measure during a comfortable terrain in
their homes and shop online without having to travel to any store. The
design is astronomically divided into two main modules Sellers and
Guests/ Users. The shop director and staff work as Sellers. They will
have the ability to add, edit, review products or, remove products
therefore being suitable to change brand titles, change costs, add, or
take off products. The client can search the merchandise selection, make
changes to the wain, remove the products from the wain and go in the
store. The client is additionally ready to update their information similar
as titles, address, and other diverse data. The user can only browse the
web store and add the merchandise to the wain. User is restricted to
using the store.
Overview……
The ‘Online E-commerce Web
application’ Services department
strives to provide solutions to develop
and transfer easy and efficient way in
the digital age and to help reduces the
human pressure and time.
To help support shop collections, the
digital initiatives, and external partner
institution digital projects, It
provide services that include the
digitization of analog objects,
metadata management, digital
preservation, and discovery and
access of digital collections. “Shop
Management System” is a web
application written for all operating
systems, designed to help users
maintain and organize shop virtually.
This software is easy to use for
both beginners and advanced users.
It features a familiar and well
thought- out, an attractive user
interface, combined with strong
searching Insertion and reporting
capabilities. The report generation
facility of shop system helps to get a
good idea of which are the
various items brought by the
members, makes users possible to get
the product easily.
The ‘Online E-commerce Web
application’ Services department
strives to provide solutions to develop
and transfer easy and efficient way in
the digital age and to help reduces the
human pressure and time.
To help support shop collections, the
digital initiatives, and external partner
institution digital projects, It
provides services that include the
digitization of analog objects,
metadata management, digital
preservation, and discovery and
access of digital collections. “Shop
Management System” is a web
application written for all operating
systems, designed to help users
maintain and organize shop virtually.
This software is easy to use for
both beginners and advanced users.
It features a familiar and well
thought- out, an attractive user
interface, combined with strong
searching Insertion and reporting
capabilities. The report generation
facility of shop system helps to get a
good idea of which are the
various items brought by the
members, makes users possible to get
the product easily.
The ‘Online E-commerce Web application’ Services department
strives to provide solutions to developand transfer easy and
efficient way in the digital age and to help reduces the human
pressure and time.To help support shop collections, the digital
initiatives, and external partner institution digital projects,
Itprovide services that include the digitization of analog
objects, metadata management, digitalpreservation, and
discovery and access of digital collections. “Shop Management
System” is a webapplication written for all operating systems,
designed to help users maintain and organize shop virtually.This
software is easy to use for both beginners and advanced
users. It features a familiar and wellthought- out, an
attractive user interface, combined with strong searching
Insertion and reportingcapabilities. The report generation
facility of shop system helps to get a good idea of which are
thevarious items brought by the members, makes users possible
to get the product easily.The ‘Online E-commerce Web
application’ Services department strives to provide solutions to
developand transfer easy and efficient way in the digital age and
to help reduces the human pressure and time.To help support
shop collections, the digital initiatives, and external partner
institution digital projects, Itprovides services that include the
digitization of analog objects, metadata management,
digitalpreservation, and discovery and access of digital
collections. “Shop Management System” is a webapplication
written for all operating systems, designed to help users maintain
and organize shop virtually.This software is easy to use for
both beginners and advanced users. It features a familiar and
wellthought- out, an attractive user interface, combined with
strong searching Insertion and reportingcapabilities. The
report generation facility of shop system helps to get a good
idea of which are thevarious items brought by the members,
makes users possible to get the product easily.

Background Study :

E-commerce is fast gaining


ground as an accepted and used
business paradigm. More and
more business houses are
implementing web sites
providing functionality for
performing
commercial transactions over
the web. It is reasonable to say
that the process of shopping
on the web is becoming
commonplace.
The objective of this project is
to develop a general-purpose e-
commerce store where any
product (such as books, CDs,
computers, mobile phones,
electronic items, and home
appliances) can be bought from
the comfort of home through the
Internet. However, for
implementation purposes, this
paper will deal with an online
ecommerce store.
An online store is a virtual store
on the Internet where customers
can browse the catalog
and select products of interest.
The selected items may be
collected in a shopping cart. At
checkout time, the items in the
shopping cart will be presented
as an order. At that time,
more information will be needed
to complete the transaction.
E-commerce is fast gaining
ground as an accepted and used
business paradigm. More and
more business houses are
implementing web sites
providing functionality for
performing
commercial transactions over
the web. It is reasonable to say
that the process of shopping
on the web is becoming
commonplace.
The objective of this project is
to develop a general-purpose e-
commerce store where any
product (such as books, CDs,
computers, mobile phones,
electronic items, and home
appliances) can be bought from
the comfort of home through the
Internet. However, for
implementation purposes, this
paper will deal with an online
ecommerce store.
An online store is a virtual store
on the Internet where customers
can browse the catalog
and select products of interest.
The selected items may be
collected in a shopping cart. At
checkout time, the items in the
shopping cart will be presented
as an order. At that time,
more information will be needed
to complete the transaction.
E-commerce is fast gaining ground as an accepted and used business
paradigm. More andmore business houses are implementing web sites
providing functionality for performingcommercial transactions over the web.
It is reasonable to say that the process of shoppingon the web is becoming
commonplace.
The objective of this project is to develop a general-purpose e-commerce
store where anyproduct (such as books, CDs, computers, mobile phones,
electronic items, and homeappliances) can be bought from the comfort of
home through the Internet. However, forimplementation purposes, this paper
will deal with an online ecommerce store.
An online store is a virtual store on the Internet where customers can browse
the catalog and select products of interest. The selected items may be
collected in a shopping cart. Atcheckout time, the items in the shopping cart
will be presented as an order. At that time, more information will be needed
to complete the transaction.
Usually, the customer will be asked to fill or select a billing address, a
shipping address, ashipping option, and payment information such as
a credit card number. An emailnotification is sent to the customer as
soon as the order is placed.

Project Planning
Project planning is part of project
management, which relates to the
use of schedules such as Gantt
charts to plan and subsequently report
progress within the project
environment. Initially, the project
scope is defined and the appropriate
methods for completing the project
are determined. Following this
step, the durations for the various
tasks necessary to complete the work
are listed and grouped into a
work breakdown structure. The
logical dependencies between
tasks are defined using an
activity
network diagram that enables
identification of the critical path. Float
or slack time in the schedule can
be calculated using project
management software. Then the
necessary resources can be estimated
and
costs for each activity can be allocated
to each resource, giving the total
project cost. At this stage, the
project plan may be optimized to
achieve the appropriate balance
between resource usage and project
duration to comply with the project
objectives. Once established and
agreed, the plan becomes what is
known as the baseline. Progress will
be measured against the baseline
throughout the life of the project
Project planning is part of project
management, which relates to the
use of schedules such as Gantt
charts to plan and subsequently report
progress within the project
environment. Initially, the project
scope is defined and the appropriate
methods for completing the project
are determined. Following this
step, the durations for the various
tasks necessary to complete the work
are listed and grouped into a
work breakdown structure. The
logical dependencies between
tasks are defined using an
activity
network diagram that enables
identification of the critical path. Float
or slack time in the schedule can
be calculated using project
management software. Then the
necessary resources can be estimated
and
costs for each activity can be allocated
to each resource, giving the total
project cost. At this stage, the
project plan may be optimized to
achieve the appropriate balance
between resource usage and project
duration to comply with the project
objectives. Once established and
agreed, the plan becomes what is
known as the baseline. Progress will
be measured against the baseline
throughout the life of the project
Project planning is part of project management, which relates to the
use of schedules such as Ganttcharts to plan and subsequently report
progress within the project environment. Initially, the projectscope is defined
and the appropriate methods for completing the project are determined.
Following thisstep, the durations for the various tasks necessary to complete
the work are listed and grouped into awork breakdown structure. The
logical dependencies between tasks are defined using an
activitynetwork diagram that enables identification of the critical path. Float
or slack time in the schedule canbe calculated using project management
software. Then the necessary resources can be estimated andcosts for each
activity can be allocated to each resource, giving the total project cost.

At this stage, theproject plan may be optimized to achieve the appropriate


balance between resource usage and projectduration to comply with the
project objectives. Once established and agreed, the plan becomes what
isknown as the baseline. Progress will be measured against the baseline
throughout the life of the project

Purposes
The project is about to handle all the
information of the shop regarding
members. Also it manages
resources which were managed and
handled by manpower previously. The
main purpose of the project
is to integrate distinct sections of
the shop into consistent manner so
that complex functions can be
handled smoothly. The project aims at
the following matters
 Automation of product
manipulation.
 Buying products.
 To manage information of
different types of items.
 Consistently update information
of all the item.
 Managing security by providing
authorized email & password.
Manages database efficiently
Purposes :
The project is about to handle all the information of the shop regarding
members. Also it managesresources which were managed and handled by
manpower previously. The main purpose of the projectis to integrate distinct
sections of the shop into consistent manner so that complex functions
can behandled smoothly. The project aims at the following matters
 Automation of product manipulation.
 Buying products.
 To manage information of different types of items.
 Consistently update information of all the item.
 Managing security by providing authorized email & password.Manages
database efficiently

Purposes
The project is about to handle all the
information of the shop regarding
members. Also it manages
resources which were managed and
handled by manpower previously. The
main purpose of the project
is to integrate distinct sections of
the shop into consistent manner so
that complex functions can be
handled smoothly. The project aims at
the following matters
 Automation of product
manipulation.
 Buying products.
 To manage information of
different types of items.
 Consistently update information
of all the item.
 Managing security by providing
authorized email & password.
Manages database efficiently

Usually, the customer will be


asked to fill or select a billing
address, a shipping address, a
shipping option, and
payment information such as
a credit card number. An
email
notification is sent to the
customer as soon as the order is
placed.
Usually, the customer will be
asked to fill or select a billing
address, a shipping address, a
shipping option, and
payment information such as
a credit card number. An
email
notification is sent to the
customer as soon as the order is
placed.Usually, the customer will be asked to fill or select a billing
address, a shipping address, ashipping option, and payment information
such as a credit card number. An emailnotification is sent to the
customer as soon as the order is placedPurposesThe project is about to handle all the information
of the shop regarding members. Also it managesresources which were managed and handled by manpower
previously. The main purpose of the projectis to integrate distinct sections of the shop into consistent manner
so that complex functions can behandled smoothly. The project aims at the following mattersAutomation of
product manipulation.Buying products.To manage information of different types of items.Consistently update
information of all the item.Managing security by providing authorized email & password.Manages database
efficiently

Project Planning
Project planning is part of project
management, which relates to the
use of schedules such as Gantt
charts to plan and subsequently report
progress within the project
environment. Initially, the project
scope is defined and the appropriate
methods for completing the project
are determined. Following this
step, the durations for the various
tasks necessary to complete the work
are listed and grouped into a
work breakdown structure. The
logical dependencies between
tasks are defined using an
activity
network diagram that enables
identification of the critical path. Float
or slack time in the schedule can
be calculated using project
management software. Then the
necessary resources can be estimated
and
costs for each activity can be allocated
to each resource, giving the total
project cost. At this stage, the
project plan may be optimized to
achieve the appropriate balance
between resource usage and project
duration to comply with the project
objectives. Once established and
agreed, the plan becomes what is
known as the baseline. Progress will
be measured against the baseline
throughout the life of the project Project planning
is part of project management, which relates to the use of schedules such as Ganttcharts to plan and
subsequently report progress within the project environment. Initially, the projectscope is defined and the
appropriate methods for completing the project are determined. Following thisstep, the durations for the various
tasks necessary to complete the work are listed and grouped into awork breakdown structure. The logical
dependencies between tasks are defined using an activitynetwork diagram that enables identification of the
critical path. Float or slack time in the schedule canbe calculated using project management software. Then the
necessary resources can be estimated andcosts for each activity can be allocated to each resource, giving the total
project cost. At this stage, theproject plan may be optimized to achieve the appropriate balance between resource
usage and projectduration to comply with the project objectives. Once established and agreed, the plan becomes
what isknown as the baseline. Progress will be measured against the baseline throughout the life of the project

The ‘Online E-commerce Web


application’ Services department
strives to provide solutions to develop
and transfer easy and efficient way in
the digital age and to help reduces the
human pressure and time.
To help support shop collections, the
digital initiatives, and external partner
institution digital projects, It
provide services that include the
digitization of analog objects,
metadata management, digital
preservation, and discovery and
access of digital collections. “Shop
Management System” is a web
application written for all operating
systems, designed to help users
maintain and organize shop virtually.
This software is easy to use for
both beginners and advanced users.
It features a familiar and well
thought- out, an attractive user
interface, combined with strong
searching Insertion and reporting
capabilities. The report generation
facility of shop system helps to get a
good idea of which are the
various items brought by the
members, makes users possible to get
the product easily.
The ‘Online E-commerce Web
application’ Services department
strives to provide solutions to develop
and transfer easy and efficient way in
the digital age and to help reduces the
human pressure and time.
To help support shop collections, the
digital initiatives, and external partner
institution digital projects, It
provides services that include the
digitization of analog objects,
metadata management, digital
preservation, and discovery and
access of digital collections. “Shop
Management System” is a web
application written for all operating
systems, designed to help users
maintain and organize shop virtually.
This software is easy to use for
both beginners and advanced users.
It features a familiar and well
thought- out, an attractive user
interface, combined with strong
searching Insertion and reporting
capabilities. The report generation
facility of shop system helps to get a
good idea of which are the
various items brought by the
members, makes users possible to get
the product easily
The ‘Online E-commerce Web
application’ Services department
strives to provide solutions to develop
and transfer easy and efficient way in
the digital age and to help reduces the
human pressure and time.
To help support shop collections, the
digital initiatives, and external partner
institution digital projects, It
provide services that include the
digitization of analog objects,
metadata management, digital
preservation, and discovery and
access of digital collections. “Shop
Management System” is a web
application written for all operating
systems, designed to help users
maintain and organize shop virtually.
This software is easy to use for
both beginners and advanced users.
It features a familiar and well
thought- out, an attractive user
interface, combined with strong
searching Insertion and reporting
capabilities. The report generation
facility of shop system helps to get a
good idea of which are the
various items brought by the
members, makes users possible to get
the product easily.
The ‘Online E-commerce Web
application’ Services department
strives to provide solutions to develop
and transfer easy and efficient way in
the digital age and to help reduces the
human pressure and time.
To help support shop collections, the
digital initiatives, and external partner
institution digital projects, It
provides services that include the
digitization of analog objects,
metadata management, digital
preservation, and discovery and
access of digital collections. “Shop
Management System” is a web
application written for all operating
systems, designed to help users
maintain and organize shop virtually.
This software is easy to use for
both beginners and advanced users.
It features a familiar and well
thought- out, an attractive user
interface, combined with strong
searching Insertion and reporting
capabilities. The report generation
facility of shop system helps to get a
good idea of which are the
various items brought by the
members, makes users possible to get
the product easily.

Software Specification:-
 Operating System : Linux, Ubuntu, Mac, Windows XP, 7,
8, 8.1, 10
 Frontend : HTML, CSS, Bootstrap, JavaScript
 Backend : PHP and MySQL
 Local host : XAMPP
Hardware Specification:-
 Processor : Pentium IV or
Above
 RAM : 2GB or above
 Hard Disk : 50GB or above
 Input Devices : Keyboard,
Mouse
 Output Devices : Monitor
 Processor : Pentium IV or
Above
 RAM : 2GB or above
 Hard Disk : 50GB or above
 Input Devices : Keyboard,
Mouse
 Output Devices : Monitor
 Processor : Pentium IV or Above

 RAM : 1GB or above

 Hard Disk : 50GB or above


 Input Devices : Keyboard, Mouse

 Output Devices : MonitorSystem Specification

Implementing Tools for Implementing Tools for the


Projector the Project:-

Tools
 HTML
 CSS
 Bootstrap
 Laravel
 Vue Js
 MySQL
 XAMPP
Tools
 HTML

 CSS

 Bootstrap

 PHP

 MySQL
 XAMPP

Data Flow Diagram.

A Data Flow Diagram (DFD) is a diagram that describes the flow


of data and the processes that change data throughout a system. It
is a structured analysis and design tool that can be used for
flowcharting in place of or in association with information. When
analysts prepare the Data Flow Diagram, they specify the user
needs at a level of detail that virtually determines the information
flow into and out of the system and the required data resources.
This network is constructed by using a set of symbols that do not
imply physical implementations. The Data Flow Diagram reviews
the current physical system, prepares input and output
specification, specifies the implementation plan etc. Four basic
symbols are used to construct data flow diagrams. They are
symbols that represent data source, data flows, and data
transformations and data storage. The points at which data are
transformed are represented by enclosed figures, usually circles,
which are called node
Project Category and Module
C 1. Products

When the user clicks on any product, they will be re-directed to the product page
where the product image and details are visible. User can choose to add the product
to the cart, and it requires user to already logged in to add products to the cart.
Viewers can also see reviews written by other users.

2. Login / Register Page

Users and Sellers can register into the website and login with their e-mail or phone
number and password. Window-shopping doesn’t require any kind of authentication.

3. CART
Cart is a virtual tool that allows users to collect and store items they wish to
purchase before proceeding to the checkout process. The cart serves as a temporary
storage space for selected products or services and provides a convenient way for
users to manage their online shopping experience.

1. Adding items: When users browse through product listings on an e-commerce site,
they can typically find an "Add to Cart" button or a similar option next to each
item. By clicking on this button, the selected item is added to the user's cart. The
website then stores information about the item, such as its name, price, quantity,
and any other relevant details.

2. Cart visibility: Most e-commerce sites display a visual representation of the


cart, usually as an icon or a small box located prominently on the webpage. This
allows users to see a summary of the items they have added to their cart and the
total cost. Users can often hover over or click on the cart icon to view more details
about the contents of their cart.

3. Editing the cart: Within the cart interface, users can typically adjust the
quantity of items they want to purchase or remove specific items altogether. This
functionality provides flexibility for users to modify their shopping selections
before proceeding to checkout.

4. Cart persistence: To enhance the user experience, e-commerce sites often use
technologies like cookies or user accounts to persist the cart's content across
multiple browsing sessions. This means that users can add items to their cart, leave
the site, and return later to find their cart still populated with the previously
selected items.
5. Checkout process: Once users have finalized their shopping selections in the cart,
they can proceed to the checkout process. By clicking on a "Checkout" button or a
similar call-to-action, users are typically taken to a dedicated checkout page where
they enter their billing and shipping information, choose a payment method, and
review the order details.

6. Order completion: After the user has provided the necessary information and
confirmed the purchase, the e-commerce site processes the order, often involving
payment processing and inventory management. The user receives a confirmation message
or email with the order details, and the items are prepared for shipping or made
available for digital download, depending on the nature of the purchase.

4. NEWS LETTERS SUBSCRIPITION.

allowing visitors to sign up to receive regular email updates, promotions, and other
relevant information from your online store. It involves collecting email addresses
and other necessary information from interested users to build a mailing list for
your newsletter.

5. Cutomer Feedbacks

Cutomer Feedbacks will be use to get the feedbacks from the cutomer about our site or
they can use it to clear any query in there mind about the product ,They can also use
it to report any kind of error happened in there payment or any problem they are
facing in the website.

6. Payment Gateway
Payment Gateway are use to do payment for the product the user willing to buy.
7. Query BOT

It’s a BOT that will help the customer to find instant solution to the query aor
problem they have.

8. ADMIN PAGE

The Admin Page contain all the tools to manage the website.Some
of the Following tools are :-
1.Website Setting
2.Shop Setting
3.Product Management
4.Manager Silders
5.Services
6.FAQ
7.Registered Customer
8.Page Settings
9.Social Media
10.Subscriber

These are the the tools are use buy the admin to manage the hole
website.Every admin Have there own Sets Of id and passwords

Page | 13
USER INTERFACE
Page | 67
Coding
<?php require_once('header.php'); ?>

<?php
$statement = $pdo->prepare("SELECT * FROM tbl_settings WHERE id=1");
$statement->execute();
$result = $statement->fetchAll(PDO::FETCH_ASSOC);
foreach ($result as $row) {
$cta_title = $row['cta_title'];
$cta_content = $row['cta_content'];
$cta_read_more_text = $row['cta_read_more_text'];
$cta_read_more_url = $row['cta_read_more_url'];
$cta_photo = $row['cta_photo'];
$featured_product_title = $row['featured_product_title'];
$featured_product_subtitle = $row['featured_product_subtitle'];
$latest_product_title = $row['latest_product_title'];
$latest_product_subtitle = $row['latest_product_subtitle'];
$popular_product_title = $row['popular_product_title'];
$popular_product_subtitle = $row['popular_product_subtitle'];
$total_featured_product_home = $row['total_featured_product_home'];
$total_latest_product_home = $row['total_latest_product_home'];
$total_popular_product_home = $row['total_popular_product_home'];
$home_service_on_off = $row['home_service_on_off'];
$home_welcome_on_off = $row['home_welcome_on_off'];
$home_featured_product_on_off = $row['home_featured_product_on_off'];
$home_latest_product_on_off = $row['home_latest_product_on_off'];
$home_popular_product_on_off = $row['home_popular_product_on_off'];
}

?>

<div id="bootstrap-touch-slider" class="carousel bs-slider fade control-round indicators-line" data-


ride="carousel" data-pause="hover" data-interval="false">

<!-- Indicators -->


<ol class="carousel-indicators">
<?php
$i = 0;
$statement = $pdo->prepare("SELECT * FROM tbl_slider");
$statement->execute();
$result = $statement->fetchAll(PDO::FETCH_ASSOC);
foreach ($result as $row) {
?>
<li data-target="#bootstrap-touch-slider" data-slide-to="<?php echo $i; ?>" <?php if ($i == 0) {
echo 'class="active"';
} ?>></li>
<?php
$i++;
}
?>
</ol>

<!-- Wrapper For Slides -->


<div class="carousel-inner" role="listbox">

<?php
$i = 0;
$statement = $pdo->prepare("SELECT * FROM tbl_slider");
$statement->execute();
$result = $statement->fetchAll(PDO::FETCH_ASSOC);
foreach ($result as $row) {
?>
<div class="item <?php if ($i == 0) {
echo 'active';
} ?>" style="background-image:url(assets/uploads/<?php echo $row['photo']; ?>);">
<div class="bs-slider-overlay"></div>
<div class="container">
<div class="row">
<div class="slide-text <?php if ($row['position'] == 'Left') {
echo 'slide_style_left';
} elseif ($row['position'] == 'Center') {
echo 'slide_style_center';
} elseif ($row['position'] == 'Right') {
echo 'slide_style_right';
} ?>">
<h1 data-animation="animated <?php if ($row['position'] == 'Left') {
echo 'zoomInLeft';
} elseif ($row['position'] == 'Center') {
echo 'flipInX';
} elseif ($row['position'] == 'Right') {
echo 'zoomInRight';
} ?>"><?php echo $row['heading']; ?></h1>
<p data-animation="animated <?php if ($row['position'] == 'Left') {
echo 'fadeInLeft';
} elseif ($row['position'] == 'Center') {
echo 'fadeInDown';
} elseif ($row['position'] == 'Right') {
echo 'fadeInRight';
} ?>"><?php echo nl2br($row['content']); ?></p>
<a href="<?php echo $row['button_url']; ?>" target="_blank" class="btn btn-primary" data-
animation="animated <?php if ($row['position'] == 'Left') {
echo 'fadeInLeft';
} elseif ($row['position']
== 'Center') {
echo 'fadeInDown';
} elseif ($row['position']
== 'Right') {
echo 'fadeInRight';
} ?>"><?php echo
$row['button_text']; ?></a>
</div>
</div>
</div>
</div>
<?php
$i++;
}
?>
</div>

<!-- Slider Left Control -->


<a class="left carousel-control" href="#bootstrap-touch-slider" role="button" data-slide="prev">
<span class="fa fa-angle-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>

<!-- Slider Right Control -->


<a class="right carousel-control" href="#bootstrap-touch-slider" role="button" data-slide="next">
<span class="fa fa-angle-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>

</div>

<?php if ($home_service_on_off == 1) : ?>


<div class="service bg-gray">
<div class="container">
<div class="row">
<?php
$statement = $pdo->prepare("SELECT * FROM tbl_service");
$statement->execute();
$result = $statement->fetchAll(PDO::FETCH_ASSOC);
foreach ($result as $row) {
?>
<div class="col-md-4">
<div class="item">
<div class="photo"><img src="assets/uploads/<?php echo $row['photo']; ?>" width="150px"
alt="<?php echo $row['title']; ?>"></div>
<h3><?php echo $row['title']; ?></h3>
<p>
<?php echo nl2br($row['content']); ?>
</p>
</div>
</div>
<?php
}
?>
</div>
</div>
</div>
<?php endif; ?>

<?php if ($home_featured_product_on_off == 1) : ?>


<div class="product pt_70 pb_70">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="headline">
<h2><?php echo $featured_product_title; ?></h2>
<h3><?php echo $featured_product_subtitle; ?></h3>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">

<div class="product-carousel">

<?php
$statement = $pdo->prepare("SELECT * FROM tbl_product WHERE p_is_featured=? AND
p_is_active=? LIMIT " . $total_featured_product_home);
$statement->execute(array(1, 1));
$result = $statement->fetchAll(PDO::FETCH_ASSOC);
foreach ($result as $row) {
?>
<div class="item">
<div class="thumb">
<div class="photo" style="background-image:url(assets/uploads/<?php echo
$row['p_featured_photo']; ?>);"></div>
<div class="overlay"></div>
</div>
<div class="text">
<h3><a href="product.php?id=<?php echo $row['p_id']; ?>"><?php echo $row['p_name'];
?></a></h3>
<h4>
$<?php echo $row['p_current_price']; ?>
<?php if ($row['p_old_price'] != '') : ?>
<del>
$<?php echo $row['p_old_price']; ?>
</del>
<?php endif; ?>
</h4>
<div class="rating">
<?php
$t_rating = 0;
$statement1 = $pdo->prepare("SELECT * FROM tbl_rating WHERE p_id=?");
$statement1->execute(array($row['p_id']));
$tot_rating = $statement1->rowCount();
if ($tot_rating == 0) {
$avg_rating = 0;
} else {
$result1 = $statement1->fetchAll(PDO::FETCH_ASSOC);
foreach ($result1 as $row1) {
$t_rating = $t_rating + $row1['rating'];
}
$avg_rating = $t_rating / $tot_rating;
}
?>
<?php
if ($avg_rating == 0) {
echo '';
} elseif ($avg_rating == 1.5) {
echo '
<i class="fa fa-star"></i>
<i class="fa fa-star-half-o"></i>
<i class="fa fa-star-o"></i>
<i class="fa fa-star-o"></i>
<i class="fa fa-star-o"></i>
';
} elseif ($avg_rating == 2.5) {
echo '
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star-half-o"></i>
<i class="fa fa-star-o"></i>
<i class="fa fa-star-o"></i>
';
} elseif ($avg_rating == 3.5) {
echo '
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star-half-o"></i>
<i class="fa fa-star-o"></i>
';
} elseif ($avg_rating == 4.5) {
echo '
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star-half-o"></i>
';
} else {
for ($i = 1; $i <= 5; $i++) {
?>
<?php if ($i > $avg_rating) : ?>
<i class="fa fa-star-o"></i>
<?php else : ?>
<i class="fa fa-star"></i>
<?php endif; ?>
<?php
}
}
?>
</div>

<?php if ($row['p_qty'] == 0) : ?>


<div class="out-of-stock">
<div class="inner">
Out Of Stock
</div>
</div>
<?php else : ?>
<p><a href="product.php?id=<?php echo $row['p_id']; ?>"><i class="fa fa-shopping-
cart"></i> Add to Cart</a></p>
<?php endif; ?>
</div>
</div>
<?php
}
?>
</div>
</div>
</div>
</div>
</div>
<?php endif; ?>

<?php if ($home_latest_product_on_off == 1) : ?>


<div class="product bg-gray pt_70 pb_30">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="headline">
<h2><?php echo $latest_product_title; ?></h2>
<h3><?php echo $latest_product_subtitle; ?></h3>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">

<div class="product-carousel">

<?php
$statement = $pdo->prepare("SELECT * FROM tbl_product WHERE p_is_active=? ORDER BY
p_id DESC LIMIT " . $total_latest_product_home);
$statement->execute(array(1));
$result = $statement->fetchAll(PDO::FETCH_ASSOC);
foreach ($result as $row) {
?>
<div class="item">
<div class="thumb">
<div class="photo" style="background-image:url(assets/uploads/<?php echo
$row['p_featured_photo']; ?>);"></div>
<div class="overlay"></div>
</div>
<div class="text">
<h3><a href="product.php?id=<?php echo $row['p_id']; ?>"><?php echo $row['p_name'];
?></a></h3>
<h4>
$<?php echo $row['p_current_price']; ?>
<?php if ($row['p_old_price'] != '') : ?>
<del>
$<?php echo $row['p_old_price']; ?>
</del>
<?php endif; ?>
</h4>
<div class="rating">
<?php
$t_rating = 0;
$statement1 = $pdo->prepare("SELECT * FROM tbl_rating WHERE p_id=?");
$statement1->execute(array($row['p_id']));
$tot_rating = $statement1->rowCount();
if ($tot_rating == 0) {
$avg_rating = 0;
} else {
$result1 = $statement1->fetchAll(PDO::FETCH_ASSOC);
foreach ($result1 as $row1) {
$t_rating = $t_rating + $row1['rating'];
}
$avg_rating = $t_rating / $tot_rating;
}
?>
<?php
if ($avg_rating == 0) {
echo '';
} elseif ($avg_rating == 1.5) {
echo '
<i class="fa fa-star"></i>
<i class="fa fa-star-half-o"></i>
<i class="fa fa-star-o"></i>
<i class="fa fa-star-o"></i>
<i class="fa fa-star-o"></i>
';
} elseif ($avg_rating == 2.5) {
echo '
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star-half-o"></i>
<i class="fa fa-star-o"></i>
<i class="fa fa-star-o"></i>
';
} elseif ($avg_rating == 3.5) {
echo '
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star-half-o"></i>
<i class="fa fa-star-o"></i>
';
} elseif ($avg_rating == 4.5) {
echo '
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star-half-o"></i>
';
} else {
for ($i = 1; $i <= 5; $i++) {
?>
<?php if ($i > $avg_rating) : ?>
<i class="fa fa-star-o"></i>
<?php else : ?>
<i class="fa fa-star"></i>
<?php endif; ?>
<?php
}
}
?>
</div>
<?php if ($row['p_qty'] == 0) : ?>
<div class="out-of-stock">
<div class="inner">
Out Of Stock
</div>
</div>
<?php else : ?>
<p><a href="product.php?id=<?php echo $row['p_id']; ?>"><i class="fa fa-shopping-
cart"></i> Add to Cart</a></p>
<?php endif; ?>
</div>
</div>
<?php
}
?>

</div>

</div>
</div>
</div>
</div>
<?php endif; ?>

<?php if ($home_popular_product_on_off == 1) : ?>


<div class="product pt_70 pb_70">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="headline">
<h2><?php echo $popular_product_title; ?></h2>
<h3><?php echo $popular_product_subtitle; ?></h3>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">

<div class="product-carousel">
<?php
$statement = $pdo->prepare("SELECT * FROM tbl_product WHERE p_is_active=? ORDER BY
p_total_view DESC LIMIT " . $total_popular_product_home);
$statement->execute(array(1));
$result = $statement->fetchAll(PDO::FETCH_ASSOC);
foreach ($result as $row) {
?>
<div class="item">
<div class="thumb">
<div class="photo" style="background-image:url(assets/uploads/<?php echo
$row['p_featured_photo']; ?>);"></div>
<div class="overlay"></div>
</div>
<div class="text">
<h3><a href="product.php?id=<?php echo $row['p_id']; ?>"><?php echo $row['p_name'];
?></a></h3>
<h4>
$<?php echo $row['p_current_price']; ?>
<?php if ($row['p_old_price'] != '') : ?>
<del>
$<?php echo $row['p_old_price']; ?>
</del>
<?php endif; ?>
</h4>
<div class="rating">
<?php
$t_rating = 0;
$statement1 = $pdo->prepare("SELECT * FROM tbl_rating WHERE p_id=?");
$statement1->execute(array($row['p_id']));
$tot_rating = $statement1->rowCount();
if ($tot_rating == 0) {
$avg_rating = 0;
} else {
$result1 = $statement1->fetchAll(PDO::FETCH_ASSOC);
foreach ($result1 as $row1) {
$t_rating = $t_rating + $row1['rating'];
}
$avg_rating = $t_rating / $tot_rating;
}
?>
<?php
if ($avg_rating == 0) {
echo '';
} elseif ($avg_rating == 1.5) {
echo '
<i class="fa fa-star"></i>
<i class="fa fa-star-half-o"></i>
<i class="fa fa-star-o"></i>
<i class="fa fa-star-o"></i>
<i class="fa fa-star-o"></i>
';
}
elseif ($avg_rating == 2.5) {
echo '
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star-half-o"></i>
<i class="fa fa-star-o"></i>
<i class="fa fa-star-o"></i>
';
} elseif ($avg_rating == 3.5) {
echo '
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star-half-o"></i>
<i class="fa fa-star-o"></i>
';
} elseif ($avg_rating == 4.5) {
echo '
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star-half-o"></i>
';
} else {
for ($i = 1; $i <= 5; $i++) {
?>
<?php if ($i > $avg_rating) : ?>
<i class="fa fa-star-o"></i>
<?php else : ?>
<i class="fa fa-star"></i>
<?php endif; ?>
<?php
}
}
?>
</div>
<?php if ($row['p_qty'] == 0) : ?>
<div class="out-of-stock">
<div class="inner">
Out Of Stock
</div>
</div>
<?php else : ?>
<p><a href="product.php?id=<?php echo $row['p_id']; ?>"><i class="fa fa-shopping-
cart"></i> Add to Cart</a></p>
<?php endif; ?>
</div>
</div>
<?php
}
?>
</div>

</div>
</div>
</div>
</div>
<?php endif; ?>

<?php require_once('footer.php'); ?>

<?php require_once('header.php'); ?>


<!-- fetching row banner login -->
<?php
$statement = $pdo->prepare("SELECT * FROM tbl_settings WHERE id=1");
$statement->execute();
$result = $statement->fetchAll(PDO::FETCH_ASSOC);
foreach ($result as $row) {
$banner_login = $row['banner_login'];
}
?>
<!-- login form -->
<?php
if(isset($_POST['form1'])) {

if(empty($_POST['cust_email']) || empty($_POST['cust_password'])) {
$error_message = LANG_VALUE_132.'<br>';
} else {

$cust_email = strip_tags($_POST['cust_email']);
$cust_password = strip_tags($_POST['cust_password']);

$statement = $pdo->prepare("SELECT * FROM tbl_customer WHERE cust_email=?");


$statement->execute(array($cust_email));
$total = $statement->rowCount();
$result = $statement->fetchAll(PDO::FETCH_ASSOC);
foreach($result as $row) {
$cust_status = $row['cust_status'];
$row_password = $row['cust_password'];
}

if($total==0) {
$error_message .= LANG_VALUE_133.'<br>';
} else {
//using MD5 form
if( $row_password != md5($cust_password) ) {
$error_message .= LANG_VALUE_139.'<br>';
} else {
if($cust_status == 0) {
$error_message .= LANG_VALUE_148.'<br>';
} else {
$_SESSION['customer'] = $row;
header("location: ".BASE_URL."dashboard.php");
}
}

}
}
}
?>

<div class="page-banner" style="background-color:#444;background-image: url(assets/uploads/<?php echo


$banner_login; ?>);">
<div class="inner">
<h1><?php echo LANG_VALUE_10; ?></h1>
</div>
</div>

<div class="page">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="user-content">

<form action="" method="post">


<?php $csrf->echoInputField(); ?>
<div class="row">
<div class="col-md-4"></div>
<div class="col-md-4">
<?php
if($error_message != '') {
echo "<div class='error' style='padding: 10px;background:#f1f1f1;margin-
bottom:20px;'>".$error_message."</div>";
}
if($success_message != '') {
echo "<div class='success' style='padding: 10px;background:#f1f1f1;margin-
bottom:20px;'>".$success_message."</div>";
}
?>
<div class="form-group">
<label for=""><?php echo LANG_VALUE_94; ?> *</label>
<input type="email" class="form-control" name="cust_email">
</div>
<div class="form-group">
<label for=""><?php echo LANG_VALUE_96; ?> *</label>
<input type="password" class="form-control" name="cust_password">
</div>
<div class="form-group">
<label for=""></label>
<input type="submit" class="btn btn-success" value="<?php echo LANG_VALUE_4; ?>"
name="form1">
</div>
<a href="forget-password.php" style="color:#e4144d;"><?php echo LANG_VALUE_97; ?
>?</a>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>

<?php require_once('footer.php'); ?>


IMPLEMENTATION AND TESTING

The purpose of this report is to provide an overview of


the implementation and testing process for the e-
commerce website by us. The project aimed to create a
robust and user-friendly online platform for selling
products/services to customers.

Implementation Process:
The implementation phase involved the following key
steps:
1.1 Requirement Gathering:
Extensive discussions were conducted with the client to
gather requirements, define goals, and identify the
desired functionalities and features for the e-commerce
website. The target audience, product catalog, payment
gateways, shipping options, and other essential aspects
were determined.

1.2 Technology Selection:


After careful consideration, the technology stack was
selected based on the project requirements and industry
best practices. We opted to use [HTML,PHP,MY
SQL,CSS] with the VS Code sotware for developing the
e-commerce website.
1.3 Website Development:
The development team initiated the website creation
process, ensuring a user-friendly interface and intuitive
navigation. Key features implemented included product
listing pages, shopping cart functionality, checkout
process, user registration/login, and secure payment
processing. Responsive design techniques were
employed to ensure compatibility with various devices
and browsers.

1.4 Database Design:


A well-structured database was designed and
implemented to efficiently store product information,
customer details, orders, and other relevant data. The
database schema was optimized for quick data retrieval
and included proper indexing.

1.5 Security Measures:


To protect customer data and financial transactions,
robust security measures were implemented. SSL
certificates were integrated for secure communication,
and strict password policies were enforced. Sensitive
information was encrypted, and best practices were
followed to secure the website against potential threats.
1.6 Payment Gateway Integration:
A trusted payment gateway, [Payment Gateway Name],
was seamlessly integrated into the website. This
allowed customers to make secure online transactions
using various payment methods, ensuring a smooth and
reliable payment processing experience.

Testing Process:
To ensure the quality and functionality of the e-
commerce website, a comprehensive testing phase was
conducted. The following testing activities were
performed:
2.1 Functional Testing:
All the website's functionalities were thoroughly tested
to verify their correctness and proper execution. This
included testing features such as product search, add to
cart, checkout process, payment processing, user
registration, and account management. Various
scenarios, edge cases, and input combinations were
tested to validate the system's behavior.

2.2 Performance Testing:


Performance testing was conducted to assess the
website's speed, responsiveness, and scalability under
different load conditions. This involved measuring page
load times, server response times, and resource
utilization to ensure optimal performance. Techniques
like caching, image optimization, and code optimization
were implemented to enhance website speed.
2.3 Usability and User Experience Testing:
Usability testing was performed to evaluate the
website's ease of use and overall user experience.
Feedback from users and stakeholders was gathered,
and improvements were made based on their
suggestions. The navigation flow, layout, and
responsiveness were reviewed to ensure a seamless
and intuitive user journey.

2.4 Compatibility Testing:


The website was tested on various browsers (Chrome,
Firefox, Safari, Edge) and devices (desktop, mobile,
tablet) to ensure cross-browser and cross-device
compatibility. Any inconsistencies or issues
encountered were addressed and resolved.

2.5 Security Testing:


Comprehensive security testing was conducted to
identify and address potential vulnerabilities. This
included penetration testing, vulnerability scanning, and
code review to ensure the website's resilience against
security threats.
Conclusion:
The implementation and testing phase for the e-
commerce website were executed successfully. The
website now provides a reliable, secure, and user-
friendly platform for customers to browse, purchase
products/services, and complete transactions with ease.
The thorough testing process ensured that the website
meets the required standards, and any issues or bugs
were addressed
Future Scope.
Future Scope Analysis for E-Commerce Website Project

Cash on Delivery Feature:


Implementing a cash on delivery (COD) feature in your e-commerce website
can significantly enhance the user experience and expand your customer
base. This feature allows customers to make payments in cash at the time of
product delivery. Here's how you can incorporate the COD feature:
1.1 Integration: Integrate the COD option into the checkout process,
providing customers with the choice to pay using this method. Update the
user interface to display the COD option clearly during the payment selection
stage.

1.2 Order Verification: Implement a robust order verification system to


minimize fraudulent orders. Verify the authenticity of orders and customer
details before processing the shipment to ensure a smooth and secure COD
process.

1.3 Order Tracking: Provide customers with order tracking functionality to


allow them to monitor the status of their COD orders. Implement real-time
updates and notifications to keep customers informed about the progress of
their shipments.

1.4 Return and Refund Process: Define a clear return and refund policy
specifically for COD orders. Establish an efficient process for handling
returns, refunds, and exchanges to maintain customer satisfaction.
Secure Banking System:
Enhancing the security of your e-commerce website's banking system is
crucial to instill trust in your customers and protect their financial
information. Consider the following aspects when implementing a secure
banking system:
2.1 Secure Payment Gateway: Evaluate and integrate a reputable and secure
payment gateway that complies with industry standards and provides
advanced security measures. Ensure that the payment gateway encrypts
sensitive information during transactions.

2.2 Two-Factor Authentication (2FA): Implement two-factor authentication


for customers during the payment process. This adds an extra layer of
security by requiring a verification code or token sent to the customer's
registered mobile device or email.

2.3 PCI DSS Compliance: Ensure compliance with the Payment Card
Industry Data Security Standard (PCI DSS), which establishes requirements
for handling and protecting customer payment card information. Adhere to
the necessary security protocols to safeguard cardholder data.

2.4 Regular Security Audits: Conduct periodic security audits and


vulnerability assessments to identify and address any potential security
vulnerabilities in the banking system. Stay updated with the latest security
patches and best practices to mitigate risks effectively.

2.5 Fraud Detection and Prevention: Implement robust fraud detection and
prevention mechanisms to identify suspicious activities and potential
fraudulent transactions. Employ AI-based algorithms or fraud detection
services to enhance security and minimize financial risks.
2.6 Data Encryption: Encrypt sensitive customer data, such as credit card
information and personal details, both in transit and at rest. Utilize industry-
standard encryption algorithms to ensure that the data remains protected.

By incorporating these future enhancements, your e-commerce website can


offer a wider range of payment options, improve customer convenience, and
bolster security measures to build trust with your users. Remember to
thoroughly test and validate these features before deploying them to ensure a
seamless and secure user experience.
Conclusion
The e-commerce website project has been a
success, resulting in the creation of a reliable,
user-friendly, and secure platform that meets
the client's requirements and provides an
enjoyable shopping experience for customers.
It is poised to drive business growth, increase
customer engagement, and establish a strong
online presence in the competitive e-commerce
landscape.

You might also like