Please enable JavaScript.
Coggle requires JavaScript to display documents.
Online Shop Decomposition (Login/Register (Username ((These need to be:…
Online Shop Decomposition
Login/Register
Username
These need to be:
HTML Special chars
Sanitised and stored in users table of database
Stripped of slashes
Trimmed
email
Passwords
On register the user must enter password twice, to ensure they didnt make a mistake.
Hashing
Both are hashed in SHA512 (current secure hash, 128char) then compared. If they match stored in database. When a user logs in their input is hashed in the same algorithm and compared to the database entry.
Surname
Firstname
Browse Products
User interface
Accessibility
The site uses the bootstrap framework for aesthetics and to make it accessible on multiple platforms
Site navigation
There is widespread navigation, but not so much that the user is overwhelmed with their ability to navigate vast numbers of web pages. Instead the navigation is placed at points where it is logical, for instance a user can go back to the homepage from the store.
Product data storage
products table
price of product
productid (identifying number)
name of product
image url
featured artist
(The products will feature designs from various artists)
Dealing with logged in vs non logged in users
Anyone can browse the shop, but users must login to add to cart and then purchase
For sales history purposes as well as functionality
Non logged in users who attempt to add to cart will be sent to login page where there is a like to a register page if they haven't already registered.
Logged in users may add to and edit their cart, the data for which is stored in a cart table so they may access their cart even after their session has expired
Add to Cart
Cart Table
the name of the product
the price of the product
product id
the quantity chosen
userid of user the item was chosen by
the size
subtotal of item as of quantity
Adding products
Done from the shop
Quantity
Size
Removing products
Remove one product OR
Remove all products