Last post Mar 16, 2011 03:14 AM by Shengqing Yang - MSFT
Mar 12, 2011 12:19 AM|GurjitWadhwa|LINK
i've a songs website, where i'm adding items to cart for users who are logged in,
but when a song is deleted from the website the users still have the cart info still intact,
i'd like the songs in the cart also too be deleted when the song from the website is gone, how may i accomplish this ?
something like cascade delete !
Mar 16, 2011 03:14 AM|Shengqing Yang - MSFT|LINK
You must have a cart database, and when you delete any songs from your song database, you would loop all the records in the cart database to delete the songs which are not existed.
Another way is when you display the cart, check the songs in the cart list to see if the song is still in the song database. If it is not there, use a message to tell your customer that the song has been deleted.