Developer forum

Forum » Ecommerce - Standard features » Delete cart from backend

Delete cart from backend

Jonas Kæseler
Reply
Hi,

Cart V2 seems to crash when adding extremely many products (1.000.000.etc (50 zeroes)) to the it ( No wonder! :) ), BUT how do I delete the cart again from the backend?

When I delete it from the list and the user refreshes the frontend, the cart is re-created.

BR/
Jonas

Replies

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply
The cart is stored in the database. If you know its ID, you can delete rows from EcomOrderLines and EcomOrders.

Hope this helps,

Imar
 
Jonas Kæseler
Reply
Hi Imar

Thank you for your reply.

I do know the ID so it's possible for me to delete the cart and "unlock" the user.

However I'd like the shop-admin to do this himself so working in the sql firehose really isn't an option.
The shop-admin is able to delete the cart from the list in eCom. Looking in the database after this the cart still exists in EcomOrders.
When the extranet user refreshes the frontend he still has the same cart, in this case a crashed one.
It seems that the only way to detach the cart from the extranet user is to update the AccessUserCartID from AccessUser and make sure the user logs out from the extranet.

Is there a easier way?

BR
Jonas

 

You must be logged in to post in the forum