Deleting cart won't work

Vote:
 

Hello,

I'm trying to delete a cart that is conntected to a contact but after calling

CartHelper.Delete();
CartHelper.Cart.AcceptChanges();

My cart still exists and have items in it. If i try to remove it from Commerce Manager it works. Somebody knows what I'm doing wrong?

Episerver cms version: 7.7.1

Episerver commerce version: 7.5.446.2

//Tobias Lindberg

#87054
Jun 09, 2014 14:03
Vote:
 

Hi,

The code looks ... correct. I don't really know why it does not work for you. Would you mind to try this:

CartHelper.Cart.Delete();
CartHelper.Cart.AcceptChanges();
The difference is that this version does not clear the promotion usages for the cart, as CartHelper.Delete() does.
Regards.
/Q
#87071
Jun 09, 2014 15:24
Vote:
 

Hello, thanks for your answer!

I have already tried to use delete on cart directly and it made no diffrence.

I aslo tried to empty the cart and then do a delete but no luck there..

//Tobias

#87102
Jun 10, 2014 9:06
Vote:
 

I'm faceing the same issue. Does anyone have anything to try?

#87387
Jun 12, 2014 8:11
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.