Mall - Shopping Cart - shopping cart functionality analysis
2. Functional analysis Cart
2.1. Demand
Description of Requirement:
- Users can add items to the shopping cart signed in
- Into the database
- Redis into (taken)
- Users can add items to the shopping cart while signed out
- Put localstorage
- Users can use the shopping cart settlement orders together
- Users can check their cart
- Users can modify the number of purchases in a shopping cart.
- Users can delete item in a shopping cart.
- Demonstrate a product offering in the shopping cart
- Changes in commodity prices prompted cart
2.2 flowchart
This picture depicts two main functions: to add items to the shopping cart, shopping cart query.
New Products:
- Determine whether the login
- They are: add items to the back of the Redis
- No: you add items to the local Localstorage
Either add, after the completion of all required queries cart list:
- Determine whether the login
- No: direct query and display data localstorage
- Is: logged in, you need to look at whether there is local data,
- There are: the need to submit to a background Add to redis, merge data, and then query
- No: go directly to the background check redis, then returns