Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 8th, 2007, 07:17 PM
Registered User
 
Join Date: Jun 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default persistent shopping basket and price changes

Hi

In the book, the persistent shopping cart is stored as a serializable class in the asp.net profile system. The book claims that this saves the user the time and trouble of writing their own tables and stored procedures for accessing the shopping cart.

I have never implemented a persistent shopping cart like this. What would you do if the product information has changed since the user last visited the website. I guess when you first load the stored shopping basket you could check the shopping basket against the database to see if the products still exist and if their prices are still the same. However, doesnt the very fact you have to check the shopping basket against the database negate any benefits of storing the basket in the asp.net profile rather than in its own database tables?

thanks very much
andrea

 
Old May 3rd, 2009, 12:12 PM
Authorized User
 
Join Date: Jul 2006
Posts: 13
Thanks: 3
Thanked 0 Times in 0 Posts
Default

The aspnet_Profile table is data hungry with three large columns. The download has 500 rows - almost 1mb of data.

Thebeerhouse stores shoppingcart and user settings in this table so with say 10,000 users you would be looking at up to 20mb of data in one table.

Along with the fact that the persistent cart doesn't reflect any changes in stock qty or price, it looks like the data would be better maintained in specific tables.

Do customers want to see old items in their cart on the next visit anyway? Amazon keeps the old cart data but I personally find it a pain to clear out my old cart when I'm buying.





Similar Threads
Thread Thread Starter Forum Replies Last Post
shopping cart-fly to basket in asp.net shanthiniGanesh .NET Framework 2.0 3 August 1st, 2012 01:36 PM
Persistent URL (P.U.R.L) sloesch VB.NET 1 January 23rd, 2006 11:57 AM
Persistent Classes?? MAtkins General .NET 8 December 15th, 2004 04:00 PM
total of items in my basket Ashleek007 Classic ASP Basics 1 January 29th, 2004 10:03 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.