Online Shopping System
Online Shopping System
Prepared by: Ross Dusenbury, Bhawana Goel, Dongkun Kim, Tarun Kumar Nandi Suresh Babu, Yuanling Li, Hongtao Quin, Vijaya Senthil Veeri Chetty
Table of Contents
1.
Introduction 1.1. Purpose 1.2. Project Scope 1.3. Technologies to be Used
2.
Overall description 2.1. Product Perspective and Stakeholders 2.2. Product Functions 2.2.1. For Users 2.2.2. For Sellers 2.2.3. For Administrators 2.3. User Classes and Characteristics 2.4. Design and Implementation Constraints
3. 4.
Use Cases and Activity Flow System Analysis 4.1. ER Diagrams 4.2. Data Flow Diagrams
5. 6. 7. 8.
Classes 5.1. Internal Data Structures System Architecture User Interface Testing 8.1. Unit Testing 8.1.1. Log In 8.1.2. Log In and Start Shopping 8.1.3. View Online Help 8.1.4. Payment 8.1.5. Shipping 8.1.6. Logout 8.2. Integration Testing
Introduction
This document is the design report for a web-based Shopping Mall. This is mainly about how to doand also will help provide an insight to the whole system design and implementation of the online Shopping Mall. This software has the following three main components: 1. Implementthe different types of user Administrator, Customer and Vendors. 2. Implementshopping cart for checkout and payment procedures. 3. Managementof products and orders. This design document mainly consists of State Machine/ Activity Flow Diagrams, Class Design, Internal Data Structures, Architectural design, User Interface and Testing. The main purposes of thisdesign document are listed below. 1. Precise understanding of the requirements and constraints related with the programming language, and User Interface. 2. 3. System decomposition into manageable units or modules Abstraction of the system implementation with the help of classes
4. Provide a basic outline of the User Interface of the online shopping mall. This report is the result of the design phase. The class diagrams and activity provide a schematic representation of the various classes used and design flow respectively. The diagrams were prepared using IBM Rational Software Architect. The Consolidated Activity diagram provides a model to visualize the flow in the system as a whole. The class diagrams also hold the data structures that would be used and also their data types. The mall will be implemented using PHP as the programming language. MySQL database will be used to store vital user, product and order information.
1.1 Purpose
The purpose of this project is to create a functional website for people to be able to both buy and sell goods. Users of this website will be able to create an account which will supply them with an easy to use interface in order to both purchase items listed by other users and sell items to other users. The basic requirements state that the users will be able to securely register and manage their profiles. They will
also be able to navigate through available items by category, or by using a well executed search function. Finally, a payment mechanism will be built in to allow the use of credit cards and checks to purchase items in order to abstract away one of the most difficult parts of setting up an on-line store. The website will be maintained and managed by administrators. They will have the authority to approve and reject requests for new shops and maintain various lists of shop categories. The administrator will also be able to control customers and visitors actions.
Safe payment gateways will be used and all the security checks will be made to ensure a safe deal. 0? The system will remain up at all times. The hardware and software should be robust and will be tested extensively.
deliverers, shareholders, investors, and customers. The primary requirement is the case with which they can find, transport, and purchase needed items. The internal stakeholders consist of employees, marketers, managers, owners, and developers. Their primary requirement may be profit, both short and long-term. For these reasons, each groupof stakeholders will want the website to emphasize high-margin item. Managers, another group of stakeholders, will require the application to track visitors. The applications developers are stakeholders too: They may want to use new development technology to keep up to date. Our team strives to look for improvement in all related business areas so that members can benefit from its services and obtain the best value for their interests.
1? 2? 3? 4? 5? 6?
Registering Login Forgot/change passwords Account Details section containing contact details Browse and Search: User should be able to browse through the entire items list by
modifying certain selectioncriteria's such as: Item category, Price range selection, Item/Seller Rating based selection 0? In addition to providing the above mentioned search feature, user should also be able to search for a particular product 1? This is applicable to all stakeholders (Guests, Customers, Sellers and Administrators) 2? Shopping: 3? Add / remove items to their shopping cart/list 4? Customer should have the option to buy desired item(s) sold by one or more sellers. 5? Customer will have access to finalize product lists of items she wishes to buy and make the final payment 6? The website should support all popular credit cards and make sure that the transaction happens securely 7? History 8? 9? 10? Shopping history: List of items previously shopped Item View history : List of recently viewed items Searchhistory: Recent search criteria used by a customer
A customer will be able to purchase items through the shopping mall. She will also be able to see her purchase history. A secure session would be maintained and a user name and password would be allocated for every customer. Customers wont be able to make changes to the system. She will only be able to browse through the items using search function and checkout them. She can then purchase it online via the secure payment method and by providing her billing address and shipping address. Customers will also be able to provide reviews for various items and rate them. 0? For Administrators
An administrator has more privileges than regular user. Main functions of an administrator will be the management of customers and vendors. Administrators can view, modify and delete the personal information and passwords of members if necessary. They would also be able to search information about members and vendors. Administrators will also be able to view the invoice list of placed orders, orders that have shipped, and disqualified orders. 0? Vendors
Any usercan submit a shop creation request through the application. After the approval of the request by the Mall Administrator, the requester will be notified. The Shop Owner will be responsible for setting up her products and managing her shop. The shop owner will be able to add, remove or update items from her shop. She will need to assign items to categories listed by the Administrator so that the management of products in the mall is easy. The Shop Owner can also decide to close the shop and remove it from the mall.
Must be coded efficiently enough to run well on provided server hardware 0? Client side code and/or web pages must be able to run efficiently on low end hardware 1? The database will be created and maintained in a way that makes it of reasonable and manageable size. 3.
Admins:
Shop
Administrators:
5.Classes
The following classes are used to design an online shopping mall. A class diagram is used to represent the relationship between the classes in a Unified ModelingLanguage (UML).
Class Diagram
0?
User Class The user class is used to store the details of all the users. It is used to create a new user or help an existing user login. There are two types of users: admin and a normal user. Every usercan place an order or search for a product. The admin can add and delete products as well. Order Class
0?
The order class contains the details of the placedorder. This class is used to place or delete an order. The order class is notified when an order is placed or deleted by a user. 0? Product Class The product class contains the detailsof the products in the online shopping mall. This class will be notified when the user searches for a product or the admin adds or deletes a product. Feedback Class The feedback class contains the detailsof the comments posted on the various products. This class is responsible for posting comments on products and deleting them by users. Specifications Class The specifications class contains the various specifications of the products. This class is used to edit the specifications of the products.
0?
0?
Order Class 7? Order ID: the order ID associated with that particular order 8? User ID: the ID of the user who placed the order 9? Payment method: the mode of payment 10? Address: the shipping address of the user 11? Product_id: the ID of the product that was ordered 12? Quantity: the number of items that were ordered 13? Amount: thecost of the order 14? Date: the date the order was placed
Status: the current status of the order, whether the order was shipped or still inthe processing stage 0? 1? 2? 3? 4? 5? 6? 7? Product Class Attribute: the description of the product Product ID: the unique ID of the product Name: the name of the product Price: the price of the product Model: the model number of the product Image: a picture of the product
Feedback Class 8? Comment ID: the ID of the comment published 9? Product ID:the ID of the product on which the comment was made 0? Customer ID:the ID of the customer who made the comment 0? Timestamp:the time when the comment was made 1? Data:the string that was posted as a comment 3? 4? 5? 6? 7? Specifications Weight: the weight of the product Length:the length of the product Width:the width of the product Height:the height of the product Shippable: whether the product is shippable or not
2?
6.
System Architecture
Comparing to previous structuresor architecture of functions or actors, this part mostlyfocuses on the overall system design architecture, which describes the internal necessary requirements and structures during design process for system designers.
UI
s e
Customers Vendors
Det ail
Finalize Maintain
In this figure, means related function or management implementations,and means related communication modules.
Except for UI, testing and optimization, the on-line shopping mall system is divided into 4 major modules as below. Each of them implements a primary utility for either vendors or customers orboth. 0? Product Module o Some of its sub-modules (or functions) are exclusive for customers. This module requires designers to implement browse and search function for our web visitors and is supposed to be as friendly as possible and as reliable as possible (i.e. fast, 7-24 service, barely break down and recovery). As it was mentioned in Part 2, browse/search should be by different categories. Then cart is necessary for users convenience and they should be able to modify any selected items in the cart list.The history record could function as a browse/search history review, similar product recommendation, etc. 0? Order Module o It contains three major roles, check-out, which connects customers, vendors, banks and administrators. Order information/status check, and order maintenance, which allows users to act (cancel/return etc.) on their placed orders to some extent. 0? Payment Module o Provides payment methods (i.e. various bank cards or other commercial tools) and provides security mechanism 0? Account & AuthorizationModule o This part creates and records users information in database with different priority and authority, which might allow customers or vendors to have their own account to buy or sell. Related architecture is very straight forward. Administrator authorization required. All the modules above should be able to connect to database system, normally execute basic SQL. 7.
User Interface
Create Account
E-mail notification
Log in
Create Products
Shopping Cart
Store Administer
Testing
8.1.1 Login
a. Identification and Password properly initiated, encrypted, and validated b. MySql injection test c. Checking for uppercase, lowercase, number, special character in ID and password d. Either of ID and password not blank e. Checking for overlapping ID
Checking for weak passwords f. Not available to minors without permission from parents g. Checking for e-mail notification about making ID and initiating password
8.1.4 Payment
a. Certification username and card information for security b. Consumer payment for money in proper order. c. Certification for expiration month and year d. Certification about CVS number e. Checking the maximum limit of credit card f. Checking for signature
8.1.5 Shipping
a. Checking for available address information b. Checking for private information and updated address c. Chargeable or no chargeable for shipping d. Checking for number about comment to deliveryman e. Checking about time for shipment f. Check about comment when the consumer will not be in home
8.1.6 Logout
Search history saved properly after logout a. Checking out information saved in database b. Customer redirected to the login screen c. Checking e-mail system about purchasing information
Conclusion
The application can be used for any E-commerce application. It is easy to use, since it uses the GUI provided in the user dialog. User friendly screens are provided. The application is easy to use and interactive making online shopping a recreational activity for users. It has been thoroughly tested and implemented. The Online Shopping is designed to provide a web based application that would make searching, viewing and selection of a product easier. The search engine provides an easy and convenient way to searchfor products where a user can search for a product interactively and the search engine would refine the products available based on the users input. The user can then view the complete specification of each product. They can also view the product reviews and also write their own reviews. Use of Ajax components make the application interactive and preventannoying post backs. Its drag and drop feature make it easy to use.
References
0? http://krex.k-state.edu/dspace/bitstream/2097/1109/1/ChaitanyaMittapelli2008.pdf 1? http://www.ietymec.org/papers/N12.pdf 2? http://osmlite.googlecode.com/files/OSM_SRS_v0.1.dochttp://osmlite.googlecod e.com/files/OSM_SRS_v0.1.doc 3? http://www.it.iitb.ac.in/~kamlesh/Page/Reports/oos-project-report.pdf 4? http://www.scribd.com/doc/15442179/Shopping-Cart-SoftwareRequirement- HYPERLINK "http://www.scribd.com/doc/15442179/ShoppingCart-Software- Requirement-Specification"Specification 5? http://www.ietymec.org/papers/N12.pdf 6? http://osmlite.googlecode.com/files/OSM_SRS_v0.1.dochttp://osmlite.googlecod e.com/files/OSM_SRS_v0.1.doc 7? http://www.it.iitb.ac.in/~kamlesh/Page/Reports/oos-project-report.pdf