8/2/2019 Documentation - Online Shopping
1/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
Online shopping
C0710G Group 3 - 2010 Page 1
Authors
Phoenix Group 3Name Location
Nguyen Manh Linh Team leader
Pham Ngoc Duc Member
Nguyen The Luc Member
Date 10/04/2010Instructor
8/2/2019 Documentation - Online Shopping
2/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
Name Location
Nguyen Manh Linh Team leader
Pham Ngoc Duc Member
Nguyen The Luc Member
C0710G Group 3 - 2010 Page 2
8/2/2019 Documentation - Online Shopping
3/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
Table of Contents
Table of Contents ..........................................................................3
Acronyms .................................................................................... 4
1.Problem Definition ..................................................................... 4
Problem Definition .............................................................................................. 4
Project Plan ..................................................................................................... 5
Customer Requirements Specification ............................................ 6
Customer Requirements ...................................................................................... 6
Users of the System ............................................................................................ 7
System Functions ................................................................................................ 9
System Designs .......................................................................... 25
Context Diagram ............................................................................................... 25
Infrastructure .................................................................................................... 50
Entity Relationship Diagram .............................................................................. 50
50
51
Entity Details ..................................................................................................... 54
Database Design ............................................................................................... 54
3.5.1. Table Relationship Diagram .................................................................. 54
3.5.2. Table Details ........................................................................................ 54
Hierarchical Function Diagram .......................................................................... 54
System Functions Design .................................................................................. 73
3.5.Prototype .................................................................................................... 73
Main source code .............................................................................................. 73
Task Sheet ..................................................................................73
Testing .......................................................................................73
Test Plan ........................................................................................................... 73
Test Case .......................................................................................................... 73
Test Repor ......................................................................................................... 73
Deployment ................................................................................ 73
C0710G Group 3 - 2010 Page 3
8/2/2019 Documentation - Online Shopping
4/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
Acronyms
1. Problem Definition
Problem Definition
Arts is a stationary shop that sells arts, gift articles, greeting cards, dolls, files, hand bags,wallets, and as well some of the beauty products, etc. As there is a lot of demand for the
greeting cards, gift articles, hand bags, etc. and in this busy world where one can hardly findtime to go out for shopping and with the emerging new technologies where one can purchase
products by placing an order through online by sitting at home/office either by credit cards orby VPP or through Cheque or through DD.
Our client is a retail dealer of various products like gift articles, dolls, files, etc. Thecustomers usually visit the shop in order to purchase the products. He has a huge variety of
products at his shop. Also as there is an increase in the demand of these products and as well asthere is a huge variety of combinations and products available, and as the number of retaildealers are increasing day by day, it has become difficult to withheld in the market and as well
to retain the customers.
Also as they dont keep track of the products, it is hard to find how many products are availablein the shop.
C0710G Group 3 - 2010 Page 4
8/2/2019 Documentation - Online Shopping
5/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
Project Plan
C0710G Group 3 - 2010 Page 5
8/2/2019 Documentation - Online Shopping
6/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
Customer Requirements Specification
Customer Requirements
In order to cope up in this competitive world, and to retain the customers, to automatethe process, our client wants an application to be built meeting the current technology trendwhere the customers can place their order through online by sitting at their office/home, and
providing the products as per the orders received by the dealer at the door steps of the customer
He says that he wants that the application should hold the details of the products indetail like price, description of the product and each product is allocated with a unique 7 digit
product id which includes 2 digit product code and 5 digit product number. Also he says thatfor fetching the details of the products, the customer need not be the registered one, but for
placing an order one has to be the registered user of the site.
After placing an order, the dealer would dispatch the order as per the type of deliverythat the customer has chosen. He says that the application should generate a unique 16 digitorder number (includes the type of the delivery (1 digit) that the user has opted for, Product id(7 digit), and the order number (8 digit)) as soon as the order is placed by the customer.
For the order which is placed through the credit card payment or through cheque, thepayment should be cleared first and then only the product will be dispatched to the customerspremises. Also he has provided an option like if the customer is not satisfied by the productthen the customer can either replace it (new product will not be sent) or he can return it back
with in a week days time, so that he can get back his money which he has paid for that product.Also the warranty card will also be provided for the products which have some warranty.
The dealer alone should be able to update the details of the employees, products andtheir details, and he can check the orders that are received based on the date, order type(delivery) and he alone has the right to create an employee profile like username or login id andthe password. The employee should only be able to change his password, and he can check thedetails of the orders so that the products can be dispatched as per the customers request andthat they can be delivered in time.
Also he says that there should be an option on the web site where the customer can sendtheir feedbacks regarding the services that they attain from them.
C0710G Group 3 - 2010 Page 6
8/2/2019 Documentation - Online Shopping
7/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
Users of the System
Admin-side:
Login function
Countries function
Employees manager: Edit profile of admin, Create new Employee, Edit Employeeprofile, Remove employees, View list employees.
Products manager: Insert product catalogs, Edit product catalogs, Remove productcatalogs Insert product manufacturers, Edit product manufacturers, Remove productmanufactures, Insert products, Edit products, Remove products, View list productcatalogs/product manufacturers, products, view products/catalogs/manufacturers.
Orders manager: View list of Orders, View Order details, Check payment type, Checkabout payment, Change status of Order, Delete Order.
Feedbacks manager: View list of feedbacks, View feedbacks, Reply feedbacks, Deletefeedbacks.
Users manager: View list of user, View users details, Change users status, Delete users,view list feedbacks of user, view list orders of user
Admin advance search.
Payback function
Logout function
Notes:
Admin and employees will be maintained in only one table on database but they will bediscriminated by a Boolean field of the table.
Only admin can use function like Edit, create, delete. The employees can only view theinformation.
Only admin can reply feedbacks or delete feedbacks.
The admin can delete user provided that that user dont have any undelivered order.
Employees will have a function to change their own password.
There are 3 options of advance search that are products search, employees search, users
search.
C0710G Group 3 - 2010 Page 7
8/2/2019 Documentation - Online Shopping
8/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
Client-side:
With guests:
Register function
Login function
View products list
View product details
Search products
With registered user:
Logout function
Change their own profiles
View product list
View product details
View list orders placed
View list feedbacks
Place product to temporary cart
Change cart: remove products from cart, change amount of products
Place an order: Accept cart, update order information (deliver address, paymenttype, receivers information).
Create feedbacks
Payback function
Search products
C0710G Group 3 - 2010 Page 8
8/2/2019 Documentation - Online Shopping
9/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
System Functions
Admin-side:
Function Name Input Process Output Notes
0 Login function - User name- Password
- Validate information- Check username and
password from
database- If correct, showwelcome messageand redirect to adminhomepage
- If information is notexist, show failuremessage and redirectto admin login page
- Showsuccessfulmessage (if
data is exist)- Show failuremessage (ifdata is notexist)
1 Change AdminProfile
- Password- New
Username- New Password
- Check login (adminaccount)
- Check password- Validate new
- Showsuccessful
message (ifthe
Only admincan use this
function(check
C0710G Group 3 - 2010 Page 9
8/2/2019 Documentation - Online Shopping
10/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
- New infor username andpassword.
- Check Username(the existent)
- Update to database
(if satisfy allconditions)
- Redirect to adminhome page if successor to admin profile
page if failure
informationwas updatedinto database)
- Show failuremessage (for
each wrongcase)
session)
2 Viewemployees list
- Click frommenu
- Check login- Get data from
database- Redirect to list
employees page- Show all employees
to the page
- Employeeslist
3 Deleteemployeesaccounts
- Click delete button of theemployee whowant to delete
- Password
- Check login (adminaccount)
- Check password- If the information
input is correct,delete from databaseand redirect toemployees list page
- If the informationinput is incorrect,show the failuremessage and redirectto employees list
page
- Show messageto ask theconfirmationof the admin
- Showsuccessfulmessage (ifthe
employeesaccounts weredeleted)
- Show failuremessage (foreach wrongcase)
Only admincan use thisfunction(checksession)
4 Create anemployeesaccount
- Adminpassword
- Employeesusername
- Employeespassword
- Check login (adminaccount)
- Check adminpassword
- Validate usernameand password ofemployee
- Check username ofemployee (existent)
- If all are correct,insert data intodatabase
- Show failuremessage and redirectto create employee
page
- Showsuccessfulmessage (ifthe data was
inserted intodatabase)
- Show failuremessage (foreach wrongcase)
Only admincan use thisfunction(check
session)
5 Employee - Old password - Check login - Show
C0710G Group 3 - 2010 Page 10
8/2/2019 Documentation - Online Shopping
11/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
change ownpassword
- New password(2 times)
- Check old password- Validate new
password- If all are correct,
update data to
database- Show failure
message and redirectto change password
page
successfulmessage (ifthe data wasinserted intodatabase)
- Show failuremessage (foreach wrongcase)
5 Insert productcatalogues
- Password- Name of
catalogue- Image of
catalogue(optional)
- Chooseclassification
- Check login (adminaccount)
- Check password- Validate name of
catalogue- Check name of
catalogue (existent)- Generate ID of
catalogue (if all arecorrect) and insertdata into database
- If not show failuremessage and redirectto insert productcatalogue page
- Showsuccessfulmessage (ifthe data wasinserted intothe database)
- Show failuremessage (foreach wrongcase)
Only admincan use thisfunction(checksession)
6 Change
information ofproductcatalogues
- Select
catalogue- Password- New name- New image
(optional)- Choose
classification
- Check login (admin
account)- Check password- Validate new name
of catalogue- Check name of
catalogue (existent)- Update data into
database if allinformation iscorrect
- If not show failure
message and redirectto admin homepage
- Show
successfulmessage (ifthe data wasupdated intothe database)
- Show failuremessage (foreach wrongcase)
Only admin
can use thisfunction(checksession)
7 Remove productcatalogues
- Selectcatalogue
- Click deletebutton
- Password
- Check login (adminaccount)
- Check confirmation- Check password- Check products in
this catalogues- If all information is
correct, delete datafrom database
- If not show failure
- Show messageto ask theconfirmationof the admin
- Showsuccessfulmessage (ifdata is deletedfromdatabase)
- Show failure
Only admincan use thisfunction(checksession)
C0710G Group 3 - 2010 Page 11
8/2/2019 Documentation - Online Shopping
12/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
message and redirectto list catalogues
page
message (foreach wrongcase)
8 Insert productmanufacturers
- Password- Name of
manufacturer- Image
- Check login (adminaccount)
- Check password- Validate name of
manufacturer- Check name of
manufacturer(existent)
- Generate ID ofmanufacturer (if allare correct) andinsert data intodatabase
- If not show failuremessage and redirectto insert productmanufacturer page
- Showsuccessful
message (ifdata isinserted intodatabase)
- Show failuremessage (foreach wrongcase)
Only admincan use this
function(checksession)
9 Change name of manufacturers
- Selectmanufacturer
- Password- New name- New image
- Check login (adminaccount)
- Check password- Validate new name
of manufacturer- Check name of
manufacturer(existent)- Update data into
database if all arecorrect
- If not show failuremessage and redirectto list manufacturers
- Showsuccessfulmessage (ifdata isupdated intodatabase)
- Show failuremessage (foreach wrongcase)
Only admincan use thisfunction(checksession)
10 Removemanufacturers
- Selectmanufacturer
- Click to delete
button- Password
- Check login (adminaccount)
- Check confirmation
- Check password- Check products in
this manufacturer- If all are correct,
delete data fromdatabase
- If not show failuremessage and redirectto list manufacturers
page
- Show messageto ask theconfirmation
of admin- Show
successfulmessage (ifthe data wasdeleted fromdatabase)
- Show failuremessage (foreach wrongcase)
Only admincan use thisfunction
(checksession)
Classification - Likemanufacturer
- Like manufacturer- In delete function,
- Likemanufacturer
Likemanufacture
C0710G Group 3 - 2010 Page 12
8/2/2019 Documentation - Online Shopping
13/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
check catalogues ofthe classification
r
11 Insert Products - Password- Name of
products
- Description ofproduct(optional)
- Price- Choose
catalogue andmanufacturer
- Representativeimage(optional)
- Check login (adminaccount)
- Check password
- Validate allinformation
- Check name of product (existent)
- If all are correct,insert data intodatabase
- If not show failuremessage and redirectto admin homepage
- Showsuccessfulmessage (if
data wasinserted intodatabase) andshow new
productinformation
- Show failuremessage (foreach wrongcase)
Only admincan use thisfunction
(checksession)
12 View listproducts
- Select theoptions(according tocatalogues,according tomanufacturers,according to
both of themor all of
products)
- Check login- Get data from
database (accordingto the condition)
- Show data to listproducts page
- Show listproductaccording tothe condition
13 View product
information
- Select product
from list
- Check login
- Get data fromdatabase
- Show product
information
14 Change productinformation
- Select productfrom list
- New name ofproduct
- Newdescription of
product(optional)
- New price
- Choose newcatalogue andmanufacturer
- Newrepresentativeimage(optional)
- Password
- Check login (adminaccount)
- Check password- Check name of
product (existent)- Insert data into
database if all arecorrect.
- If not show failure
message and redirectto this productinformation page
- Showsuccessfulmessage if data isupdated intodatabase andshow newinformation of
product
- Show failuremessage (foreach wrongcase)
Only admincan use thisfunction(checksession)If one of theinformationis blank, thedatabase will
be get the oldinformation
15 Delete product - Select product- Click to delete
button- Password
- Check login (adminaccount)
- Check confirmation- Check password
- Show messageto ask theconfirmationof admin
Only admincan use thisfunction(checksession)
C0710G Group 3 - 2010 Page 13
8/2/2019 Documentation - Online Shopping
14/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
- Check this producthas been still in anyundelivered order ornot
- Delete product from
database if all arecorrect
- If not show failuremessage and redirectto list product page(all products)
- Showsuccessfulmessage (ifthe data wasdeleted from
database)- Show failure
message (foreach wrongcase)
16 View list of orders
- Select button- Choose the
options(according totime or allorders)
- Check login- Get data from
database and show tolist orders page(order by status andorder date)
- Show list oforders
17 View ordersdetails
- Select order - Check login- Get data from
database and show itto order detail page
- Show orderdetails
18 Change order status
- Change statusof order (paid,delivered)
- Password
- Check login (adminaccount)
- Check confirmation- Check password- Change status of
order and update intodatabase if all arecorrect
- If not, show failuremessage and redirectto order details page
- Showconfirmationmessage
- Showsuccessful
message (ifdata wasupdated intodatabase)
- Show failuremessage (foreach wrongcase)
Only admincan use thisfunction(checksession)
19 Delete orders - Select order todelete
- Click to delete
button- Password
- Check login (adminaccount)
- Check confirmation
- Check password- Check status of
order. If the orderhasnt paid anddelivered, dontallow to delete.
- If all are correct,delete data fromdatabase
- Show failuremessage and stand incurrent page
- Showconfirmationmessage
- Showsuccessfulmessage (ifdata wasdeleted fromdatabase)
- Show failuremessage (foreach wrongcase)
Only admincan use thisfunction
(checksession)
20 View list of - Select button - Check login - Show list of
C0710G Group 3 - 2010 Page 14
8/2/2019 Documentation - Online Shopping
15/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
feedbacks - Choose theoptions(according todate, or allfeedback)
- Get data fromdatabase and show itto list feedbacks
page
feedbacks
21 View feedback - Selectfeedback
- Check login- Get data from
database and show itto feedback content
page
- Showfeedbackcontent
22 Reply feedback - Reply button- Password- Reply content
- Check login (adminaccount)
- Check confirmation- Check password- Send reply to user
(insert into database)
- Showconfirmationmessage
- Showsuccessfulmessage (ifthe reply wassend)
- Show failuremessage (foreach wrongcase)
Only admincan use thisfunction(checksession)
23 Delete feedback - Selectfeedback
- Delete button- Password
- Check login (adminaccount)
- Check confirmation- Check password
- Check feedbackstatus. Dont allowdelete if thefeedback has not
been replied- If all are correct,
delete data fromdatabase
- If not, show failuremessage and redirectto list feedbacks
page
- Showconfirmationmessage
- Show
successfulmessage (ifthe feedbackwas deletedfromdatabase)
- Show failuremessage (foreach wrongcase)
Only admincan use thisfunction(check
session)
24 View list users - Select button - Check login- Get data from
database and show itto list users page
- Show list ofusers
25 Change user status
- Select user- Choose status- Password
- Check login (adminaccount)
- Check confirmation- Check password- Change data and
update into databaseif all are correct
- Showconfirmationmessage
- Showsuccessfulmessage (ifdata wasupdated into
Only admincan use thisfunction(checksession)
C0710G Group 3 - 2010 Page 15
8/2/2019 Documentation - Online Shopping
16/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
- If not, show failuremessage and redirectto this user details
page
database)- Show failure
message (foreach wrongcase)
26 Delete user - Select user- Password
- Check login (adminaccount)
- Check confirmation- Check password- Check orders and
feedbacks of thisuser. If exist order(s)or feedback(s) of thisuser, dont allow todelete. Askadministrator todelete orders andfeedbacks or not. Ifyes, redirect to listorders or listfeedback of this user(list orders is higher
priority)- If all are correct,
delete user fromdatabase
- If not, show failuremessage and redirectto this user details
- Showconfirmationmessage
- Showsuccessfulmessage (ifdata wasdelete fromdatabase)
- Show failuremessage (Foreach wrongcase)
Only admincan use thisfunction(checksession)
27 View user details
- Select user - Check login- Get data from
database and show itto users details page
- Show usersdetails
28 View users listof orders
- Select button- Choose option
(accord to dateor all orders)
- Check login- Get data from
database and show itto users list of
orders page
- Show userslist of order
29 View users listof feedbacks
- Select button- Choose option
(According todate or allfeedbacks)
- Check login- Get data from
database and show itto users list offeedbacks page
- Show userslist of feedbacks
30 Admin advancesearch
- Keyword- Choose the
options(products,users, or employees)
- Choose
- Check login- Find data from
database accordingthe option waschosen.
- Show the fetcheddata to result page
- Show data
C0710G Group 3 - 2010 Page 16
8/2/2019 Documentation - Online Shopping
17/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
advanceoptions (if option is
products):according to
catalogues ormanufacturersor price or combinationof them
- Chooseabsolute orrelative
Logout function - Click to button - Remove session- Redirect to admin
login page
Client-side:
Function Name Input Process Output notes1 Register - User name
- Password- Address
(optional)- Phone number
(optional)
- Full name- Date of birth
- Validate theinformation
- Check usernameand e-mail(existent)
- If all are correct,
insert data intodatabase and show
- Showsuccessfulmessage (ifdata wasinserted intodatabase)
- Show failuremessage (for
- Onlyavailableif sessionusernameis null(there is
no user login)
C0710G Group 3 - 2010 Page 17
8/2/2019 Documentation - Online Shopping
18/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
- Sex- E-mail- Password level
2- Secret
question- Answer of
secret question- ID card
(optional)- Credit card or
Chequenumber(optional)
successful message.Redirect to clienthomepage
- If not, show failuremessage and
redirect to registerpage
each wrongcase)
2 Login - Username- Password
- Validateinformation
- Check usernameand password fromdatabase (existent)
- If user is exist,login to system,change sessionusername as thisusername. Redirectto client homepage.Show logout,
profile and viewcart options. Hidelogin and registeroptions.
- If not, show failuremessage andredirect to login
page
- Welcomemessage (iflogin success)
- Show failuremessage (foreach wrongcase)
Onlyavailable ifsessionusername isnull (there isno user login)
3 Logout - Click to logoutbutton
- Set sessionusername as null
- Redirect to client
homepage- Hide logout, profile
and show cartoptions
- Show register andlogin options.
4 View productslist
- Click to link inmenu(according tocatalogues ormanufactureror both of them)
- Get data fromdatabase accordingthe options werechosen by user andshow it to list
products page
- Show listproducts
Each productwill beshowed byname,representimage and
price.
C0710G Group 3 - 2010 Page 18
8/2/2019 Documentation - Online Shopping
19/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
Each productwill have a
button place
5 Change profile - Click to
change profileoption
- Newinformation of
profile- Password level
1
- Check login
- Validate profileinformation
- Check password- If all are correct,
update data intodatabase. Showsuccessful messageand redirect to
profile page- If not, show failure
message andredirect to profile
page
- Show
successfulmessage andnew profile ifdata wasupdated todatabase
- Show failuremessage (foreach wrongcase)
If one of the
information isblank,database willget old data
6 Change passwordlevel 1
- Click tochange
passwordbutton
- Old password- Password level
2- New password
(2 times)
- Check login- Validate- Check old password
level 1 andpassword level 2
- If all are correct,change passwordlevel 1 and update
into database. Showsuccessful messageand redirect to
profile page- If not, show failure
message andredirect to change
password level 1page
- Showsuccessfulmessage (ifdata wasupdated intodatabase)
- Show failuremessage (for
each wrongcase)
7 Change passwordlevel 2
- Click tochange
password level2 button
- Old passwordlevel 2
- New passwordlevel 2 (2times)
- Secretquestion
- Answer of secret question
- Check login- Validate
- Check old passwordlevel 2
- Check secretquestion
- If all are correct,change passwordlevel 2 and updateinto database. Showsuccessful messageand redirect to
profile page- If not, show failure
message and
- Showsuccessful
message (ifdata wasupdated intodatabase)
- Show failuremessage (foreach wrongcase)
C0710G Group 3 - 2010 Page 19
8/2/2019 Documentation - Online Shopping
20/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
redirect to change password level 2page
8 Forget password - Click to forgetpassword
option (inlogin page)
- Username- E-mail
- Check usernameand e-mail from
database (existent)- If correct, send
password level 1 tothis e-mail. Showreport page.
- If not, show failuremessage andredirect to forget
password page
- Show report page (your
password issent to your e-mail)
- Show failuremessage (foreach wrongcase)
9 View profile - Click to viewprofile option
- Check login- Get the information
of this user fromdatabase and showit to profile page
- Information ofuser
The profilepage will havechange
password button,change
password button, showorders list,showfeedbacks list
10 View products
details
- Click to name
of product orrepresentativeof product
- Get product
information fromdatabase- Show it to product
details page
- Information of
product
The
informationare name,representativeimage,description,
price and havea button toadd this tocart
11 Add to cartfunction
- Click to add tocart button
- Check login- If the guest is not
login, show failuremessage andredirect to login
page- Add product to
temporary cart withamount is 1.
- Calculate the costof cart
Onlyregistered
user can placean order
12 Show cart - Click to cartoptions
- Check login- Redirect to
shopping cart page- Show the
- Information oftemporary cart
Onlyregistered
user can placean order
C0710G Group 3 - 2010 Page 20
8/2/2019 Documentation - Online Shopping
21/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
information oftemporary cart
13 Change amountof products andupdate cart
- Amount of products
- Click to
update button
- Check login- Validate amount of
products (more than
0, be integer notcharacters)
- If correct, change itin temporary cart.Calculate the priceagain. Redirect toview shopping cart
page- If not, show failure
message andredirect to viewshopping cart page(with old values)
- Show newshopping cartwith new
values if success
- Show failuremessage (foreach wrongcase)
Onlyregistereduser can place
an order
14 Remove productsfrom cart
- Select products thatuser want toremove
- Click toupdate button
- Check login- Remove products
from temporary cart- Redirect to show
shopping cart page(new values)
- Show cart Onlyregistereduser can placean order
15 Remove allproduct from cart
- Click toremove all
button
- Check login- Set value of
temporary cart asnull- Redirect to
shopping cart page
Onlyregistered
user can placean order
16 Create feedbacks - Select theoption (in
profile)- Feedback
subject- Feedback
content
- Check login- Validate feedback
subject and content- If all are correct,
insert data todatabase andredirect to profile
page. Showsuccessful message
- If not, back tocurrent page andshow failuremessage
- Showsuccessfulmessage (if thefeedback wassent)
- Show failuremessage (for
each wrongcase)
Onlyregistereduser cancreatefeedbacks
17 View list of feedbacks thatthey own sent
- Select theoption (in
profile)- Choose time
(optional)
- Check login- Select from
database feedbacksof this user (according time ifchosen)
- Redirect to list
- Show thefeedbacks theuser has sent
Onlyregistereduser havefeedbacks
C0710G Group 3 - 2010 Page 21
8/2/2019 Documentation - Online Shopping
22/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
feedbacks and showthe feedbacks
18 Show feedbackand the reply
- Choosefeedback
- Click to view
reply button
- Check login- Select the feedback
from database
- Select reply fromdatabase
- If the feedback hasnot replied, showreport message
- If it replied, showthe reply content
- Show thefeedback andits reply
Onlyregistereduser have
feedbacks
19 View list of orders
- Select option(in profile)
- Choose time(optional)
- Check login- Select the orders of
this user fromdatabase (accordingtime if chosen)
- Redirect to the listorder page.
- Show list oforders of thisuser
Onlyregistereduser haveorders
20 Return Order - SelectOrder(In
profile)- Select Return
Button- Select product
in order and
return amount- Type of return(return/exchange)
- Return reason
- Check login- Check amount- Insert return to
database
- Show list oforders of thisuser
Onlyregistereduser haveorders
21 Search products - Select option(according tocatalogue,according tomanufactureror both of
them)- Keyword
- Select fromdatabase productssatisfy theconditions
- Show them to page
- Show theproductsfetched
22 Payment Type - Selectpaymentoption
- Check login- Redirect to
complete orderpage
- For each paymenttype the user choosewill be process withdifference ways
- Show next stepto place order
Onlyregistereduser haveorders
23 Credit card(Payment type
- Credit cardtype
- Check login- Validate field
- Show next stepto place order
Onlyregistered
C0710G Group 3 - 2010 Page 22
8/2/2019 Documentation - Online Shopping
23/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
process) - Credit CardNumber
- ExpirationDate
- Card Security
Code- If the Payment
Informationdifferent thanuserinformation
Full name Address City State(optional)
Zip/Post Code Country Phone Number Email Address
- Insert data todatabase (creditinformation) if allare correct. Redirectto complete order
page- If not, show failure
message, redirect totype payment page
- Show failuremessage (foreach wrongcase)
user haveorders
24 DD(Paymenttype process)
- DD number- Bank name- Which branch
of the bank- Address of the
bank- Amount of the
DD- Date on which
DD is taken
- Check login- Validate field DD
number, Bankname, Which
branch of the bank,Address of the
bank, Amount of
the DD, Date onwhich DD is taken.
- Insert data todatabase (creditinformation) if allare correct. Redirectto complete order
page- If not, show failure
message, redirect to
type payment page
- Show next stepto place order
- Show failuremessage (foreach wrongcase)
Onlyregistereduser haveorders
Notes:
All function have check login in process, if the check login case is fail, the page will beredirected to login page with a message.
Validate pattern:
- Password is more than 8 characters (0-9, a-z) and set case-sensitive
C0710G Group 3 - 2010 Page 23
8/2/2019 Documentation - Online Shopping
24/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
- Username is more than 8 characters(0-9, a-z), begin with character and set case-sensitive
- Phone number have to be number
- Full name is more than 4 characters (0-9, a-z) not set case-sensitive
- Date time field is formatted: m/d/y
- Sex is radio button (default male)
- E-mail field have to well-form in e-mail formatted
- Fields arent optional field is all required
- Credit card type is required
- Credit card number has 12 digits
- Credit card security code has 3 digits
Field of lists and options of few pages:
- Employees lists fields: ID, Username, Password, Delete button
- Product lists fields: ID, Product name, Catalogue name, Manufacturer name,view details button, delete button
- Product catalogues lists fields: ID, Catalogue name, Classification name,Image, Edit, View list products of catalogue, delete button
- Product manufacturers lists fields: ID, Manufacturer name, Image, Edit, Viewlist products of manufacturer, delete button
- Product classification lists fields: ID, Classification name, Image, Edit, Viewlist products of manufacturer, delete button
- User lists field: ID, Username, Full name, Status, View users details button,
delete button
- Orders lists fields: ID, Username, Receiver name, Type of payment, Amount ofproducts (type), total price, order status, order details button, delete button
- Receiver information will be showed in order details page
- Options of product details: Edit, Delete
All list can be ordered by one of all field
One page will show max 10 records
C0710G Group 3 - 2010 Page 24
8/2/2019 Documentation - Online Shopping
25/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
Profile page have other interface, and have link to back to homepage
Profile page components:
- Information of user
- Feedbacks manager
- Orders manager
Also regarding the payment through DD, the customer must first place an order, whichwill be succeeded only after the details of the demand draft for the total ordered amountis entered (like the DD number, Bank name, which branch of the bank, address of the
bank, amount of the DD, date on which DD is taken). Once the DD is received by theshop owner, the shop owner will withdraw the money, and once the money is
withdrawn, he/she will then deliver the products to that respective customer to thespecified address
Return products:
- Customer only return the products which place in that week. The return productwill be returned amount to product table.
- If customer see the products which they placed isnt similar the descriptions inwebsite or broken when deliver, they can exchange the products. When the
products are exchanged, they will be added to low quality products table.
System Designs
Context Diagram
C0710G Group 3 - 2010 Page 25
8/2/2019 Documentation - Online Shopping
26/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
Level 0
C0710G Group 3 - 2010 Page 26
8/2/2019 Documentation - Online Shopping
27/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
C0710G Group 3 - 2010 Page 27
8/2/2019 Documentation - Online Shopping
28/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
Level 1 Main function
User management
Order management
C0710G Group 3 - 2010 Page 28
8/2/2019 Documentation - Online Shopping
29/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
Product management
C0710G Group 3 - 2010 Page 29
8/2/2019 Documentation - Online Shopping
30/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
Employee n store management
C0710G Group 3 - 2010 Page 30
8/2/2019 Documentation - Online Shopping
31/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
Feedback management
C0710G Group 3 - 2010 Page 31
8/2/2019 Documentation - Online Shopping
32/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
Level 2
Register
C0710G Group 3 - 2010 Page 32
8/2/2019 Documentation - Online Shopping
33/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
Profile of user
Place order
C0710G Group 3 - 2010 Page 33
8/2/2019 Documentation - Online Shopping
34/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
Change order status
C0710G Group 3 - 2010 Page 34
8/2/2019 Documentation - Online Shopping
35/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
Catalogue management
C0710G Group 3 - 2010 Page 35
8/2/2019 Documentation - Online Shopping
36/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
Product management
C0710G Group 3 - 2010 Page 36
8/2/2019 Documentation - Online Shopping
37/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
Manufacturer management
C0710G Group 3 - 2010 Page 37
8/2/2019 Documentation - Online Shopping
38/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
Classification management
C0710G Group 3 - 2010 Page 38
8/2/2019 Documentation - Online Shopping
39/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
Employee change password
Employee management
C0710G Group 3 - 2010 Page 39
8/2/2019 Documentation - Online Shopping
40/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
Feedback management
Level 3
C0710G Group 3 - 2010 Page 40
8/2/2019 Documentation - Online Shopping
41/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
Edit profile
C0710G Group 3 - 2010 Page 41
8/2/2019 Documentation - Online Shopping
42/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
Return order (admin)
C0710G Group 3 - 2010 Page 42
8/2/2019 Documentation - Online Shopping
43/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
Cart information
C0710G Group 3 - 2010 Page 43
8/2/2019 Documentation - Online Shopping
44/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
Place orders steps
C0710G Group 3 - 2010 Page 44
8/2/2019 Documentation - Online Shopping
45/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
Add catalogue
Edit catalogue
C0710G Group 3 - 2010 Page 45
8/2/2019 Documentation - Online Shopping
46/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
Add product
Edit product
C0710G Group 3 - 2010 Page 46
8/2/2019 Documentation - Online Shopping
47/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
Add manufacturer
Edit manufacturer
C0710G Group 3 - 2010 Page 47
8/2/2019 Documentation - Online Shopping
48/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
Add classification
Edit classification
C0710G Group 3 - 2010 Page 48
8/2/2019 Documentation - Online Shopping
49/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
Add employee
Edit employee
C0710G Group 3 - 2010 Page 49
8/2/2019 Documentation - Online Shopping
50/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
Infrastructure
Entity Relationship Diagram
C0710G Group 3 - 2010 Page 50
8/2/2019 Documentation - Online Shopping
51/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
C0710G Group 3 - 2010 Page 51
8/2/2019 Documentation - Online Shopping
52/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
C0710G Group 3 - 2010 Page 52
8/2/2019 Documentation - Online Shopping
53/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
C0710G Group 3 - 2010 Page 53
8/2/2019 Documentation - Online Shopping
54/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
Entity Details
ua E-R vo
Database Design
a cu trc Database Diagram vo
3.5.1. Table Relationship Diagram
3.5.2. Table Details
Hierarchical Function Diagram
3.4.1. Login
C0710G Group 3 - 2010 Page 54
8/2/2019 Documentation - Online Shopping
55/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
3.4.2. Change admin profile
C0710G Group 3 - 2010 Page 55
8/2/2019 Documentation - Online Shopping
56/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
3.4.3. Create employee account
C0710G Group 3 - 2010 Page 56
8/2/2019 Documentation - Online Shopping
57/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
3.4.4. Change employee password
C0710G Group 3 - 2010 Page 57
8/2/2019 Documentation - Online Shopping
58/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
3.4.5. Add classification/manufacturer
C0710G Group 3 - 2010 Page 58
8/2/2019 Documentation - Online Shopping
59/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
3.4.6. Add catalogue
C0710G Group 3 - 2010 Page 59
8/2/2019 Documentation - Online Shopping
60/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
3.4.7. Add product
C0710G Group 3 - 2010 Page 60
8/2/2019 Documentation - Online Shopping
61/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
3.4.8. Edit classification/manufacturer/catalogue/product
C0710G Group 3 - 2010 Page 61
8/2/2019 Documentation - Online Shopping
62/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
3.4.9. Reply feedback
C0710G Group 3 - 2010 Page 62
8/2/2019 Documentation - Online Shopping
63/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
3.4.10. Search
C0710G Group 3 - 2010 Page 63
8/2/2019 Documentation - Online Shopping
64/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
3.4.11. Logout
C0710G Group 3 - 2010 Page 64
8/2/2019 Documentation - Online Shopping
65/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
3.4.12. Register
C0710G Group 3 - 2010 Page 65
8/2/2019 Documentation - Online Shopping
66/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
3.4.13. Change profile
C0710G Group 3 - 2010 Page 66
8/2/2019 Documentation - Online Shopping
67/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
3.4.14. Change password level 1
C0710G Group 3 - 2010 Page 67
8/2/2019 Documentation - Online Shopping
68/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
3.4.15. Change password level 2
C0710G Group 3 - 2010 Page 68
8/2/2019 Documentation - Online Shopping
69/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
3.4.16. Forget password
C0710G Group 3 - 2010 Page 69
8/2/2019 Documentation - Online Shopping
70/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
3.4.17. Place order
C0710G Group 3 - 2010 Page 70
8/2/2019 Documentation - Online Shopping
71/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
3.4.18. Create feedback
C0710G Group 3 - 2010 Page 71
8/2/2019 Documentation - Online Shopping
72/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
3.4.19. Return product
C0710G Group 3 - 2010 Page 72
8/2/2019 Documentation - Online Shopping
73/73
Aprotrain-Aptech doi can Computer Education C0710G Group 3 Tn ti
System Functions Design
3.5. Prototype
a vo nu c
Main source code
Task Sheet
Cn a cc task sheet chnh
vo y sau ny cn test kimth
Testing
Test Plan
C gng ln plan draft
Test Case
Test Repor
Deployment