diff options
| author | Mike Vink <mike1994vink@gmail.com> | 2021-06-18 13:44:39 +0200 |
|---|---|---|
| committer | Mike Vink <mike1994vink@gmail.com> | 2021-06-18 13:44:39 +0200 |
| commit | 555b534cb7cb2782089ce0d1b2ea4797532e00f9 (patch) | |
| tree | 116c98e9eb7567a99abd54c60a1bc834ac934fa8 | |
| parent | 2555e4be4d4192b0da3f3d35f9b09795ecc041a9 (diff) | |
readmeUpdate(order section)
| -rw-r--r-- | readme.md | 11 | ||||
| -rw-r--r-- | readmeMedia/localStorage.gif | bin | 0 -> 501051 bytes |
2 files changed, 10 insertions, 1 deletions
@@ -1 +1,10 @@ - +# Description + +## Placing orders in shopping basket using localStorage, and then saving order in database + +What happens here is that first ground truth attraction is fetched from the +database to be displayed in the dom. When the user tries to input a number of tickets the button is checked against the ground truth (and the localStorage) to see whether tickets are available, otherwise the button is disabled and greyed out. + +When a valid order is placed, it is stored in the shoppingbasket or an array in the localStorage. This array of orders is displayed when the user visits the shoppingbasket page, where the user can also dynamically remove an order before paying. In this prototype the actual payment is not implemented, we assume a valid payment and the order is stored in the database. Orders in the database are displayed when visiting the my orders page. + + diff --git a/readmeMedia/localStorage.gif b/readmeMedia/localStorage.gif Binary files differnew file mode 100644 index 0000000..30ac48b --- /dev/null +++ b/readmeMedia/localStorage.gif |
