richard
-
5/27/2010 2:02:48 AM
RE:Unable to delete/empty shopping cart outside of shopping cart control
Hi Pavel
I have the exactly the same problem tried what you suggest but the CleanUpShoppingCart method does not seem to work. I get a Object not set to an instance... etc.
I am calling this.ShoppingCartControl.CleanUpShoppingCart(); in the ProcessPayment() method. But I think because I am using a stand alone page - ie not in a shopping cart step then I can't use this.
The issue is that I can update the orderid to completed and paid ecertera but when they go back and try to add anything to their cart I get this exception:
Message: [DataConnection.ExecuteQuery]: Query: INSERT INTO COM_ShoppingCartSKU ([ShoppingCartID], [SKUID], [SKUUnits], [CartItemCustomData], [CartItemGuid], [CartItemParentGuid] ) VALUES ( @ShoppingCartID, @SKUID, @SKUUnits, @CartItemCustomData, @CartItemGuid, @CartItemParentGuid); SELECT SCOPE_IDENTITY() AS [CartItemID] : caused exception: The INSERT statement conflicted with the FOREIGN KEY constraint "FK_COM_ShoppingCartSKU_COM_ShoppingCart". The conflict occurred in database "brick_bay", table "brick_bay_user.COM_ShoppingCart", column 'ShoppingCartID'.
|