Professional Documents
Culture Documents
Sehrish Sana - Online Shopping at Daraz - SDD-1
Sehrish Sana - Online Shopping at Daraz - SDD-1
i
Date Description Author Comments
09/28/19f
Version 1.0 Sehrish Sana
Document Approval
The following Software Requirements Specification has been accepted and approved by the following:
ii
Table of Contents
1. INTRODUCTION .....................................................................................................................................................1
1.1 Purpose ...............................................................................................................................................................1
1.2 Scope ..................................................................................................................................................................1
1.3 Overview ............................................................................................................................................................1
1.4 Reference Material .............................................................................................................................................2
1.5 Definitions and Acronyms..................................................................................................................................2
2. SYSTEM OVERVIEW .............................................................................................................................................3
2.1 Technology to be used ........................................................................................................................................3
2.2 Application overview .........................................................................................................................................3
2.3 Design language .................................................................................................................................................3
2.4 General constraints .............................................................................................................................................3
2.5 System Environment ..........................................................................................................................................3
3. SYSTEM ARCHITECTURE ....................................................................................................................................3
3.1 Architectural Design ..........................................................................................................................................4
3.1.1.1 Web Architecture ..........................................................................................................................................4
3.1.1.2 Block Diagram ..............................................................................................................................................5
3.2 Decomposition Description ................................................................................................................................5
3.3 Design Rationale ................................................................................................................................................6
3.4 Use Cases ............................................................................................................................................................6
3.4.1 User Login ........................................................................................................................................................6
3.4.2 Add item to shopping cart ...............................................................................................................................8
3.4.3 Search product ..................................................................................................................................................9
3.4.4 Place order ..................................................................................................................................................... 10
3.4.5 Cancel order ................................................................................................................................................... 11
3.4.6 Update product ............................................................................................................................................... 12
3.4.7 Delete product ................................................................................................................................................ 13
3.4.8 Add product .................................................................................................................................................... 14
3.4.9 Home delivery ................................................................................................................................................ 15
3.4.10 Feedback ...................................................................................................................................................... 16
3.4.11 Bill generator ............................................................................................................................................... 17
3.4.12 Online Transaction ....................................................................................................................................... 18
3.4.13 Reset password ............................................................................................................................................. 19
3.4.14 block customer ............................................................................................................................................. 20
3.4.15 User Logout .................................................................................................................................................. 21
iii
3.5 Class Diagram ................................................................................................................................................... 22
3.5.1 Class Diagram for User .................................................................................................................................. 22
3.5.2 Class Diagram for Login ................................................................................................................................ 23
3.5.3 Class Diagram for Order ................................................................................................................................ 24
3.5.4 Class Diagram for Payment ............................................................................................................................ 25
3.5.5 Class Diagram for shoppingCart .................................................................................................................... 26
3.5.6 Class Diagram for Database ........................................................................................................................... 27
3.5.7 Class Diagram for Product ............................................................................................................................. 28
3.5.8 Online Shopping Class Diagram(complete) ................................................................................................... 29
3.6. Sequence Diagram............................................................................................................................................ 30
3.6.1 Sequence Diagram for Registration form. ...................................................................................................... 30
3.6.2 Sequence Diagram for login. .......................................................................................................................... 31
3.6.3 Sequence Diagram for a customer purchase a product. .................................................................................. 32
3.6.4 Sequence Diagram for Admin update a product ............................................................................................ 33
3.6.5 Sequence Diagram for Place order. ................................................................................................................ 34
3.6.6 Sequence Diagram for Cancel order............................................................................................................... 35
3.6.7Sequence Diagram for Online payment .......................................................................................................... 36
3.7 State Transition Diagram(STD) ........................................................................................................................ 37
3.7.Login ................................................................................................................................................................ 37
3.7.2 Shopping Cart................................................................................................................................................. 37
3.7.3 Order .............................................................................................................................................................. 38
3.7.4 Product ........................................................................................................................................................... 38
3.7.5 Search item ..................................................................................................................................................... 39
3.7.6 Add new item ................................................................................................................................................. 39
3.7.7 Customer ........................................................................................................................................................ 40
3.8 Activity Diagram ............................................................................................................................................... 41
3.8.1 Login .............................................................................................................................................................. 41
3.8.2 Registration .................................................................................................................................................... 41
3.8.3 Order .............................................................................................................................................................. 42
3.8.4 Search product in shopping cart ..................................................................................................................... 43
3.8.5 Payment .......................................................................................................................................................... 44
4. DATA DESIGN ...................................................................................................................................................... 45
4.1 Data Description............................................................................................................................................... 45
4.1.1 Data Objects .................................................................................................................................................. 45
4.1.1.1 User. ............................................................................................................................................................ 45
4.1.1.2 Admin .......................................................................................................................................................... 45
4.1.1.3 Customer ..................................................................................................................................................... 45
iv
4.1.1.4 Login credential........................................................................................................................................... 45
4.1.1.5 Product ........................................................................................................................................................ 46
4.1.1.6 Cloths .......................................................................................................................................................... 46
4.1.1.7 Shoes ........................................................................................................................................................... 46
4.1.1.8 Bags ............................................................................................................................................................. 46
4.1.1.9 Jewellery ..................................................................................................................................................... 47
4.1.1.10 Glasses....................................................................................................................................................... 47
4.1.1.11 Accessories ................................................................................................................................................ 47
4.1.1.12 Mobiles ...................................................................................................................................................... 47
4.1.1.13 Order ......................................................................................................................................................... 48
4.1.1.14 Shipping .................................................................................................................................................... 48
4.1.1.15 Supplier ..................................................................................................................................................... 48
4.1.1.16 Feedback ................................................................................................................................................... 48
4.2 ER Diagram ....................................................................................................................................................... 49
4.3 Data Dictionary ................................................................................................................................................. 50
4.3.1 Admin ............................................................................................................................................................. 50
4.3.2 Accessories ..................................................................................................................................................... 50
4.3.3 Bags ................................................................................................................................................................ 51
4.3.4 Customer ........................................................................................................................................................ 51
4.3.5 Cloth ............................................................................................................................................................... 52
4.3.6 Glasses............................................................................................................................................................ 52
4.3.7 Feedback ........................................................................................................................................................ 52
4.3.8 Jewellery ........................................................................................................................................................ 53
4.3.9 Login .............................................................................................................................................................. 53
4.3.10 Order ............................................................................................................................................................ 53
4.3.11 Product ......................................................................................................................................................... 54
4.3.12 Shoes ............................................................................................................................................................ 54
4.3.13 Shipping ....................................................................................................................................................... 54
4.3.14 Supplier. ....................................................................................................................................................... 55
4.3.15 User. ............................................................................................................................................................. 55
5. COMPONENT DESIGN ......................................................................................................................................... 56
5.1 Registration ....................................................................................................................................................... 56
5.2 Login ................................................................................................................................................................. 57
5.3 User . ................................................................................................................................................................. 59
5.4 Administrator .................................................................................................................................................... 60
5.5 Customer ........................................................................................................................................................... 62
5.6 Product .............................................................................................................................................................. 63
v
5.7 Order. ................................................................................................................................................................ 65
5.8 Shipping ............................................................................................................................................................ 67
5.9 Supplier ............................................................................................................................................................. 69
5.10 Feedback ......................................................................................................................................................... 71
6. HUMAN INTERFACE DESIGN ............................................................................................................................ 73
6.1 Screen Images .................................................................................................................................................. 73
6.1.1 Create Account ............................................................................................................................................... 73
6.1.2 Login .............................................................................................................................................................. 74
6.1.3 Recent order ................................................................................................................................................... 74
6.1.4 Account setting ............................................................................................................................................... 75
6.1.5 Reset password .............................................................................................................................................. 76
6.1.6 Wish list ......................................................................................................................................................... 76
6.1.7 Admin Interface.............................................................................................................................................. 77
6.1.8 Feedback ........................................................................................................................................................ 78
6.1.9 Home Page ..................................................................................................................................................... 79
6.1.10 Jewellery ...................................................................................................................................................... 80
6.1.11 Shoes ............................................................................................................................................................ 81
6.1.12 Stitch cloths .................................................................................................................................................. 82
6.1.13 Unstitched cloths .......................................................................................................................................... 83
6.1.14 Bags .............................................................................................................................................................. 84
6.1.15 Glasses.......................................................................................................................................................... 85
6.1.16 Place order .................................................................................................................................................... 86
6.1.17 Order product ............................................................................................................................................... 87
6.1.18 Update product ............................................................................................................................................. 88
6.1.19 Delete product .............................................................................................................................................. 88
6.1.20 Add product .................................................................................................................................................. 89
6.1.21 Contact us ..................................................................................................................................................... 90
7. REQUIREMENTS MATRIX .................................................................................................................................. 91
vi
Online Shopping at Daraz
1. INTRODUCTION
1.1 Purpose
The main purpose of Software Design Document is to design all main components and
its sub components on this project. Coders of the proposed software use the SDD to known about
components function that perform and its relationship with other components. Tester and
Management of the proposed software also use the Software Design Documents. The SDD
shows how the software system will be structured to satisfy the requirements identified in the
software requirements specification. This document exclusively depict the system at architectural
level including subsystems and their services, hardware mapping, data management, access
control, global software control structure and boundary conditions . Its intended audience is the
project manager, project team, and development team.
1.2 Scope
The purpose of this system is to make better shopping system at “online shopping at
Daraz”. The “online shopping at Daraz “designed to facilitate user by providing online option to
its users. In online shopping at Daraz ‘’ user no need to visit this shop and they purchase clothes,
shoes and accessories by online. In which user visit Daraz website and purchase clothes, shoes
and accessories. This system is designed for time saving of users. For purchase any products user
required to login otherwise they only seen the product. Online stores offer product description,
pictures, comparisons, price and much more. Few examples of these are Amazon.com, ebay.com
and the benefits of online shopping is that by having direct access to consumer ,the online stores
can offer products that fulfilled the needs of consumer. This system saves time and money which
we pay for going into the market. This system provides the variety of products in Men’s and
Women’s Fashion which includes dresses of different brands, shoes, Kid’s products, Electronics
and more other Accessories.
1.3 Overview
First section contain introduction of the project, second section of SD contain system
overview, in this section describe overall system in high level definition. Third section contains
system architecture of the project; main components and its sub components are define in section
three. Four sections contain data design in this section design the system using Entity
Relationship Diagram and Data Flow Diagram etc. Selection five contains component design, in
which different comments are design. Section six of the SDD contains Human Interface Design
and Last section contains the Requirements Matrix.
http://www.Daraz.pk.org
2. SYSTEM OVERVIEW
Online shopping system is basically developed to help the customers. Online shopping
system is available for all types of customers who want to purchase accessories without going to
market. By using this system user can get all detail about available items. By using this system
user can purchase anything online from available list of items .This system manage customer
detail, order detail, and purchase detail, available items detail, sale details and account detail etc.
This system will be completed using MY SQL relational database. The developer of this
system requires local web server for testing to include Apache web server 2.0, PHP 5.0, My SQL
5.1 or higher.
3. SYSTEM ARCHITECTURE
purchase items store in database. All records are updated by database. This site provides facility
return on damage. Supplier supplies the item and takes payment on delivery.
Internet
web application
web Server
Database
Web Server
Database
images or share the, only register user share the images on specific social site like Face book etc.
Users may also able to send their feedback about the site and contact with admin to purchase
products.
In “Online Shopping at Daraz” MYSQL Database is used because it will give accurate
and fast Results and it is open ended software. My SQL Database is used at Client site and use of
storing information about record for purchase items and record of customers. For Server Site
Language we use PHP because it’s easy and also open ended.
System
log in
user user
Actor User/Administrator
Description User can perform any task after login his account.
System
login
<<include>>
shopping cart
<<include>>
user user
<<include>>
Add products
logout
Actor User
System
search product
user user
Actor User
System
<<include>> log in
place order
<<include>>
customer
log out
Actor User
Description User can place his order after selecting his products.
System
<<include>> log in
cancel order
customer <<include>>
log out
Actor User
Description User can cancel his order if he does not want to buy it.
System
<<include>> log in
control setting
Administrator <<include>>
log out
Actor Administrator
System
<<include>> log in
Delete product
Administrator <<include>>
log out
Actor Administrator
Post condition Admin successfully delete the products which he does not
want.
Description Admin delete product after login.
System
<<include>> log in
Add product
Administrator <<include>>
log out
Actor Administrator
Post condition Admin successfully add the products which he wants to sell.
System
Home delivery
user user
Actor Administrator/user
3.4.10 Feedback
System
<<include>> login
feedback
<<include>> administrator
user
log out
System
Bill generator
System system
Actor System
System
online transaction
user administrator
System
Reset password
user administrator
System
Block customer
Administrator
Actor Administrator
System
log out
user administrator
Description User can log out from his account by clicking on the sign
up option.
Steps 1. User login into the account by enter his email id and
password.
2. User logout from account by clicking on the “sign
up” option.
3. System will log out the User’s account.
3.5.7 Class
lass Diagram for Product
3.6.2
.2 Sequence Diagram for Login
3.6.3
.3 Sequence diagram for customer purchase a product
3.6.4
.4 Sequence diagram of Admin update a product
3.6.5
.5 Sequence diagram for place order
3.6.6
.6 Sequence diagram for cancel order
3.6.7
.7 Sequence diagram for online payment
3.7.1 Login
3.7.3 Order
3.7.4 Product
3.7.7 Customer
3.8.2 Registration
Submit
Insuring Detail
Unmatched
Reject
Matched
Accept
3.8.3 Order
3.8.5 Payment
4. DATA DESIGN
4.1 Data Description
MYSQL database is used for storing information of online shopping system (at Bonanza).PHP
script is used for manipulating data getting data and place data in MYSQL database.
4.1.1.2 Admin:
Id: Id of the Admin to uniquely identify the Admin of the site
Name: Name of the admin
Phone Number: phone number of the admin
Gender: Gender of the admin
Address: Address of the admin
4.1.1.3 Customer:
Id: Describe id of the customer
Name: Describe name of the customer
Password: Describe password of the customer
Email: Describe email of the customer
Gender: Describe gender of the customer
Date of birth: Describe data of birth of customer
4.1.1.5 Product:
Name: Describe name of the product
Id: Describe id of the product
Price: Describe price of the product
Quantity: Describe quantity of the product
4.1.1.6 Cloths:
Design: Describe the design of the cloth
Color: color of the cloth
Size: size of the cloth
Stitch: describe cloth is stitch
Unstitch: describe cloth is unstitch
Price: price of the cloth
4.1.1.7 Shoes:
Design: Describe the design of the shoes
Color: color of the shoes
Size: size of the shoes
Price: price of the shoes
4.1.1.8 Bags:
Design: Describe the design of the bags
Color: color of the bags
Size: size of the bags
Price: price of the bags
4.1.1.9 Jewellery
Design: Describe the design of the jewellery
Color: color of the jewellery
Size: size of the jewellery
Price: price of the jewellery
Type: Type of the jewellery
4.1.1.10 Glasses:
Design: Describe the design of the glasses
Color: color of the glasses
Price: price of the glasses
Type: Type of the glasses
4.1.1.11 Accessories:
Design: Describe the design of the accessories
Color: color of the accessories
Size: size of the accessories
Price: price of the accessories
Type: Type of the accessories
4.1.1.12 Mobiles:
Design: Describe the design of the Mobile
Color: color of the Mobile
Size: size of the Mobile
Price: price of the Mobile
Type: Type of the Mobile
4.1.1.13 Order:
Customer id: Id of the customer
Order id: Id of the order
Order date: date of the order
Quantity: Quantity of the order
Password: Password of the order
4.1.1.14 Shipping:
Customer email: Email of the customer
Customer name: Name of the customer
Location: Location of the customer
Quantity: Quantity of the order that ship to the customer
Order time: order time for shipment
Delivery time: delivery time of shipping
4.1.1.15 Supplier:
Phone Number: phone number of the supplier
Name: Name of the supplier
Id: Id of the supplier
Work area: Work area of the supplier
4.1.1.16 Feedback:
Comment: comment about site and services
Customer id: Id of the customer
Feedback id: Id of the feedback
Feedback type: Type of the feedback
Feedback description: Description of the feedback
4.2 E-R
R Diagram for Online Shopping System
4.3.1 Admin
4.3.2 Accessories
4.3.3 Bags
4.3.4 Customer
4.3.5 Cloth
4.3.6 Glasses
4.3.7 Feedback
4.3.8 Jewellery
4.3.9 Login
4.3.10 Order
Parameter Parameter Type
Customer Id: String
Order Id: String
Password: String
Quantity: Int
Order date: String
4.3.11 Product
Parameter Parameter Type
Product Id: String
Product name: String
Price: Int
Quantity: Int
4.3.12 Shoes
Parameter Parameter Type
Design: String
Color: String
Size: Int
Price: Int
Type: String
4.3.13 Shipping
Parameter Parameter Type
Customer Name: String
Customer Email: String
Location: String
Quantity: Int
Order Date: String
Delivery Time: String
4.3.14 Supplier
4.3.15 User
5. COMPONENT DESIGN
5.1 Registration
f
Pseudo Code
Pseudo Code
Pseudo Code
5.2 Login
Class Name: Login
Brief Description: Login Credentials class explains all attributes and methods that helps in login
of user. User have to enter his/her email, password to login and phone number is required to set
forget password and for reset password. Any user can login and logout.
Pseudo Code
1. Only user login that must be registered.
2. For login user enter name and email.
3. Database connection is created.
4. Verify information from MY SQL database.
5. If information verify Show “ login
successfully”
6 .Else if information is not correct Show
“Enter correct information”
7. Display website page after login successfully
Pseudo Code
Pseudo Code
1. Database connection
is created.
2.if user forget password
Show “Enter your phone number”
3.if phone number is matched
Show “set your new password”
Else
Show “enter your correct password”.
Pseudo code
5.3 User
Class Name: User
Brief Description: user class used to explain all the attributes and methods that define all the activities of
user
Pseudo Code
1. Only user login that must be registered.
2. For login user enter name and email.
3. Database connection is created.
4. Verify information from MY SQL database.
5. If information verify Show “ login
successfully”
6 .Else if information is not correct Show
“Enter correct information”
7. Display website page after login successfully
Pseudo Code
Pseudo Code
Pseudo code
5.4 Administrator
Class Name: Administrator
Brief Description: Admin manage this website by using attributes and perform different
functions. Attributes are admin id, admin name, phone number, address and gender. Admin can
perform different functions to manage this website these are adding product detail, delete product
detail, update product detail and edits product detail.
Pseudo Code
1.database connection is created
2. Set name used to set the name of the admin.
Pseudo Code
Pseudo Code
1.Database connection is created
2.if new products are available than
“Admin add product detail ”
3.If products add
Show “products detail add successfully”
Pseudo Code
Pseudo code
5.5 Customer
Class Name: Customer
Brief Description: Customer by using this website order, view and purchase product. For
purchase any product customer must be login they enter customer id, name, email, password,
gender and date of birth. Customer can add , delete ,update ,edit his/her detail.
Pseudo Code
1.database connection is created
2.user click on add more detail button
Show” add more detail”
3.if user add more detail than
Show” successfully added customer detail”
.
deleteCustomerDetail() deleteCustomerDetail() method used to delete
the customer data
Pseudo Code
Pseudo Code
1.database connection is created
2.customer click login button
3.if his/her account already on website
Customer view his/her detail
5.6 Product
Class Name: Product
Brief Description: By using this website customer can view product id, product name,
and product quantity and product price. Admin can add product detail, delete product detail and
update product detail. Customer can view search product detail and edit product detail.
Pseudo Code
1. User must be login for add products in
shopping cart.
2.Database connection is created
3.display website page
4.if connection successfully establish
Show “ select product for add ”
5.Else if connection not successfully establish
Pseudo Code
Pseudo Code
1. For search product login is not required.
2. Database connection is created.
3. If connection created successfully
Show “search products successfully ”
5. Else if connection not successfully establish
Show “ Error in database connection”
Pseudo Code
Pseudo code
Pseudo Code
1. User must be login for edit products from
Shopping cart.
2.Database connection is created
3.display website page
4.if connection successfully establish
Show “Edit products successfully ”
5.Else if connection not successfully establish
Show “ Error in database connection”
5.7 Order
Class Name: Order
Brief Description: By using this website customer can place order, delete order, change order or
cancel order and view product quantity and product price. Admin view order detail and make the
shipping possible. Customer selects the products and adds products to the shopping cart then order
is delivered to the customer.
Pseudo Code
1. User must be login for giving order.
2. Select product for order.
3. Database connection is created.
4. Take confirmation from user.
5.If user confirms the order
Show “order confirm successfully”
6.Else
Show “cancel order”
Pseudo Code
Pseudo Code
1. User must be login for update order.
2. Select product for update order.
3. Database connection is created.
4. Take confirmation from user.
5.If user update the order
Pseudo Code
Pseudo code
5.8 Shipping
Class Name: Shipping
Brief Description: When customer purchase any product or click on confirm order then order is
Shipped to the customer. For ship any order shipment of order assign to the supplier according to
his working area.
Pseudo Code
1.database connection is
created
2.order confirm from customer
3.order assign to supplier according to his
working area
4.shipment is done
Pseudo Code
5.9 Supplier
Class Name: Supplier
Brief Description: Supplier supplies the order that confirm the customer. Each supplier must
assign area for supply the order .Supplier give his/her name, phone number and id to the admin
Pseudo Code
Pseudo Code
1.database connection is created
2.if admin want to remove and add the item
from
supply item list
Show “update supply list”
3.if list update successfully
Show “successful update list”
Pseudo Code
5.10 Feedback
Class Name: Feedback
Brief Description: Feedback is commenting that give user after using this website. Admin take
Feedback and give response to the customer. By using this comment web site can be made better
for the customer of this website.
Pseudo Code
Pseudo Code
Pseudo Code
1.database connection is created
2.admin view customer comment
3.if admin view comment
Show “give response to the customer”
Else
Show “error in database connection”
Create Account
Email Address
Password
Phone No
Address
Male
Female
Signup
6.1.2 Login
Login
Username
Password
Login
Register Here
6.1.8 Feedback
Home page
6.1.10 Jewellery
6.1.10 Jewellery
6.1.11 Shoes
6.1.14 Bags
6.1.15 Glasses
6.1.21 Contact Us
7. REQUIREMENTS MATRIX
UC 3.4.1
x x
UC 3.4.2 x X x
UC 3.4.3 X
x
UC 3.4.4 x x
x
UC 3.4.5 x x
X
UC 3.4.6 X
X X
UC 3.4.7 X X X
UC 3.4.11 X X
UC 3.4.12 x X x
UC 3.4.13 x x x
UC 3.4.14 x X
x
UC 3.4.15 x x X