Results 1 to 16 of 16

Thread: Shopping Cart Woes... [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2002
    Location
    Cleveland, Ohio
    Posts
    185

    Angry Shopping Cart Woes... [RESOLVED]

    Hello Again!

    I am trying to create a shopping cart in ASP. I have been successful in that I can add single items to the shopping cart, however, I cannot seem to delete them from the shopping cart. Below is the code that I have for a delete item script, basically taken from asp101, but I can't seem to get it to work. Any suggestions?

    HTML Code:
    Sub DeleteItemFromCart()
    	Dim ItemID
    	
    	ItemID = Request.QueryString("Key")
    	
    	Set dctCart = Session("ShoppingCart")
    
    	If dctCart.Exists(ItemID) Then
    			dctCart.Remove dctCart(ItemID)
    	Else
    		Response.Write("Couldn't find that item.<br>")
    	End If
    	
    	Set Session("ShoppingCart") = dctCart
    	
    End Sub
    Thanks,

    Jim P.
    Last edited by jpiller; Jan 20th, 2005 at 10:32 AM. Reason: Resolved the issue
    "The Force will be with you, always."

    --Ben Kenobi--

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width