Case Ecomm
Case Ecomm
Tribhuvan University
Faculty of Humanities & Social Science
A Project Report
On
“Plant E-Commerce”
Submitted to
Department of Humanities (BCA)
Nagarjuna College of IT
Submitted by
Rojina Chhetri
T.U. Registration No: 6-2-429-57-2020
Indira Upadhyay
T.U. Registration No: 6-2-429-46-2020
Tina Adhikari
T.U. Registration No: 7-2-39-1136-2019
i
ACKNOWLEDGEMENT
I am pleased to present the project report for the "Plant E-commerce" The completion of
this project was made possible thanks to the invaluable assistance and contributions of
many individuals, and I want to express my sincere appreciation to all of them. To begin
with, I would like to extend my gratitude to Tribhuvan University for providing me with
the opportunity to undertake this project. My heartfelt thanks go out to our esteemed project
supervisor, Mrs. Mohan Singh Ayer whose guidance, mentorship, and continuous
encouragement were crucial in shaping this project into its final form. I am greatly indebted
to her for her expertise and dedication. My appreciation extends to our campus Director,
Mr. Jay Mangal Gupta the faculty members of Nagarjuna College of IT, and our seniors,
whose unwavering support and assistance provided me with the strength to navigate this
project's journey. Furthermore, I would like to thank my friends, whose encouragement and
support played a pivotal role in the successful completion of my work. Their motivation
was a driving force behind my efforts. I trust that this project report has been prepared to
meet the course requirements.
ii
TABLE OF CONTENTS
ABSTRACT ..................................................................................................................... i
ACKNOWLEDGEMENT............................................................................................... ii
LIST OF ABBREVIATION ........................................................................................... v
LIST OF FIGURES ........................................................................................................ vi
LIST OF TABLES ........................................................................................................ vii
CHAPTER 1 .................................................................................................................... 1
INTRODUCTION ........................................................................................................... 1
1.1. Introduction: .......................................................................................................... 1
1.2. Problem Statement: ............................................................................................... 1
1.3. Objectives: ............................................................................................................. 2
1.4. Scope and Limitations: .......................................................................................... 2
1.4.1. Scope: ............................................................................................................. 2
1.4.2. Limitations: .................................................................................................... 2
1.5. Development Methodology: .................................................................................. 2
1.6. Report Organization: ............................................................................................. 4
CHAPTER 2 .................................................................................................................... 5
BACKGROUND STUDY AND LITERATURE REVIEW ........................................... 5
2.1. Background Study: ................................................................................................ 5
2.2. Literature Review: ................................................................................................. 5
CHAPTER 3 .................................................................................................................... 8
SYSTEM ANALYSIS AND DESIGN ........................................................................... 8
3.1. System Analysis: ................................................................................................... 8
3.1.1. Requirement Analysis: ................................................................................... 8
3.1.2. Feasibility Analysis:....................................................................................... 9
3.1.3. Data Modelling: ........................................................................................... 10
3.1.4. Process Modelling:....................................................................................... 11
3.2. System Design: .................................................................................................... 14
3.2.1. System Flow Diagram: ................................................................................ 14
CHAPTER 4 .................................................................................................................. 15
IMPLEMENTATION AND TESTING ........................................................................ 15
4.1. Implementation: .................................................................................................. 15
4.2. Testing: ................................................................................................................ 15
iii
4.2.1. Unit Testing: ................................................................................................ 15
4.2.2. Integration Testing: ...................................................................................... 20
CHAPTER 5 .................................................................................................................. 22
RESULT AND CONCLUSION ................................................................................... 22
5.1. Result:.................................................................................................................. 22
5.2. Conclusion:.......................................................................................................... 23
5.3. Future Enhancements: ......................................................................................... 23
References ..................................................................................................................... 24
APPENDICES ............................................................................................................... 25
Appendices A: Screenshots............................................................................................ 25
Appendices B: Source code ........................................................................................... 30
iv
LIST OF ABBREVIATION
ABBREVIATION DEFINITION
CSS Cascading Style Sheets
DFD Data Flow Diagram
ER Entity-Relationship
GUI Graphical User Interface
HTML Hypertext Markup Language
JS JavaScript
PHP Hypertext Pre-Processor
SDLC Software Development Life Cycle
SQL Structured Query Language
TU Tribhuvan University
VS Code Visual Studio Code
XAMPP X-operating system, Apache, Mysql, Php, Perl
v
LIST OF FIGURES
vi
LIST OF TABLES
vii
CHAPTER 1
INTRODUCTION
1.1. Introduction:
In today's digital age, ecommerce platforms have become essential for businesses looking
to reach a larger audience and streamline sales processes. Plant E-commerce is a unique
online destination dedicated to improving people's lives through indoor plants. Our mission
is to make plant care easy and enjoyable for everyone, regardless of gardening experience.
We have a diverse selection of indoor plants, including succulents, ferns, air plants, and
more, all carefully chosen for their beauty, resilience, and ease of care.
At Plant E-commerce, we believe that plants have the ability to transform spaces and lift
spirits. Whether you're a seasoned green thumb or a novice gardener, our diverse selection
of plants, flowers, and herbs has something for everyone. Our platform is designed to
provide a seamless shopping experience, with detailed plant descriptions, and tips to assist
customers in selecting and nurturing their plants effectively. We believe that plants not only
improve the appearance of living spaces, but also contribute to mental health, air quality,
and overall happiness.
Plant E-commerce, however, is more than just a plant store; it is a community of plant
enthusiasts who are united by a love of nature and a dedication to sustainability. Join us on
a journey of discovery as we explore the wonders of the plant kingdom, share gardening
advice, and celebrate the beauty of green living.
Plant E-commerce is a platform that allows customers to buy products and services online.
Where the customers browse and view the product available for purchase. This website
contains user friendly UI with admin dashboard and provide a secure payment method and
hassle-free way to shop.
1
1.3. Objectives:
To transition from manual sales methods to an efficient online system, Plant E-commerce
aims to achieve the following objectives.
Some other objectives of the projects are:
• Scalability challenges.
2
Figure 0-1.1: Iterative Waterfall model
Here, are some details about how the above steps were implemented: -
Requirements
The iterative waterfall requirement phase involves analyzing and documentation of all
needs and requirements. In the initial stage of developing ' Plant E-commerce’I all the
gathered vital information. I carefully defined the software's objectives, which included
identifying the core functionalities that would make Plant E-commerce a comprehensive
solution. After lots of discussions and planning, put together a detailed information that
listed all the things the requirements of software. This phase provided a clear roadmap for
the development process in a systematic manner.
Design
Once the requirements were finalized, I began the system design phase. I created UI/UX of
our proposed system, including the data flows and various other diagrams. This phase
ensured that all aspects of the system were properly planned and documented before
moving to the next stage.
Implementation
In the next phase, after finalizing the design we worked on actually building ' Plant E-
commerce ' This involved writing the code that made the software run, using languages like
HTML, CSS, JavaScript, and PHP. I followed the detailed plan laid out in the requirements
document to ensure and included all the features and functions which was defined earlier.
Testing
In the testing phase, I put my system through different testing levels to make sure it worked
correctly and met requirements. I carried out a series of tests to identify any issues, bugs,
3
or glitches in the software. I tested every aspect of the software, from the user interface to
the functionality. I made sure that users could easily see different plant details and get
notified of being approved or cancelled. If any issues were detected, it was corrected
immediately.
Maintenance
Here , I make sure that the system is managed and enhanced even after its deployment and
ensure the system's continued functionality, performance, and usability over time.
4
CHAPTER 2
BACKGROUND STUDY AND LITERATURE REVIEW
2.1. Background Study:
Plant E-commerce is a unique plant shop known for its innovative plants designs. Plant E-
commerce recognizes the importance of establishing an online presence to cater to the
preferences of modern consumers, given its growing customer base and increased demand
for online shopping options. The ecommerce website will function as an extension of the
physical store, providing customers with a convenient and accessible platform to browse,
purchase, and send beautiful plant arrangements for a variety of occasions. Admin can log
into system through their login credentials and after login admin manages various sections
including adding, managing plants. Customer also known as User in the system can register
themselves and after registration, user can log in with registered email id and password. After
login User gets their own profile to manage entire access like selecting plants and add them
to the cart etc. So, the existing system requires more time to do a piece of work, for this
reason the online ecommerce plant shop is implemented.
5
home, office, restaurant, or café. With a passion for nurturing greenery and spreading joy
through vibrant blooms, we invite you to explore our carefully curated collection and find
the ideal plants to elevate your surroundings. Whether you want a touch of greenery to
brighten your workspace or a pop of color to adorn your living room, our exquisite plants
and flowers will infuse your space with beauty, tranquility, and positive energy [3].
Your Koseli is one such celebration portal from which you can buy the best indoor plants
online. The plants online available on our website are potted and are good air purifiers. Buy
these pleasant plants online from Your Koseli Nepal and get online plant delivery at your
dear ones’ address to convey your best regards to them. Each of our plants for gifts comes
along with our efficient doorstep online plant delivery to notch up your gifting gesture to
the core. Also, along with our exotic plant online collection, one can even have a look at
our artificial plant collection if they feel maintaining a real plant isn’t their forte [4].
Petals Argo Nepal is an extraordinary E-commerce platform that celebrates the beauty of
nature and brings the joy of plants and flowers to homes in Nepal. At Petals Agro Nepal,
users can explore a wide selection of indoor and outdoor plants, vibrant flowers, and
delightful bouquets, all in one place.Our E-commerce Development expertise enabled us
to create a visually appealing website that perfectly showcases the charm of plants while
providing a seamless shopping experience. From browsing through an array of plants to
reviewing products and making secure payments via trusted gateways, Petals Agro Nepal
ensures a user-centric and reliable platform for plant enthusiasts [5].
6
CHAPTER 3
SYSTEM ANALYSIS AND DESIGN
3.1. System Analysis:
The system analysis of the system is done by conducting requirement analysis, feasibility
analysis, data modeling and process modeling as follows:
3.1.1. Requirement Analysis:
The term requirements determination explains the overall things that can be done within
the system in simpler manner. The requirement analysis of hostel management system is
done through finding the functional and non-functional requirements for the system.
Functional Requirements:
Functional Requirements are the statements of services the system should provide, how the
system should react to particular inputs and how the system should behave in various
situations.
Plant-ecommerce
8
Non-functional Requirements:
The non-functional requirements include:
It should be easy to use and navigate for both user and admin.
It should have a user-friendly interface.
The system should be secured from unauthorized usage and access.
The system should be always reliable and available to users.
Overall, the non-functional requirements of the system are designed to ensure that the system
is reliable, accessible, and user-friendly, while also being scalable and cost-effective.
3.1.2. Feasibility Analysis:
Feasibility analysis is used to assess the strengths and weaknesses of a proposed project
and present directions of activities which will improve a project and achieve desired results.
Technical Feasibility
The system can run in any device which supports internet connectivity and does not require
any new technology to be developed. So, our system is technically feasible.
Operational Feasibility
The system is easy to operate. Admin, and user can login the system and can use the system
in efficient way. So, our system is operationally feasible.
Economic Feasibility
The projects economic cost revolves around the hardware and software charge which is
minimal. Hence, the project is economically feasible.
Schedule Feasibility
Schedule feasibility is the degree to which a deadline for a strategy, plan, project or process
is realistic and achievable. The feasibility of this project is high as the system can be
completed within the time limit.
9
Table 3.1 1: Gantt Chart
Working Time 10th Oct 25th Nov 15th Dec 28th Dec 10th Jan 16th Feb
Planning
Design
Implementation
Testing
Maintenance
Documentation
10
3.1.4. Process Modelling:
Context Diagram
This context diagram represents the result viewing system through Plant E-commerce E-
shop, illustrating the high-level process. It serves as a contextual diagram, providing an
overview of the login process and showing. All the essential steps and components are
captured in a single diagram, offering a comprehensive understanding of our system.
11
Level 1 DFD of Admin
First level DFD of Plant E-commerce website shows how the system is divided into sub
systems. It is an admin level one DFD which also identifies internal data stores of
authentication, uploads, login status, manage items, manage orders and manage reports. It
provides a more detailed breakout of zero level DFD.
12
Level 1 DFD of Users
This is User level 1 DFD of Plant E-commerce which shows the data stores of User login,
authentication interface, make order, buy item, and make payment. It provides a more detailed
breakout of zero level DFD.
13
3.2. System Design:
3.2.1. System Flow Diagram:
14
CHAPTER 4
IMPLEMENTATION AND TESTING
4.1. Implementation:
The “Plant E-commerce” works as Web application system. It is implemented using
HTML, CSS and JavaScript including jQuery as a front end, PHP is used as backend
programming and MYSQL is used for the database and the text editor used was VS Code.
XAMPP was usedas the offline local server. As planned in the designed phase, waterfall
model was used as the development methodology.
PHP
PHP is used as a programming language for this project. Back end of the system is designed
with PHP.
Html
In our system, Html is used for creating webpages. Version: HTML 5.
CSS
CSS is used for designing the Html pages and to layout the Html documents.
Bootstrap
We have used bootstrap as it is a compiled CSS and JavaScript source code.
VS Code
To write and modify code VS Code is used.
MySQL
MySQL is an open-source relational database management system. It is used to store the
information of admin as well as users.
4.2. Testing:
4.2.1. Unit Testing:
Unit testing is the examination of the tiniest software components, which are the modules
or individual code pieces. The main goal is to ensure that each module is capable of
correctly performing its designated tasks, which included responsibilities like managing
user registrations, overseeing ordering process, and maintaining history. Throughout these
testing procedures, the emphasis is placed on verifying the accuracy of data processing and
the generation of expected results. If any issues are encountered during this process, they
were recognized and addressed to maintain the integrity and performance of the software.
15
Test Cases for Unit Testing
Table 3.1 2: Unit Testing
16
Testing Admin Panel
Table 3.1 3: Admin Panel
S.N. Test Test Description Steps Executed Expected Actual Result Pass /
Case Result Fail
ID
1 UT- Entering Incorrect email Message Message saying Pass
incorrect e- mail
101 and/or passwords saying Wrong Emailor
or
password should beentered invalid user Password!was
or password displayed
should be
displayed
2 UT- Clicking on Click on options Admin Admin was Pass
of navigation should navigated
102 navigation bar
bar navigate through different
through pages
different
pages
3 UT- Clicking onAdd Click on room A form that A form that can Pass
103 plant option option and clickon can add plant add plant
Add plant should be
submenu opened
4 UT- Clicking on Click on profile Admin admin profile Pass
option, click on profile was shown which
104 Update admin
Manage admin detail can be edited /
option profile and click should be
Update shown Updated
option which
should be
edited /
Updated
5 UT- Clicking on user Click on user, User details User details was Pass
and click edit should be updated
107 edit option updated.
option
17
6 UT- Clicking on Click on user User detail user detail was Pass
deleted
108 Delete user option option, click on should be
Delete deleted
option
18
Testing User Panel
Table 3.1 4: User panel
19
5 UT-205 Entering Click on Message Message Pass
change
incorrect old saying old
saying old
password
password password not
password not
option and matched was
matched
enter displayed
should be
incorrect displayed
password
6 UT-206 Entering Click change Message Message Pass
password
different
Saying saying password
confirm
option and
password and and re-type
password
enter
different re-type password do not
should be
displayed
20
Test cases for System Testing
Table 3.1 5: System Testing
SN Test Test Case Test Case Step Executed Expected Result Actual Pass/
CaseID Name Description Result Fail
01 TC 101 Security Checking Login with Successful Successful Pass
your
Testing Security to registered Login Login
access login email and
Directed to Directed
to User
password User Dashboard
Dashboard
02 TC 102 Security Checking Try login An error An error Pass
message message
with “Invalid “Invalid
Testing Security to
unauthorized
access login email or email or
email and password
password” ”
password
must be was
displayed. displayed.
03 TC 103 Usability User book Fill the form Plant should be Plant Pass
plants and book added to cart. should be
Testing
plants added to
cart.
04 TC 104 Usability Admin add Add plant New plant New plant Fail
plant details. should be was not
Testing
added added.
21
CHAPTER 5
RESULT AND CONCLUSION
5.1. Result:
On the process of this system development, I really enhanced my skill and experienced alot
of things. A whole process really gave me an opportunity of many things such as researching,
coordination with many individuals to share ideas and knowledge. It was totally a new
experience to develop an OOP based project which made my time challenging and
entertaining as well. The more I learned about new things, more I got motivated to do
further task. I implemented my ideas, knowledge on this project to make it bigger and better.
I find lots of new ideas even for other type projects in the process of SDLC. Researching
about literature review made me to brain-storm to find errors and missing components on
other systems and to find solutions for that. It taught me to solve the real-life problems of
people, to find ideas and to solve various issues of people.
As a whole this project made me more skillful, learned new things which are useful to
enhance my skill. The journey of SDLC was all about finding problems and solving them,
about researching various things, new environment, sharing of knowledge and skill, a
positive challenge, motivation and an ability of dealing with errors and various problems
with positivity.
22
5.2. Conclusion:
From a proper analysis of positive points and constraints on the component, it can be safely
concluded that the product is a highly efficient GUI based component. This application is
working properly and meeting to all user requirements. This component can be easily
plugged in many other systems. This particular project deals with the problem on managing
Plant E-commerce is a user-friendly system which is very easy and to convenient to use.
23
References
[2] P. Decor, "Buy Plant and Decor," 2022. [Online]. Available: plantanddecor.com.
2022].
[Accessed 2022].
24
APPENDICES
Appendices A: Screenshots
Home Page:
25
User Login Page:
26
27
Payment and add to cart
Shipping detail
28
Admin dashboard:
Add Product
29
Appendices B: Source code
Index.php
<?php
session_start();
?>
<?php require './includes/head.php' ?>
<?php require './includes/conn.php';
require './includes/is_added_to_cart.php'
?>
<section class="banner_part">
<div class="container">
<div class="row align-items-center">
<div class="col-lg-12">
<div class="banner_slider owl-carousel">
<div class="single_banner_slider">
<div class="row">
<div class="col-lg-8 col-md-12 col-12 col-sm-12">
<div class="banner_text">
<div class="banner_text_iner">
<h1>Buy green to save green</h1>
<p>
Buy the best indoor plants.
We have a plant for each door.
</p>
<a href="category.php" class="btn_2">Buy now</a>
</div>
</div>
</div>
<div class="banner_img col-lg-4 col-md-12 col-sm-12 col-12">
<img src="img/banner.png" alt="" />
</div>
</div>
</div>
<div class="single_banner_slider">
30
<div class="row">
<div class="col-lg-8 col-md-12 col-sm-12 col-12">
<div class="banner_text">
<div class="banner_text_iner">
<h1>Indoor Plants</h1>
<p>
Choose among wide variety of indoor plants.
</p>
<a href="category.php" class="btn_2">Buy now</a>
</div>
</div>
</div>
<div class="col-lg-4 col-md-12 col-sm-12 col-12 banner_img">
<img src="img/banner.png" alt="" />
</div>
</div>
</div>
<div class="single_banner_slider">
<div class="row">
<div class="col-lg-8 col-md-12 col-12 col-sm-12">
<div class="banner_text">
<div class="banner_text_iner">
<h1>Budget Friendly</h1>
<p>
Eco-Friendly, Pocket-Friendly.
</p>
<a href="category.php" class="btn_2">Buy now</a>
</div>
</div>
</div>
<div class="banner_img col-lg-4 col-md-12 col-12 col-sm-12">
<img src="img/banner.png" alt="" />
</div>
</div>
</div>
</div>
<div class="slider-counter"></div>
</div>
</div>
</div>
</section>
31
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="product_list_slider owl-carousel">
<div class="single_product_list_slider">
<div class="row align-items-center justify-content-between">
<?php
<script src="js/jquery-1.12.1.min.js"></script>
<script src="js/popper.min.js"></script>
32
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.magnific-popup.js"></script>
<script src="js/swiper.min.js"></script>
<script src="js/masonry.pkgd.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/jquery.nice-select.min.js"></script>
<script src="js/slick.min.js"></script>
<script src="js/jquery.counterup.min.js"></script>
<script src="js/waypoints.min.js"></script>
<script src="js/contact.js"></script>
<script src="js/jquery.ajaxchimp.min.js"></script>
<script src="js/jquery.form.js"></script>
<script src="js/jquery.validate.min.js"></script>
<script src="js/mail-script.js"></script>
<script src="js/custom.js"></script>
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'UA-23581568-13');
</script>
<script defer
src="https://static.cloudflareinsights.com/beacon.min.js/vaafb692b2aea4879b33c060e79f
e94621666317369993" integrity="sha512-
0ahDYl866UMhKuYcW078ScMalXqtFJggm7TmlUtp0UlD4eQk0Ixfnm5ykXKvGJNFj
LMoortdseTfsRT8oCfgGA==" data-cf-
beacon='{"rayId":"7721abfb4f723390","token":"cd0b4b3a733644fc843ef0b185f98241","
version":"2022.11.3","si":100}' crossorigin="anonymous"></script>
</body>
</html>
Admin Index.php:
<?php
require 'includes/conn.php';
33
session_start();
if(!isset($_SESSION['admin_email'])){
echo "<script> location.href='/ecommerce/admin/login.php'; </script>";
exit();
}
$mail = '';
if (isset($_SESSION['admin_email'])){
$mail = $_SESSION["admin_email"];
}
$name= '';
?>
<?php require_once "includes/header.php" ?>
<div class="mainContainer">
<?php require "includes/sidebar.php" ?>
<div class="allContainer">
<div class="container jumbotron jumbotron-fluid col-md-8 bg-light my-4 p-4 text-
center">
<div class="container">
<h1 class="display-4">Welcome to Admin Panel</h1>
<h4>Hi, <?php echo $name ?> </h4>
</div>
</div>
<div class="container">
<table class="table container">
<thead class="py-4">
<tr>
<th scope="col">Admin Id</th>
<th scope="col">Name</th>
<th scope="col">Contact Number</th>
<th scope="col">Email</th>
<th scope="col">Action</th>
</tr>
34
</thead>
<tbody>
<?php require "includes/conn.php" ?>
<?php
$query = 'SELECT * FROM `admin`';
?>
</tbody>
</table>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-
kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4"
crossorigin="anonymous"></script>
</body>
</html>
Payment.php
<html>
<head>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet" integrity="sha384-
T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2H
N" crossorigin="anonymous">
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-
C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL
" crossorigin="anonymous"></script>
35
<script src="https://khalti.s3.ap-south-
1.amazonaws.com/KPG/dist/2020.12.17.0.0.0/khalti-checkout.iffe.js"></script>
</head>
<body>
<section class="payment_wrapper">
<div class="container my-4">
<div class="row my-4 py-4 mx-auto">
<div class="col-lg-12 mx-auto"><button id="payment-button" class="fs-2 text-
light border-0
px-2 rounded-pill bg-danger">Pay with Khalti</button>
</div>
</div>
</div>
</section>
<!-- Place this where you need payment button -->
36
};
37