Search code examples
mysqlasp-classicshopping-cartsession-storage

Persistant storage for 100+ items in a shopping cart


Can I use a MySQL database session storage table to save and restore a shopping cart with over 100 products in it on a site that was built with Classic ASP?


Solution

  • I recommend: In your database table, create a field to uniquely identify the user. Perhaps a string type for email address? Or if you are going further, "ID_user". This will allow your user to call up their "wishlist" or "saved cart" when they come back to the site. See tables in image below called users, cart, cart_details, wishlist, etc.

    Here is a snapshot of a database I designed for a CMS that has a shopping cart and wishlist. Hope it helps! enter image description here