Escolar Documentos
Profissional Documentos
Cultura Documentos
PROJECT REPORT ON
SHOPPING CART
Information Systems and Security
Session 2010 – 2011
13.Bibliography…………………………………………………………....34
3
INTRODUCTION
The project aims at creating an online shop “MYSHOP”. It basically provides shopping facility to its
customers who can register themselves. After registering they can login and purchase their
requirements. The customers are provided with the product list that contains the description,
availability and price. The items selected by each customer are piled into separate shopping carts.
Each customer can view their shopping expenses of all the products in their cart at any instant. The
payment can be made either by cash on delivery or through their credit accounts.
After you browse around you will see that the basic flow of our shop is :
• customers browse the pages, clicking their way between product list
• Payment mode:
o Cash on delivery
o Credit card
• Product details:
4
The shop includes the images of all the products with their descriptions.
• Case Statement
In this case, we will be designing a simple online shopping portal .The site will provide a
soothing shopping experience for customers. The system will allow more than one
categories and different brands under the segment. The case will trace the following
sequence.
• Scenario
A customer visits the online shopping portal. A customer may buy item or just visit the page
and logout. The customer can select a segment, then a category, and brand to get the
different products in the desired brand.
The customer can select the product for purchasing. The process can be repeated formore
items. Once the customer finishes selecting the product/sthe cart can be viewed , If the
customer wants to edit the final cart it can be done here.
For final payment the customer has to login the portal, ifthe customer is visiting for the 1st
time he must register with the site, else the customer must use the login page to proceed.
Final cart is submitted for payment and card details and address(where shipment has to
bemade) are be confirmedby the customer .Customer is confirmed with a shipment
Idanddelivery of goods within 15 days.
• Assumptions
• The currency followed is Rs as the site provides for only Indian customer base.
• There are different segments, categories, brands where a brand can fall under more
than one category.
• The shipment of the goods is not covered under the scope of the case
• Actors
• Customer
• Administrator.
• Functionality
1. Portal
5
• Allows the customer to view the different categories and further to different
products within the brandseg.
• Allows the customer to shoponline saying time and cost of customer.
• The portal provides a bill and an shipmentId which can be used to track the
delivery status of the goods purchased by the customer .
.
2. Customer
• Customers when enter the site and view the various products in different
category.
• Authentication ofthe customer is done for the payment of the shopping
done
• Customer can browses through the products available in the shop, can select
some of them and put into the shopping cart.
• Customer can anytime change the items in the cart either by adding new items or by
removing existing items. Customer proceeds towards the payment counter. Finalize
product list of items he finally wish to buy and make the final payment.
3. Administrator
• Updatesthe details of the different category ,segments etc
• Verifies the customer card details and records the details for shipment of goods
6
Back End:
MySQL:
MySQL is a relational database management system (RDBMS) that runs as a server providing multi-
user access to a number of databases. It is named after developer Michael Widenius' daughter, My.
The SQL phrase stands for Structured Query Language.The MySQL development project has made
its source code available under the terms of the GNU General Public License, as well as under a
variety of proprietary agreements. MySQL was owned and sponsored by a single for-profit firm,
the Swedish company MySQL AB, now owned by Oracle Corporation.
Free-software projects that require a full-featured database management system often use MySQL. For
commercial use, several paid editions are available, and offer additional functionality. Some free
software project examples: Joomla, WordPress, MyBB, phpBB, Drupal and other software built on
the LAMP software stack. MySQL is also used in many high-profile, large-scale World Wide
Web products, including Wikipedia, Google (though not for searches) and Facebook.
Front End
EasyPhp :
Launched in 1999, EasyPHP was the first WAMP software bundle available. EasyPHP installs web
server services onto the Windows computer and allows quick-and-easy development
of PHP and MySQL on local host (also known as 127.0.0.1). The package includes an Apache server,
a MySQL database, and the PHP extension. The package is deployable either on a PC or a USB drive.
The configuration is done automatically by the application with no interaction from the user. EasyPHP
is extended with modules (WordPress, Spip, Prestashop, Drupal, Joomla.). Modules are installed
automatically in the "modules" folder of
EasyPHP.EasyPHPversion :
EasyPHP 5.3.5.0 : PHP 5.3.5, Apache 2.2.17, MySQL 5.1.54, phpMyAdmin 3.3.9 and Xdebug 2.1.0
7
ER-DIAGRAMS:
pd_i
d Pd_nam
cust_i Cust_nam e
d e
Customer
Product
buys
Cust_add
r Passwor Price
d
CUSTOMER-PRODUCT RELATIONSHIP
pd_id
pd_nam Cust_id
pd_id e
Products
Add_t Shopping cart
o
qt
Price y
PRODUCT-SHOPPING_CART RELATIONSHIP
8
Pd_i Cust_i
d d
Shopping cart
qty
pd_id
cust_i Cust_na Cust_i
d me d
Customer Transacti
on_occur transaction
s
Cust_ad amou
dr passwo nt
rd date
SEQUENCE DIAGRAM:
11
12
13
14
15
ACTIVITY DIAGRAM:
16
DATABASE DESIGN:
The database consists of four tables:
• Customer
• Products
• Shopping_cart
Customer:
This table consists of the records of all the customers. They contain their details such as customer
id(integer), name, address, contact details and password. Here each customer owns a unique
identification number i.e. cust_id that acts as the primary key of the table.On registration, a new record
is inserted to it , whereas any other changes can be made by the administrator only.
Products:
This table contains the details of the products available in the shop. It consists of a short description
about the product and other details like price and availability. New products maybe added and deleted
by the administrator. The table comprises of the following fields- product id(integer), product name,
price, quantity.
20
Shopping_cart:
The shopping cart holds the details of all the items selected by the customer from the product list along
with the quantity to be purchased. It consists of the product id, customer id and the quantity. It is
automatically updated every time the customer selects any product.
21
SOFTWARE LISTING:
• Front Page.html
<html>
<head>
<title>
myShop
</title>
<style type="text/css">
P{ margin-right:200px;
margin-left:200px}
.left{ background-image:url("gadgets47.jpg");
background-repeat:no-repeat;
background-position:right top;
margin-right:200px;
text-align:left}
.right{ text-align:right}
</style>
</head>
<body>
<center>
<img src="myshop.jpg"> </img>
<font size="4">
Welcome!
<a href="login.html">sign in</a>
or
<a href="register.html">register</a>
<input type="text" name="search"/>  
<input type="submit" value="search"/><br><br><br>
Shop location: shop no. 24 M.G. Road, Jaipur Rajasthan    
Contact:+9154662299, +9146783289<br>
<img src="line.jpg">
</img><br><br>
</center>
<p class="left">
<font size="4" color="green">Features Of myShop</font> <br><br>
myshop is a place where the customers can purchase variety<br> of products
just sitting at their home.
You will find here <br>the most reasonable prices of every
item. Best discounts schemes<br> and time to time sales are brought up to
22
• Login.html
<html>
<head>
<title>
myShop Login
</title>
<style type="text/css">
p{
margin-right:100px;
margin-left:100px}
.left{
margin-right:50px;
text-align:left}
.right{text-align:right}
</style>
</head>
<body>
<center>
<img src="myshop.jpg" alt="myshop">
</img>
Welcome!
<a href="myShop.html">HOME</a>
<img src="line.jpg">
</img><br>
</center>
<p class="left">
<img src="sale.gif"></img>
<p class="left">
<table cellspacing="3" cellpadding="5" width="100%" border="0">
<tr>
<td valign="top" style="text-align:right" bgcolor="#e8eefa">
<div>
<table align="center" border="0" cellpadding="1" cellspacing="0">
<tr>
<td colspan="2" align="center">
<font size="5">
Please enter your login details of
</font>
<table>
<tr>
<td >
<img src="myshop.jpg" alt="MyShop"> </img>
</td>
<td >
<font size="+0"><b>Account</b></font>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" align="center">
</td>
</tr>
<tr>
<td>
<div align="right">
<span>
<font size=4><b>
Username:
</b></font>
</span>
</div>
</td>
<td>
<input type="text" name="username" size="18"/>
</td>
</tr>
25
<tr>
<td align="right">
<span>
<font size=4><b>
Password:
</b></font>
</span>
</td>
<td>
<input type="password" name="Passwd" size="18" />
</td>
</tr>
<tr>
<td> </td>
<td align="left">
</td>
</tr>
<tr >
<td align="right" valign="top">
<input type="checkbox" name="Cookie" id="Cookie" value="yes" />
</td>
<td>
<label>
<font size="4"> Keep me signed in</font>
</label>
</td>
</tr>
<tr>
<td>
</td>
<td align="left">
<input type="submit" name="signIn" value="Sign in" />
</td>
</tr>
<tr >
<td colspan="2" height="33.0" align="center" valign="bottom">
</td>
</tr>
</table>
</div>
26
</td>
</tr>
</table>
</div>
<br><br>
<a href="register.php">REGISTER</a>
<br><br>
<font size="-1">
<a href="myShop.html">About MyShop</a
</font>
<br>
</div>
</td>
</tr>
</table>
</table>
</p>
</form>
</p>
</body>
</html>
27
• Login.php
<html>
<?php
session_start();
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("shopping", $con);
$a=$_POST['username'];
$b=$_POST['Passwd'];
$_SESSION['cust_name']=$a;
?>
</html>
28
APPLICATION SNAPSHOTS:
29
30
31
32
33
34
ACKNOWLEDGEMENT:
We hereby thank Mrs. Sarita Dudi for providing with her esteemed guidance and great
logistic support without which we would have not completed the project successfully.
Special thanks to our respected director Dr. P. S. Bhatnagar who has given us full help
and support to undertake such a project.
35
BIBLIOGRAPHY:
• RDBMS
-Ramkrishnan Gehrke
• http://www.htmltutorial.com
• http://www.easyphp.com