Mini - Project Report

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 42

MINI PROJECT REPORT

ON
“ONLINE SHOPPING MANAGEMENT”
Submitted in partial fulfilment of requirements for the award of 5th Sem degree,
BACHELOR OF ENGINEERING
IN
COMPUTER SCIENCE & ENGINEERING

Submitted G GANESH SAI PRAKASH 1MJ20CS063 By:


G NAVEEN KUMAR 1MJ20CS067
H PRANAV 1MJ20CS075
HARSHAVARDHAN B 1MJ20CS080

Under the Guidance of


Mrs. Sophia G
Assistant Professor, Department of CSE.

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING


MVJ COLLEGE OF ENGINEERING
BANGALORE-67
ACADEMIC YEAR 2022-23
Department of Computer Science and Engineering

Certificate
This is to certify that the mini project entitled “ONLINE SHOPPING MANAGEMENT” is a
Bona-fide work carried out by
1. G GANESH SAI PRAKASH (USN: 1MJ20CS063)
2. G NAVEEN KUMAR (USN:1MJ20CS067)
3. H PRANAV (USN:1MJ20CS075)
4. HARSHAVARDHAN B (USN:1MJ20CS080)

Students of MVJ College of Engineering in partial fulfilment for the award of degree of
Bachelor of Engineering in Computer Science & Engineering of the Visvesvaraya Technological
University, Belagavi during the year 2022-2023. It is certified that all the corrections/suggestions
indicated for Internal assessment have been incorporated in the report. The Mini Project Report has been
approved as it satisfies the academic requirements in respect of Project work prescribed for the said
degree.

Signature of the Guide Signature of the Guide Signature of HOD

Internal Signature of the Examiner External

ABSTRACT
This project "ONLINE SHOPPING MANAGEMENT" provides us a simple interface for maintenance of
shopping products. All the details of the products with all the customer details and cart details are
maintained. Store system that is employed is extremely laborious and quite inadequate. It only makes the
process more difficult and harder. The aim of this project is to develop a system that is meant to partially
computerize the work performed in the Store Based Shopping Industry like keeping track of the products,
keeping the list all the items, customer, suppliers and adding a new product of a particular brand.
Throughout the project the focus has been on presenting information in an easy and intelligible manner.
The project is very useful for those who want to know about Online shopping Management Systems and

want to develop software's/websites based on the same concept.

ACKNOWLEDGEMENT

The satisfaction and euphoria that accompany the successful


completion of any task would be incomplete without the mention of the people who made it
possible, whose constant guidance and encouragement crowned
our effort with success.
s

We express my sincere gratitude to our Principal Dr Suresh babu, & Vice


Principal Mrs. Brindha.M, MVJ College of Engineering for providing facilities.

We wish to place on record our grateful thanks to Dr. Kiran babu T S, Head of the
Department, Computer Science and Engineering, MVJ College of Engineering, Bangalore
for providing encouragement and guidance.

We consider it a privilege and honour to express my sincere gratitude to our guides


Mrs. Sophia G, Assistant Professor, Department of Computer Science & Engineering
for their valuable guidance throughout the tenure of this mini project work and whose
support and encouragement made this work possible

I wish to thank the faculty of Computer Science and Engineering department whose
suggestions have enabled me to surpass many of the seemingly impossible hurdles.

Thank you.

(i)

Table of Contents

Acknowledgements....................................................................................................................i
1. Introduction.......................................................................................................................7
1.1 Goal.............................................................................................................................7
1.2 Need of the application...............................................................................................7
1.3 Scope...........................................................................................................................8
1.4 Platform Specifications – Deployment........................................................................9
1.4.1 Hardware Specification........................................................................................9
1.4.2 Software Specification.........................................................................................9
2. System Requirement Analysis..........................................................................................9
2.1 Information Gathering..............................................................................................10
2.2 System Feasibility.....................................................................................................10
2.2.1 Economic Feasibility..........................................................................................10
3. System Analysis..............................................................................................................11
3.1 ER Diagram..............................................................................................................12
s

3.2 Data Flow Diagram...................................................................................................12


3.3 Use case Diagram.....................................................................................................13
3.4 Class Diagram...........................................................................................................14
4. Design.............................................................................................................................14
4.1 Design Goals.............................................................................................................14
4.2Architectural Design..................................................................................................15
4.2.1Architectural Context Diagram...........................................................................16
4.2.2 Description of Architectural Design...................................................................16
4.3 Procedural/Modular Approach..................................................................................16
4.3.1 Shop Products Module.......................................................................................16
4.3.2 Product Description Module..............................................................................16
4.3.3 Cart Details Module...........................................................................................17
5. Implementation...............................................................................................................17
5.1 Database Design and Implementation......................................................................17
5.2 User Interface Design and Implementation..............................................................18
5.3 Technical Discussions...............................................................................................22
6. Testing.............................................................................................................................22
6.1 Unit Testing..............................................................................................................22
6.2 Integration Testing....................................................................................................23
6.3 Source Code..............................................................................................................28
7. Results & Challenges......................................................................................................42
7.1 Challenges.................................................................................................................42
8.Conclusions......................................................................................................................43
8.1 Limitations...............................................................................................................43
8.2 Scope for Future Work...........................................................................................43
8.3 References ..............................................................................................................44

TABLE OF FIGURES

3.1 ER DIAGRAM 12

3.2 DATA FLOW DIAGRAM 12

3.3 USE CASE DIAGRAM 13

3.4 CLASS DIAGRAM 14


4.1 ARCHITECTURE DIAGRAM 15
Online Shopping Management 2022-23

1. Introduction

1.1 Goal
Shopping has long been considered a recreational activity by many. Shopping
online is no exception. The goal of this application is to develop a web-based
interface for online retailers. The system would be easy to use and hence make
the shopping experience pleasant for the users. The goal of this application is

• To develop an easy-to-use web-based interface where users can search


for products, view a complete description of the products and order the
products.
• A search engine that provides an easy and convenient way to search
for products specific to their needs. The search engine would list a set
of products based on the search term and the user can further filter the
list based on various parameters.
• An AJAX enabled website with the latest AJAX controls giving
attractive and interactive look to the web pages and prevents the
annoying post backs.
• Drag and Drop feature which would allow the users to add a product
to or remove a product from the shopping cart by dragging the product
in to the shopping cart or out of the shopping cart.
• A user can view the complete specification of the product along with
various images and also view the customer reviews of the product.
They can also write their own reviews.

1.2 Need of the application

There are large numbers of commercial Online Shopping websites offering


large number of products tailored to meet the shopping interests of large
number of customers. These online marketplaces have thousands of products
listed under various categories.

Problem:

• The basic problems with the existing systems are the non-interactive
environment they provide to the users.
• The use of traditional user interfaces which make continuous post
backs to the server; each post back makes a call to the server, gets the
response and then refreshes the entire web form to display the result.

5th SEM DEPT OF CSE, MVJCE 7


Online Shopping Management 2022-23

This scenario adds an extra trade off causing a delay in displaying the
results
• A search engine that would display the results without allowing the
users to further filter the results based on various parameters.
• Use of traditional and non-user-friendly interfaces that are hard to use

Solution:

• The motive of this Online Shopping Web Application is to allow the user to
play with the search tool and create different combinatorial search criterion
to perform exhaustive search.
• Making the application AJAX enabled gets rid of these unnecessary delays
letting the user to perform exhaustive search. The users of this application
can easily feel the difference between the Ajax empowered user interfaces
vs. traditional user interfaces.
• Provide Interactive interface through which a user can interact with different
areas of application easily.
• A search engine that provides an easy and convenient way to search for
products specific to their needs. The search engine would list a set of
products based on the search term and the user can further filter the list
based on various parameters.
• Provide Drag and Drop feature thereby allowing the user to add products to
or remove products from the shopping cart by dragging the products in to or
out of the shopping cart.
.

1.3 Scope

• The current system can be extended to allow the users to create accounts
and save products in to wish list.
• The users could subscribe for price alerts which would enable them to
receive messages when price for products fall below a particular level.
• The current system is confined only to the shopping cart process. It can
be extended to have an easy to use check out process.
• Users can have multiple shipping and billing information saved. During
checkout they can use the drag and drop feature to select shipping and
billing information.

1.4 Platform Specifications – Deployment

1.4.1 Hardware Specification

Processor

5th SEM DEPT OF CSE, MVJCE 8


Online Shopping Management 2022-23

PIV RAM

250 MB

Minimum Space Required 100

MB Display 16-bit color

1.1.1 Software Specification

Operating Environment Win 2000/XP

Platform .Net Framework & IIS Visual Studio 2008

Database SQL Server 2005, PHP

2. System Requirement Analysis


2.1 Information Gathering
As the goal of the application is ease of use and to provide an interactive
interface, extensive research has been done to gain an insight into the needs and
behaviors of various users. The working of the application is made convenient and
easy to use for the end user. Dr Andresen, Associate Professor, CIS provided
regular feedback on the project.

Users can be classified into two types based on their knowledge of the
products that suit their needs. They can be classified as users who know about the
product that would satisfy their needs and users who have to figure out the product
that would satisfy their needs. Users who know about the product should be able to
find the product easily with the click of a button. Such users can search for the
product by using the product name as the search term. Users who have to figure out
the product that would satisfy their needs could use a search term to find a list of
products and then should be able to filter the results based on various parameters
like product type, manufacturer, price range, platform supported etc.

The users should be able to view the complete specification of the product and
various images at different Zoom levels. The user should be able to read the
customer reviews for the product and the ratings provided. They should be able to
write their own reviews. They should be able to print out the specifications for a
product or email the product page to a friend’s etc.

To increase the ease of use the user should be able to add a product to the shopping
cart by dragging a product and dropping it in the shopping cart. A user should able
to edit the contents of a shopping cart. They should be able to update the quantities
of the products added to the cart and remove the products from the cart. The user
should be able to remove the product from the shopping cart by dragging the

5th SEM DEPT OF CSE, MVJCE 9


Online Shopping Management 2022-23

product and dropping it outside the cart.

The application can be made interactive by pop up messages when a product has
been dropped in to the shopping cart or out of the shopping cart. The user can be
notified if the cursor enters a drop area and the object that could be dropped. Also,
users are impatient making it important to load pages soon.

Other than this, we did a lot of research on various other methods of building this
application which and was able to incorporate a few stronger features into the
application. The tools and controls used in the application are recommended ASP.NET
controls and AJAX Toolkit controls which improves the navigation and usability and
interactivity.

2.2 System Feasibility


The system feasibility can be divided into the following sections
2.2.1 Economic Feasibility

The project is economically feasible as the only cost involved is having a computer
with the minimum requirements mentioned earlier. For the users to access the
application, the only cost involved will be in getting access to the Internet

Technical feasibility

To deploy the application, the only technical aspects needed are mentioned below:

Operating Environment Win 2000/XP

Platform .Net Framework & IIS

Database SQL Server 2005

For Users:
Internet

Browser

Internet

Connection

Behavioural Feasibility

The application requires no special technical guidance and all the views available in

5th SEM DEPT OF CSE, MVJCE 10


Online Shopping Management 2022-23

the application are self-explanatory. The users are well guided with warning and
failure messages for all the actions taken.

3. System Analysis
After carefully analyzing the requirements and functionality of the web application,
we had two important diagrams by the end of the analysis phase. They are the ER
diagram and data flow diagram which were the basis for finding out entities and
relationships between them, the flow of information.
3.1 ER Diagram

Figure 3.1 Entity Relationship Diagram

3.2 Data Flow Diagram:

5th SEM DEPT OF CSE, MVJCE 11


Online Shopping Management 2022-23

3.3 Use Case Diagram:

5th SEM DEPT OF CSE, MVJCE 12


Online Shopping Management 2022-23

3.4 Class Diagram

4. Design
4.1 Design Goals

• The design of the web application involves the design of the forms for
listing the products, search for products, display the complete specification
for the product, and design a shopping cart that is easy to use.
• Design of an interactive application that enables the user to filter the
products based on different parameters.
• Design of an application that has features like drag and drop etc.
• Design of application that decreases data transfers between the client and the server.

5th SEM DEPT OF CSE, MVJCE 13


Online Shopping Management 2022-23

4.2 Architectural design

4.2.1 Architectural context design

5th SEM DEPT OF CSE, MVJCE 14


Online Shopping Management 2022-23

4.2.2 Description of Architectural design


In this context diagram, the information provided to and received from the ‘Online
Shopping’ is identified. The arrows represent the information received or generated by
the application. The closed boxes represent the set of sources and sinks of information.
In the system, we can observe that the user interacts with the application through a
graphical user interface. The inputs to the system are the Search and Filter criteria
provided by the user and a new review written by the user. Also, the output is in the
form of Repeater and grid views which present the users with list of Products
available. The users can view complete specification, view Images and reviews by
other users.

4.3 Procedural/Modular Approach

Following are all the modules designed for the Online Shopping System.

1.3.1 Shop Products Module

This module starts when the user visits the home page or when a user searches for a
product by entering a search term. This part of the application includes displaying
all the products that are available or the products that match the search term entered
by the user. The user can then filter these products based on various parameters like
manufacturer, product type, operating system supported or a price range. The user
browse through the products and each product would be displayed with an image
and its features like operating system supported, number of user licenses and if it is
a full version or an upgrade version. A user can add a product to the cart either by
dragging the product and dropping it in the cart or by clicking a button. The user
would be able to see the shopping cart summary.

1.3.2 Product Description Module

This module starts when a user visits the product description page. A user can view
various images of the product of different sizes. The use can see an enlarged image
in a popup window. The user can view the complete specification of the product
like its features, operating system supported, system requirements etc. A user can
also view the manufacturer information and also information about rebates,
exchange policies etc. A user can also view the reviews of the product. A user can
also write a review for the product.
1.3.3 Shopping Cart Module

5th SEM DEPT OF CSE, MVJCE 15


Online Shopping Management 2022-23

This module starts when the user views the shopping cart. All the products that have
been added to the shopping cart by the user are listed along with their price and the
quantity. The total price of all the products added to cart is displayed. A user can edit
the quantity of each product or remove the product from the shopping cart. A user can
remove the product from the cart by clicking a button or by dragging the product and
dropping it outside the cart. The total price changes accordingly when a user edits the
quantity of a product or when a product is removed from the cart.

2. Implementation

5.1 Database Design and Implementation

The design of the database was similar to the analysis phase. The database has been
developed using SQL Server 2005.

5.2 User Interface Design and Implementation


These are the main tables in the application and others are lookup and query tables. The
tables were derived from the ER-Diagram.

5th SEM DEPT OF CSE, MVJCE 16


Online Shopping Management 2022-23

The user interface of the application has been designed using Microsoft Visual Studio
2008. The main controls used in the design are Repeaters, Ajax Update panels, Ajax
toolkit controls like modal popup, textbox watermark and auto complete controls.

Figure: Shop Products Page

The user can see the list of products that are available. The user can search for
products by entering the search term into the search textbox provided on the top.
This text box is watermarked with the words “Search Terms” to let the user know
that this is the place to enter the search terms. The user can filter the products by
using the dropdown lists.

A user can drag and drop a product in the shopping cart. This is shown in the figure
5.3.
The cart is updated accordingly as shown in figure 5.4

5th SEM DEPT OF CSE, MVJCE 17


Online Shopping Management 2022-23

Figure: Showing Product Description

A user can view the complete description of the product by clicking on the product
link. This is shown in figure 5.5. The user can move the cursor on to the small images
to view the same image in the enlarged position. The user can click on the enlarged
picture to see a still bigger image in a pop-up window as shown Figure 5.6

5th SEM DEPT OF CSE, MVJCE 18


Online Shopping Management 2022-23

Figure: Cart description Page

Figure: Login Page


A user can also write a review by clicking on the write review tab panel as shown in figure
5.7. Similarly, a user can click on the tab panel customer reviews, specifications,
manufacturer Info etc. to see the respective information.

5th SEM DEPT OF CSE, MVJCE 19


Online Shopping Management 2022-23

Figure: Registration Page


The user can click on the Go to cart button to see the Items in the cart as shown in figure
5.8. The Summary is at the bottom of the page

Figure: Website Categories


5.3 Technical Discussion
The products can be filtered based on various parameters like Manufacturer, Product

5th SEM DEPT OF CSE, MVJCE 20


Online Shopping Management 2022-23

Type, Operating System supported etc. Initially it was decided to have the various list
items predefined. But with time new manufacturers and product types could be added.
So the values for the list of manufacturers and product types are loaded dynamically
by retrieving from the database. Also, it was decided initially to have a drop-down list
for price range and the user could select a price range from the ranges available. But
this would limit the user’s ability to filter the products based on different price ranges.
Instead providing two text fields so that the user can enter their price range would give
them more flexibility.
A product could be added to a shopping cart by dragging it and dropping it in the cart
area. Items in the cart could be removed by clicking a button. To maintain symmetry
and ease of use products could be removed from the cart by dragging the product out
of the cart.
A product can be added to the cart by dragging it and dropping it in the cart. Initially it
was decided that when a product is dropped in the cart the cart summary label could be
updated on the client side without any call to the server and later the session variables
(Shopping cart) could be updated. This would result in loss of information when the
user loses internet connection. So, when a product is dropped in the cart area a web
service is called and this service updates the session variables for the shopping cart
and the cart summary is recalculated and sent back to the client. This would improve
the reliability of the application.

3. Testing
Software testing is a process of running with intent of finding errors in software.
Software testing assures the quality of software and represents final review of other
phases of software like specification, design, code generation etc.

6.1 Unit Testing

Unit testing emphasizes the verification effort on the smallest unit of software
design i.e.; a software component or module. Unit testing is a dynamic method for
verification, where program is actually compiled and executed. Unit testing is
performed in parallel with the coding phase. Unit testing tests units or modules not
the whole software.

I have tested each view/module of the application individually. As the modules were
built up testing was carried out simultaneously, tracking out each and every kind of
input and checking the corresponding output until module is working correctly.

The functionality of the modules was also tested as separate units. Each of the three
modules was tested as separate units. In each module all the functionalities were
tested in isolation.
In the Shop Products Module when a product has been added to cart it has been
made sure that if the item already exists in the shopping cart, then the quantity is
increased by one else a new item is created in the shopping cart. Also, the state of
the system after a product has been dragged in to the shopping cart is same as the

5th SEM DEPT OF CSE, MVJCE 21


Online Shopping Management 2022-23

state of the system if it was added by clicking the add to cart button. Also, it has
been ensured that all the images of the products displayed in the shop products page
are drag gable and have the product property so that they can be dropped in the cart
area.

In the Product Description Module, it has been tested that all the images are
displayed properly. Users can add review and the as soon as a user adds a review it
is updated in the view customer review tab. It has been checked to see if the whole
page refreshes or a partial page update happens when a user writes a review.

In the Cart Details it has been tested that when a user edits a quantity or removes a
product from the cart, the total price is updated accordingly. It has been checked to
see if the whole page refreshes or a partial page update happens when a user edits
the cart.

Visual Studio 2008 has in built support for testing the application. The unit testing
can be done using visual studio 2008 without the need of any external application.
Various methods have been created for the purpose of unit testing. Test cases are
automatically generated for these methods. The tests run under the ASP.NET
context which means settings from Web.config file are automatically picked up
once the test case starts running.

Methods were written to retrieve all the manufacturers from the database, strings
that match a certain search term, products that match certain filter criteria, all
images that belong to a particular product etc. Unit test cases were automatically
generated for these methods and it can be seen in figure 6.1 that the tests have
passed.

6.2 Integration Testing

In integration testing a system consisting of different modules is tested for problems


arising from component interaction. Integration testing should be developed from
the system specification. Firstly, a minimum configuration must be integrated and
tested.

In my project I have done integration testing in a bottom-up fashion i.e. in this


project I have started construction and testing with atomic modules. After unit
testing the modules are integrated one by one and then tested the system for
problems arising from component interaction.

5th SEM DEPT OF CSE, MVJCE 22


Online Shopping Management 2022-23

Figure: Unit Testing in Visual Studio

Validation Testing

It provides final assurances that software meets all functional, behavioral &
performance requirement. Black box testing techniques are used.

There are three main components

- Validation test criteria (no. in place of no. & char in place of char)

- Configuration review (to ensure the completeness of s/w configuration.)

- Alpha & Beta testing-Alpha testing is done at developer’s site i.e. at home & Beta
testing once it is deployed. Since I have not deployed my application, I could not
do the Beta testing.

Test Cases- I have used a number of test cases for testing the product. There were
different cases for which different inputs were used to check whether desired output
is produced or not.

1. Addition of a new product to the cart should create a new row in the shopping cart.
2. Addition of an existing product to the cart has to update the quantity of the product.
3. Any changes to items in the cart have to update the summary correctly.
4. Because same page is inserting data into more than one table in the database
atomicity of the transaction is tested.
5. The state of the system after a product has been dragged in to the cart should
be same as the state of the system if the same product is added to the cart by

5th SEM DEPT OF CSE, MVJCE 23


Online Shopping Management 2022-23

clicking a button.

White Box Testing


In white box testing knowing the internal working of the product, tests can be
conducted to ensure that internal operations are performed according to specification
and all internal components have been adequately exercised. In white box testing
logical path through the software are tested by providing test cases that exercise
specific sets of conditions and loops.

Using white-box testing software developer can derive test case that

• Guarantee that all independent paths within a module have been exercised at least once.

• Exercise all logical decisions on their true and false side.

• Exercise all loops at their boundaries and within their operational bound.

• Exercise internal data structure to ensure their validity.

At every stage of project development, I have tested the logics of the program by
supplying the invalid inputs and generating the respective error messages. All the
loops and conditional statements are tested to the boundary conditions and validated
properly.

Performance Testing

Jakarta JMeter, a tool for testing applications was used to simulate the virtual users
(clients) and test the performance of the system. It can be used to test performance
both on static and dynamic resources (files, Servlets, Perl scripts, Java Objects, Data
Bases and Queries, FTP Servers and more). It can be used to simulate a heavy load
on a server, network or object to test its strength or to analyze overall performance
under different load types. It can be used to make a graphical analysis of
performance and test the server/script/object behavior under heavy concurrent load.

I have done performance testing to achieve an estimate of the peak and sustained
load the application. This has done with few pages like the Shop Products
(extensive Database access, business logic Intensive and more Images) and the Cart
Details (simple page). A few sample Screenshots of test results are shown below.
The tests have been conducted by running the application (server) and JMeter on
same machine. These test results do not include factors like network bandwidth etc
as the server is running on the same machine along with JMeter.

5th SEM DEPT OF CSE, MVJCE 24


Online Shopping Management 2022-23

Figure: Summary Reports for 100 users and 600 loop count for Cart
Details Page

Comparison of Constant Users vs. Constant Loop-Count

In the following test, the number of users has been kept constant and the Loop
Count has been increased.

Users Loop Count Ramp Up period(sec) Cart Details Page


Average Response(ms)
100 150 10 1060
100 300 10 1071
100 600 10 1021
100 1000 10 1033

The above data shows high response average which increases with the loop count.

Observations
Response Time increases rapidly with number of users but not very much when the
users are kept constant and only loop-count is increased. This is because, if the number
of users is kept constant and only the loop count is increased, the number of requests

5th SEM DEPT OF CSE, MVJCE 25


Online Shopping Management 2022-23

handled by the server per second remains constant for every execution of the loop
count and for every increase in the loop count. Hence the response time will not
increase drastically in this case. Whereas, if the users are increased and loop count is
kept constant, the requests handled by the server per second increases with increasing
users and hence the longer response time. Comparison of Response Times of the 2
Webpages

Local Testing:
Users Loop Count Ramp Up Cart Details Shop Products
period(sec) Page(ms) page(ms)
100 150 10 1060 28177
500 150 10 8075 105388
1000 150 10 11993 135273

Observations:
Response Time of a complex webpage with database and business logic functions is far more than a
simple webpage.

Factors affecting Response Time:


• Limited System Hardware Resources (CPU, RAM, Disks) and Configuration
• JMeter Tests and Application running on the same machine.

Remote Testing:

Users Loop Count Ramp Up Cart Details Shop Products


period(sec) Page(ms) page(ms)
100 150 10 792 8312
500 150 10 6392 99069
1000 150 10 20457 227056

Observations:
Response Time of a complex webpage with database and business logic functions is
far more than a simple webpage. The Response times of remote testing are better
than those of local testing when the number of users is comparatively lesser.

Factors affecting Response Time:


• Better Hardware Resources (CPU, RAM, Disks) and Configuration
for the Application as it was hosted on a web server.
• JMeter had better access to hardware resources as the application is not on
the same machine.

Using this above tabular data, I can say that the system is adequate to handle the
normal load and the users won’t lose their focus.

5th SEM DEPT OF CSE, MVJCE 26


Online Shopping Management 2022-23

6.3 Source Code:

?php
session_start();
include("../db.php");

include "sidenav.php";
include "topheader.php";
?>
<!-- End Navbar -->
<div class="content">
<div class="container-fluid">
<div class="panel-body">
<a>
<?php //success message
if(isset($_POST['success'])) {
$success = $_POST["success"];
echo "<h1 style='color:#0C0'>Your Product was added successfully
&nbsp;&nbsp; <span class='glyphicon glyphicon-ok'></h1></span>";
}
?></a>
</div>
<div class="col-md-14">
<div class="card ">
<div class="card-header card-header-primary">
<h4 class="card-title"> Users List</h4>
</div>
<div class="card-body">
<div class="table-responsive ps">
<table class="table table-hover tablesorter " id="">
<thead class=" text-primary">
<tr><th>ID</th><th>FirstName</th><th>LastName</th><th>Email
</th><th>Password</th><th>Contact</th><th>Address</th><th>City</th>
</tr></thead>
<tbody>
<?php
$result=mysqli_query($con,"select * from user_info")or die ("query
1 incorrect.....");

while(list($user_id,$first_name,$last_name,$email,$password,
$phone,$address1,$address2)=mysqli_fetch_array($result))
{
echo
"<tr><td>$user_id</td><td>$first_name</td><td>$last_name</td><td>$email</
td><td>$password</td><td>$phone</td><td>$address1</td><td>$address2</td>

5th SEM DEPT OF CSE, MVJCE 27


Online Shopping Management 2022-23

</tr>";
}
?>
</tbody>
</table>
<div class="ps_rail-x" style="left: 0px; bottom: 0px;"><div
class="psthumb-x" tabindex="0" style="left: 0px; width: 0px;"></div></div><div
class="psrail-y" style="top: 0px; right: 0px;"><div class="ps_thumb-y"
tabindex="0" style="top: 0px; height: 0px;"></div></div></div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="card ">
<div class="card-header card-header-primary">
<h4 class="card-title"> Categories List</h4>
</div>
<div class="card-body">
<div class="table-responsive ps">
<table class="table table-hover tablesorter " id="">
<thead class=" text-primary">
<tr><th>ID</th><th>Categories</th><th>Count</th>
</tr></thead>
<tbody>
<?php
$result=mysqli_query($con,"select * from categories")or die ("query
1 incorrect.....");
$i=1;
while(list($cat_id,$cat_title)=mysqli_fetch_array($result))
{
$sql = "SELECT COUNT(*) AS count_items FROM products
WHERE product_cat=$i";
$query = mysqli_query($con,$sql);
$row = mysqli_fetch_array($query);
$count=$row["count_items"];
$i++;
echo "<tr><td>$cat_id</td><td>$cat_title</td><td>$count</td>

</tr>";
}
?>
</tbody>
</table>
<div class="ps_rail-x" style="left: 0px; bottom: 0px;"><div
class="psthumb-x" tabindex="0" style="left: 0px; width: 0px;"></div></div><div

5th SEM DEPT OF CSE, MVJCE 28


Online Shopping Management 2022-23

class="psrail-y" style="top: 0px; right: 0px;"><div class="ps_thumb-y"


tabindex="0" style="top: 0px; height: 0px;"></div></div></div>
</div>
</div>
</div>
<div class="col-md-6">
<div class="card ">
<div class="card-header card-header-primary">
<h4 class="card-title">Brands List</h4>
</div>
<div class="card-body">
<div class="table-responsive ps">
<table class="table table-hover tablesorter " id="">
<thead class=" text-primary">
<tr><th>ID</th><th>Brands</th><th>Count</th>
</tr></thead>
<tbody>
<?php
$result=mysqli_query($con,"select * from brands")or die ("query 1
incorrect.....");
$i=1;
while(list($brand_id,$brand_title)=mysqli_fetch_array($result))
{

$sql = "SELECT COUNT(*) AS count_items FROM products


WHERE product_brand=$i";
$query = mysqli_query($con,$sql);
$row = mysqli_fetch_array($query);
$count=$row["count_items"];
$i++;
echo
"<tr><td>$brand_id</td><td>$brand_title</td><td>$count</td>

</tr>";
}
?>
</tbody>
</table>
<div class="ps_rail-x" style="left: 0px; bottom: 0px;"><div
class="psthumb-x" tabindex="0" style="left: 0px; width: 0px;"></div></div><div
class="psrail-y" style="top: 0px; right: 0px;"><div class="ps_thumb-y"
tabindex="0" style="top: 0px; height: 0px;"></div></div></div>
</div>
</div>
</div>
</div>
<div class="col-md-5">

5th SEM DEPT OF CSE, MVJCE 29


Online Shopping Management 2022-23

<div class="card ">


<div class="card-header card-header-primary">
<h4 class="card-title">Subscribers</h4>
</div>
<div class="card-body">
<div class="table-responsive ps">
<table class="table table-hover tablesorter " id="">
<thead class=" text-primary">
<tr><th>ID</th><th>email</th>
</tr></thead>
<tbody>
<?php
$result=mysqli_query($con,"select * from email_info")or die
("query 1 incorrect.....");

while(list($brand_id,$brand_title)=mysqli_fetch_array($result))
{
echo "<tr><td>$brand_id</td><td>$brand_title</td>

</tr>";
}
?>
</tbody>
</table>
<div class="ps_rail-x" style="left: 0px; bottom: 0px;"><div
class="psthumb-x" tabindex="0" style="left: 0px; width: 0px;"></div></div><div
class="psrail-y" style="top: 0px; right: 0px;"><div class="ps_thumb-y"
tabindex="0" style="top: 0px; height: 0px;"></div></div></div>
</div>
</div>
</div>

</div>
</div>
<?php
include "footer.php";
?>

Database:
<?php

$servername = "localhost";
$username = "root";

5th SEM DEPT OF CSE, MVJCE 30


Online Shopping Management 2022-23

$password = "";
$db = "onlineshop";

// Create connection
$con = mysqli_connect($servername, $username, $password,$db);

// Check connection
if (!$con) {
die("Connection failed: " . mysqli_connect_error());
}
?>

CREATE TABLE `admin_info` (

`admin_id` int(10) NOT NULL,

`admin_name` varchar(100) NOT NULL,

`admin_email` varchar(300) NOT NULL,

`admin_password` varchar(300) NOT NULL

) ENGINE=InnoDB DEFAULT CHARSET=latin1;

INSERT INTO `admin_info` (`admin_id`, `admin_name`, `admin_email`, `admin_password`) VALUES

(1, 'admin', 'admin@gmail.com', 'admin@123');

CREATE TABLE `brands` (

`brand_id` int(100) NOT NULL,

`brand_title` text NOT NULL

) ENGINE=InnoDB DEFAULT CHARSET=latin1;

INSERT INTO `brands` (`brand_id`, `brand_title`) VALUES

(1, 'HP'),

(2, 'Samsung'),

(3, 'Apple'),

5th SEM DEPT OF CSE, MVJCE 31


Online Shopping Management 2022-23

(4, 'motorolla'),

(5, 'LG'),

(6, 'Cloth Brand');

CREATE TABLE `cart` (

`id` int(10) NOT NULL,

`p_id` int(10) NOT NULL,

`ip_add` varchar(250) NOT NULL,

`user_id` int(10) DEFAULT NULL,

`qty` int(10) NOT NULL

) ENGINE=InnoDB DEFAULT CHARSET=latin1;

INSERT INTO `cart` (`id`, `p_id`, `ip_add`, `user_id`, `qty`) VALUES

(6, 26, '::1', 4, 1),

(9, 10, '::1', 7, 1),

(10, 11, '::1', 7, 1),

(11, 45, '::1', 7, 1),

(44, 5, '::1', 3, 0),

(46, 2, '::1', 3, 0),

(48, 72, '::1', 3, 0),

(49, 60, '::1', 8, 1),

(50, 61, '::1', 8, 1),

(51, 1, '::1', 8, 1),

(52, 5, '::1', 9, 1),

(53, 2, '::1', 14, 1),

(54, 3, '::1', 14, 1),

(55, 5, '::1', 14, 1),

(56, 1, '::1', 9, 1),

(57, 2, ':0:0:0:1', 9, 1),

(71, 61, '127.0.0.1', -1, 1);

CREATE TABLE `categories` (

`cat_id` int(100) NOT NULL,

5th SEM DEPT OF CSE, MVJCE 32


Online Shopping Management 2022-23

`cat_title` text NOT NULL

) ENGINE=InnoDB DEFAULT CHARSET=latin1;

INSERT INTO `categories` (`cat_id`, `cat_title`) VALUES

(1, 'Electronics'),

(2, 'Ladies Wears'),

(3, 'Mens Wear'),

(4, 'Kids Wear'),

(5, 'Furnitures'),

(6, 'Home Appliances'),

(7, 'Electronics Gadgets');

CREATE TABLE `email_info` (

`email_id` int(100) NOT NULL,

`email` text NOT NULL

) ENGINE=InnoDB DEFAULT CHARSET=latin1;

INSERT INTO `email_info` (`email_id`, `email`) VALUES

(3, 'admin@gmail.com'),

(4, 'naveen123@gmail.com'),

(5, 'ganesh123@gmail.com');

CREATE TABLE `logs` (

`id` int(11) NOT NULL,

`user_id` varchar(50) NOT NULL,

`action` varchar(50) NOT NULL,

`date` datetime NOT NULL

) ENGINE=InnoDB DEFAULT CHARSET=latin1;

5th SEM DEPT OF CSE, MVJCE 33


Online Shopping Management 2022-23

CREATE TABLE `orders` (

`order_id` int(11) NOT NULL,

`user_id` int(11) NOT NULL,

`product_id` int(11) NOT NULL,

`qty` int(11) NOT NULL,

`trx_id` varchar(255) NOT NULL,

`p_status` varchar(20) NOT NULL

) ENGINE=InnoDB DEFAULT CHARSET=latin1;

INSERT INTO `orders` (`order_id`, `user_id`, `product_id`, `qty`, `trx_id`, `p_status`) VALUES

(1, 12, 7, 1, '07M47684BS5725041', 'Completed'),

(2, 14, 2, 1, '07M47684BS5725041', 'Completed');

CREATE TABLE `orders_info` (

`order_id` int(10) NOT NULL,

`user_id` int(11) NOT NULL,

`f_name` varchar(255) NOT NULL,

`email` varchar(255) NOT NULL,

`address` varchar(255) NOT NULL,

`city` varchar(255) NOT NULL,

`state` varchar(255) NOT NULL,

`zip` int(10) NOT NULL,

`cardname` varchar(255) NOT NULL,

`cardnumber` varchar(20) NOT NULL,

`expdate` varchar(255) NOT NULL,

`prod_count` int(15) DEFAULT NULL,

`total_amt` int(15) DEFAULT NULL,

`cvv` int(5) NOT NULL

) ENGINE=InnoDB DEFAULT CHARSET=latin1;

5th SEM DEPT OF CSE, MVJCE 34


Online Shopping Management 2022-23

INSERT INTO `orders_info` (`order_id`, `user_id`, `f_name`, `email`, `address`, `city`, `state`, `zip`,
`cardname`, `cardnumber`, `expdate`, `prod_count`, `total_amt`, `cvv`) VALUES

(1, 12, 'Ganesh', 'ganesh123@gmail.com', 'Bangalore, Devanahalli, Karnataka', 'Bangalore', 'Karnataka',


560074, 'pokjhgfcxc', '4321 2345 6788 7654', '12/90', 3, 77000, 1234);

CREATE TABLE `order_products` (

`order_pro_id` int(10) NOT NULL,

`order_id` int(11) NOT NULL,

`product_id` int(11) NOT NULL,

`qty` int(15) DEFAULT NULL,

`amt` int(15) DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=latin1;

INSERT INTO `order_products` (`order_pro_id`, `order_id`, `product_id`, `qty`, `amt`) VALUES

(73, 1, 1, 1, 5000),

(74, 1, 4, 2, 64000),

(75, 1, 8, 1, 40000);

CREATE TABLE `products` (

`product_id` int(100) NOT NULL,

`product_cat` int(100) NOT NULL,

`product_brand` int(100) NOT NULL,

`product_title` varchar(255) NOT NULL,

`product_price` int(100) NOT NULL,

`product_desc` text NOT NULL,

`product_image` text NOT NULL,

`product_keywords` text NOT NULL

) ENGINE=InnoDB DEFAULT CHARSET=latin1;

5th SEM DEPT OF CSE, MVJCE 35


Online Shopping Management 2022-23

INSERT INTO `products` (`product_id`, `product_cat`, `product_brand`, `product_title`, `product_price`,


`product_desc`, `product_image`, `product_keywords`) VALUES

(1, 1, 2, 'Samsung galaxy s7 edge', 5000, 'Samsung galaxy s7 edge', 'product07.png', 'samsung mobile
electronics'),

(2, 1, 3, 'iPhone 5s', 25000, 'iphone 5s', 'http___pluspng.com_img-png_iphone-hd-png-iphone-apple-png-


file-550.png', 'mobile iphone apple'),

(3, 1, 3, 'iPad air 2', 30000, 'ipad apple brand', 'da4371ffa192a115f922b1c0dff88193.png', 'apple ipad tablet'),

(4, 1, 3, 'iPhone 6s', 32000, 'Apple iPhone ', 'http___pluspng.com_img-png_iphone-6s-png-iphone-6s-gold-


64gb-1000.png', 'iphone apple mobile'),

(5, 1, 2, 'iPad 2', 10000, 'samsung ipad', 'iPad-air.png', 'ipad tablet samsung'),

(6, 1, 1, 'samsung Laptop r series', 35000, 'samsung Black combination Laptop', 'laptop_PNG5939.png',
'samsung laptop '),

(7, 1, 1, 'Laptop Pavillion', 50000, 'Laptop Hp Pavillion', 'laptop_PNG5930.png', 'Laptop Hp Pavillion'),

(8, 1, 4, 'Sony', 40000, 'Sony Mobile', '530201353846AM_635_sony_xperia_z.png', 'sony mobile'),

(9, 1, 3, 'iPhone New', 12000, 'iphone', 'iphone-hd-png-iphone-apple-png-file-550.png', 'iphone apple


mobile'),

(10, 2, 6, 'Red Ladies dress', 1000, 'red dress for girls', 'red dress.jpg', 'red dress '),

(11, 2, 6, 'Blue Heave dress', 1200, 'Blue dress', 'images.jpg', 'blue dress cloths'),

(12, 2, 6, 'Ladies Casual Cloths', 1500, 'ladies casual summer two colors pleted', '7475-ladies-casual-dresses-
summer-two-colors-pleated.jpg', 'girl dress cloths casual'),

(13, 2, 6, 'SpringAutumnDress', 1200, 'girls dress', 'Spring-Autumn-Winter-Young-Ladies-Casual-Wool-


Dress-Women-s-One-Piece-Dresse-Dating-Clothes-Medium.jpg_640x640.jpg', 'girl dress'),

(14, 2, 6, 'Casual Dress', 1400, 'girl dress', 'download.jpg', 'ladies cloths girl'),

(15, 2, 6, 'Formal Look', 1500, 'girl dress', 'shutterstock_203611819.jpg', 'ladies wears dress girl'),

(16, 3, 6, 'Sweter for men', 600, '2012-Winter-Sweater-for-Men-for-better-outlook', '2012-Winter-Sweater-


for-Men-for-better-outlook.jpg', 'black sweter cloth winter'),

(17, 3, 6, 'Gents formal', 1000, 'gents formal look', 'gents-formal-250x250.jpg', 'gents wear cloths'),

(19, 3, 6, 'Formal Coat', 3000, 'ad', 'images (1).jpg', 'coat blazer gents'),

(20, 3, 6, 'Mens Sweeter', 1600, 'jg', 'Winter-fashion-men-burst-sweater.png', 'sweeter gents '),

(21, 3, 6, 'T shirt', 800, 'ssds', 'IN-Mens-Apparel-Voodoo-Tiles-09.V333872612.jpg', 'formal t shirt black'),

(22, 4, 6, 'Yellow T shirt ', 1300, 'yello t shirt with pant', '1.0x0.jpg', 'kids yellow t shirt'),

(23, 4, 6, 'Girls cloths', 1900, 'sadsf', 'GirlsClothing_Widgets.jpg', 'formal kids wear dress'),

(24, 4, 6, 'Blue T shirt', 700, 'g', 'images.jpg', 'kids dress'),

(25, 4, 6, 'Yellow girls dress', 750, 'as', 'images (3).jpg', 'yellow kids dress'),

(27, 4, 6, 'Formal look', 690, 'sd', 'image28.jpg', 'formal kids dress'),

5th SEM DEPT OF CSE, MVJCE 36


Online Shopping Management 2022-23

(32, 5, 0, 'Book Shelf', 2500, 'book shelf', 'furniture-book-shelf-250x250.jpg', 'book shelf furniture'),

(33, 6, 2, 'Refrigerator', 35000, 'Refrigerator', 'CT_WM_BTS-BTC-AppliancesHome_20150723.jpg',


'refrigerator samsung'),

(34, 6, 4, 'Emergency Light', 1000, 'Emergency Light', 'emergency light.JPG', 'emergency light'),

(35, 6, 0, 'Vaccum Cleaner', 6000, 'Vaccum Cleaner', 'images (2).jpg', 'Vaccum Cleaner'),

(36, 6, 5, 'Iron', 1500, 'gj', 'iron.JPG', 'iron'),

(37, 6, 5, 'LED TV', 20000, 'LED TV', 'images (4).jpg', 'led tv lg'),

(38, 6, 4, 'Microwave Oven', 3500, 'Microwave Oven', 'images.jpg', 'Microwave Oven'),

(39, 6, 5, 'Mixer Grinder', 2500, 'Mixer Grinder', 'singer-mixer-grinder-mg-46-


medium_4bfa018096c25dec7ba0af40662856ef.jpg', 'Mixer Grinder'),

(40, 2, 6, 'Formal girls dress', 3000, 'Formal girls dress', 'girl-walking.jpg', 'ladies'),

(45, 1, 2, 'Samsung Galaxy Note 3', 10000, '0', 'samsung_galaxy_note3_note3neo.JPG', 'samsung galaxy
Note 3 neo'),

(46, 1, 2, 'Samsung Galaxy Note 3', 10000, '', 'samsung_galaxy_note3_note3neo.JPG', 'samsung galxaxy note
3 neo'),

(47, 4, 6, 'Laptop', 650, 'nbk', 'product01.png', 'Dell Laptop'),

(48, 1, 7, 'Headphones', 250, 'Headphones', 'product05.png', 'Headphones Sony'),

(49, 1, 7, 'Headphones', 250, 'Headphones', 'product05.png', 'Headphones Sony'),

(50, 3, 6, 'boys shirts', 350, 'shirts', 'pm1.JPG', 'suit boys shirts'),

(51, 3, 6, 'boys shirts', 270, 'shirts', 'pm2.JPG', 'suit boys shirts'),

(52, 3, 6, 'boys shirts', 453, 'shirts', 'pm3.JPG', 'suit boys shirts'),

(53, 3, 6, 'boys shirts', 220, 'shirts', 'ms1.JPG', 'suit boys shirts'),

(54, 3, 6, 'boys shirts', 290, 'shirts', 'ms2.JPG', 'suit boys shirts'),

(55, 3, 6, 'boys shirts', 259, 'shirts', 'ms3.JPG', 'suit boys shirts'),

(56, 3, 6, 'boys shirts', 299, 'shirts', 'pm7.JPG', 'suit boys shirts'),

(57, 3, 6, 'boys shirts', 260, 'shirts', 'i3.JPG', 'suit boys shirts'),

(58, 3, 6, 'boys shirts', 350, 'shirts', 'pm9.JPG', 'suit boys shirts'),

(59, 3, 6, 'boys shirts', 855, 'shirts', 'a2.JPG', 'suit boys shirts'),

(60, 3, 6, 'boys shirts', 150, 'shirts', 'pm11.JPG', 'suit boys shirts'),

(61, 3, 6, 'boys shirts', 215, 'shirts', 'pm12.JPG', 'suit boys shirts'),

(62, 3, 6, 'boys shirts', 299, 'shirts', 'pm13.JPG', 'suit boys shirts'),

(63, 3, 6, 'boys Jeans Pant', 550, 'Pants', 'pt1.JPG', 'boys Jeans Pant'),

(64, 3, 6, 'boys Jeans Pant', 460, 'pants', 'pt2.JPG', 'boys Jeans Pant'),

5th SEM DEPT OF CSE, MVJCE 37


Online Shopping Management 2022-23

(65, 3, 6, 'boys Jeans Pant', 470, 'pants', 'pt3.JPG', 'boys Jeans Pant'),

(66, 3, 6, 'boys Jeans Pant', 480, 'pants', 'pt4.JPG', 'boys Jeans Pant'),

(67, 3, 6, 'boys Jeans Pant', 360, 'pants', 'pt5.JPG', 'boys Jeans Pant'),

(68, 3, 6, 'boys Jeans Pant', 550, 'pants', 'pt6.JPG', 'boys Jeans Pant'),

(69, 3, 6, 'boys Jeans Pant', 390, 'pants', 'pt7.JPG', 'boys Jeans Pant'),

(70, 3, 6, 'boys Jeans Pant', 399, 'pants', 'pt8.JPG', 'boys Jeans Pant'),

(71, 1, 2, 'Samsung galaxy s7', 5000, 'Samsung galaxy s7', 'product07.png', 'samsung mobile electronics'),

(72, 7, 2, 'sony Headphones', 3500, 'sony Headphones', 'product02.png', 'sony Headphones electronics
gadgets'),

(73, 7, 2, 'samsung Headphones', 3500, 'samsung Headphones', 'product05.png', 'samsung Headphones


electronics gadgets'),

(74, 1, 1, 'HP i5 laptop', 5500, 'HP i5 laptop', 'product01.png', 'HP i5 laptop electronics'),

(75, 1, 1, 'HP i7 laptop 8gb ram', 5500, 'HP i7 laptop 8gb ram', 'product03.png', 'HP i7 laptop 8gb ram
electronics'),

(76, 1, 5, 'sony note 6gb ram', 4500, 'sony note 6gb ram', 'product04.png', 'sony note 6gb ram mobile
electronics'),

(77, 1, 4, 'MSV laptop 16gb ram NVIDEA Graphics', 5499, 'MSV laptop 16gb ram', 'product06.png', 'MSV
laptop 16gb ram NVIDEA Graphics electronics'),

(78, 1, 5, 'dell laptop 8gb ram intel integerated Graphics', 4579, 'dell laptop 8gb ram intel integerated
Graphics', 'product08.png', 'dell laptop 8gb ram intel integerated Graphics electronics'),

(79, 7, 2, 'camera with 3D pixels', 2569, 'camera with 3D pixels', 'product09.png', 'camera with 3D pixels
camera electronics gadgets'),
(80, 1, 1, 'ytrfdkjsd', 12343, 'sdfhgh', '1542455446_thythtf .jpeg', 'dfgh'),

(81, 4, 6, 'Kids blue dress', 300, 'blue dress', '1543993724_pg4.jpg', 'kids blue dress');

CREATE TABLE `user_info` (

`user_id` int(10) NOT NULL,

`first_name` varchar(100) NOT NULL,

`last_name` varchar(100) NOT NULL,

`email` varchar(300) NOT NULL,

`password` varchar(300) NOT NULL,

`mobile` varchar(10) NOT NULL,

`address1` varchar(300) NOT NULL,

`address2` varchar(11) NOT NULL

) ENGINE=InnoDB DEFAULT CHARSET=latin1;

5th SEM DEPT OF CSE, MVJCE 38


Online Shopping Management 2022-23

INSERT INTO `user_info` (`user_id`, `first_name`, `last_name`, `email`, `password`, `mobile`, `address1`,
`address2`) VALUES

(12, 'Ganesh', 'G', 'ganesh123@gmail.com', 'ganesh@123', '9448121558', '123456789', 'sdcjns,djc'),

(15, 'hemu', 'ajhgdg', 'puneethreddy951@gmail.com', '346778', '536487276', ',mdnbca', 'asdmhmhvbv'),

(16, 'venky', 'vs', 'venkey@gmail.com', '1234534', '9877654334', 'snhdgvajfehyfygv', 'asdjbhfkeur'),

(19, 'abhishek', 'bs', 'abhishekbs@gmail.com', 'asdcsdcc', '9871236534', 'bangalore', 'hassan'),

(21, 'prajval', 'mcta', 'prajvalmcta@gmail.com', '1234545662', '202-555-01', 'bangalore', 'kumbalagodu'),

(22, 'puneeth', 'v', 'hemu@gmail.com', '1234534', '9877654334', 'snhdgvajfehyfygv', 'asdjbhfkeur'),

(23, 'hemanth', 'reddy', 'hemanth@gmail.com', 'Puneeth@123', '9876543234', 'Bangalore', 'Kumbalagodu'),

(24, 'newuser', 'user', 'newuser@gmail.com', 'puneeth@123', '9535688928', 'Bangalore', 'Kumbalagodu'),

(25, 'otheruser', 'user', 'otheruser@gmail.com', 'puneeth@123', '9535688928', 'Bangalore', 'Kumbalagodu');

DELIMITER $$

CREATE TRIGGER `after_user_info_insert` AFTER INSERT ON `user_info` FOR EACH ROW BEGIN

INSERT INTO user_info_backup


VALUES(new.user_id,new.first_name,new.last_name,new.email,new.password,new.mobile,new.address1,n
ew.address2);

END

$$

DELIMITER ;

CREATE TABLE `user_info_backup` (

`user_id` int(10) NOT NULL,

`first_name` varchar(100) NOT NULL,

`last_name` varchar(100) NOT NULL,

`email` varchar(300) NOT NULL,

`password` varchar(300) NOT NULL,

`mobile` varchar(10) NOT NULL,

`address1` varchar(300) NOT NULL,

`address2` varchar(11) NOT NULL

) ENGINE=InnoDB DEFAULT CHARSET=latin1;

INSERT INTO `user_info_backup` (`user_id`, `first_name`, `last_name`, `email`, `password`, `mobile`,


`address1`, `address2`) VALUES

5th SEM DEPT OF CSE, MVJCE 39


Online Shopping Management 2022-23

(12, 'puneeth', 'Reddy', 'puneethreddy951@gmail.com', '123456789', '9448121558', '123456789',


'sdcjns,djc'),

(14, 'hemanthu', 'reddy', 'hemanthreddy951@gmail.com', '123456788', '6526436723', 's,dc wfjvnvn', 'b


efhfhvvbr'),

(15, 'hemu', 'ajhgdg', 'keeru@gmail.com', '346778', '536487276', ',mdnbca', 'asdmhmhvbv'),

(16, 'venky', 'vs', 'venkey@gmail.com', '1234534', '9877654334', 'snhdgvajfehyfygv', 'asdjbhfkeur'),

(19, 'abhishek', 'bs', 'abhishekbs@gmail.com', 'asdcsdcc', '9871236534', 'bangalore', 'hassan'),

(20, 'pramod', 'vh', 'pramod@gmail.com', '124335353', '9767645653', 'ksbdfcdf', 'sjrgrevgsib'),

(21, 'prajval', 'mcta', 'prajvalmcta@gmail.com', '1234545662', '202-555-01', 'bangalore', 'kumbalagodu'),

(22, 'puneeth', 'v', 'hemu@gmail.com', '1234534', '9877654334', 'snhdgvajfehyfygv', 'asdjbhfkeur'),

(23, 'hemanth', 'reddy', 'hemanth@gmail.com', 'Puneeth@123', '9876543234', 'Bangalore', 'Kumbalagodu'),

(24, 'newuser', 'user', 'newuser@gmail.com', 'puneeth@123', '9535688928', 'Bangalore', 'Kumbalagodu'),

(25, 'otheruser', 'user', 'otheruser@gmail.com', 'puneeth@123', '9535688928', 'Bangalore', 'Kumbalagodu')

7. Results & Challenges

The application can be used for any Ecommerce application. It is easy to use,
since it uses the GUI provided in the user dialog. User friendly screens are
provided. The application is easy to use and interactive making online shopping
a recreational activity for users. It has been thoroughly tested and implemented.

7.1 Challenges
• Compatibility with browsers like Mozilla Firefox, Internet explorer etc
• Using a layered approach in developing the application which would
make the application maintainable.
• Learning new technologies like using JavaScript for drag and drop behavior
and Ajax toolkit controls with little guidance.

The overall idea of doing this project is to get a real time experience. Learn new
technologies.

8. Conclusions

5th SEM DEPT OF CSE, MVJCE 40


Online Shopping Management 2022-23

The ‘Online Shopping’ is designed to provide a web-based application


that would make searching, viewing and selection of a product easier.
The search engine provides an easy and convenient way to search for
products where a user can Search for a product interactively and the
search engine would refine the products available based on the user’s
input. The user can then view the complete specification of each product.
They can also view the product reviews and also write their own reviews.
Use of Ajax components would make the application interactive and
prevents annoying post backs. Its drag and drop feature would make it
easy to use.

8.1 Limitations

This application does not have a built-in check out process. An external
checkout package has to be integrated in to this application. Also, users cannot save
the shopping carts so that they can access later i.e., they cannot create wish lists
which they can access later. This application does not have features by which user
can set price ranges for products and receive alerts once the price reaches the
particular range
.
8.2 Scope for Future Work

The following things can be done in future.

• The current system can be extended to allow the users to create accounts
and save products in to wish list.
• The users could subscribe for price alerts which would enable them to
receive messages when price for products fall below a particular level.
• The current system is confined only to the shopping cart process. It can
be extended to have an easy to use check out process.
• Users can have multiple shipping and billing information saved. During
checkout they can use the drag and drop feature to select shipping and
billing information.

5th SEM DEPT OF CSE, MVJCE 41


Online Shopping Management 2022-23

References

• All about Microsoft controls in


http://www.msdn.microsoft.com/
• Wikipedia for various diagrams & testing
methods http://www.wikipedia.org/
• Cool text for Images and Buttons http://cooltext.com/
• K-State Research Exchange for samples in report
writing http://krex.k-state.edu/dspace/handle/2097/959
• Smart Draw for drawing all the Diagrams used in this
report. http://www.smartdraw.com/
• Sample Ecommerce Application http://www.NewEgg.com
• Ajax Toolkit controls http://asp.net/ajax
• Woodruff, R.B. Customer value: the next source for competitive advantage. Journal of the
academy of marketing science, 25(2), p.139, 1997. [35]. Zhang, X., and Prybutok, V.R. A
consumer perspective of e-service quality.
• IEEE transactions on Engineering Management, 52(4), pp.461-477, 2005. Zhou, L., Dai, L.,
and Zhang, D. Online shopping acceptance model-A critical survey of consumer factors in
online shopping. Journal of Electronic commerce research, 8(1), 2007.
• Ismail Raisal and S. S. Rajest Ardhariksa Zukhruf Kurniullah, Anjali Kulkarni, Nordiana Ahmad
Nordin, Roy Setiawan, Girish Bagale, Rajesh Deb Barman. Positive Outcomes of Human
Resources Engagement and Impact on Motivation. Productivity Management, Vol.25, No.1S,
pp. 638-667, 2020.
• Girish Bagale and S. S. Rajest Roy Setiawan, Vijay D. Kulkarni, Mahmoud Al-Odeh, Nordiana
Ahmad Nordin, S.Sam Santhose, Ismail Raisal. The Impact of Corporate Reputation on
Organizational Performance. Productivity Management, Vol.25, No.1S, pp. 668-681, 2020.

5th SEM DEPT OF CSE, MVJCE 42

You might also like