20.3. Implementation of an online bargain hunting shop

20.3.1. Getting user information with cookies and a database

There are a number of ways to implement a shopping-cart feature for an online shop. In fact, you developed an elementary implementation in Chapter 7. To simply our approach, we are going to use all the ECMAScript functions developed in section 7.4 and included in the libraries

cookie.js and online.js

These two libraries provide all ECMAScript functions that we need to handle cookies. In order to make the shopping cart in Chapter 7 more practical and more suitable for our online bargain shop, the following database features are added:

  • Obtain user information from the database and pass them to the shopping cart of the shop.

  • Develop ...

Get Practical Web Technologies now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.