Developer forum

Forum » Ecommerce - Standard features » Cart not empty when order is complete

Cart not empty when order is complete

Søren Bremholm Jakobsen
Reply

Hi,

we are experiencing some issues regarding converting shopping carts from cart context status to order when order is completed. We are using a notificationsubscriber on checkoutdone to get an ordernumber from NAV and we recieve the NAV ordernumber which we display on the receipt page - no errors in our logfile. The users cart isn't empty but the reciept page is displayed - see attachment.

After the Order Redirecting to line (see attached) in the order log I would have expected Order Removing cart from session but instead cart is reloaded Order Cart has an orderID: ORDER8389 and is being reloaded14243.

The only solution at the moment is to delete the customer in DW and import or create customer manually again.

It's on a DW 9.3.8.

We are experiencing this on one specific customer/user account. Any thoughts, ideas or feedback?

2018-12-17_11_07_06-Dynamicweb_Admin.png

Replies

 
Nicolai Pedersen
Reply

Hi Søren

If you change the Dynamicweb order number in the callback (or other places), you also remove the possibility for Dynamicweb to remove the order/cart from the context as the orderid is used for that. Depending on your settings, the user might have the orderid in session, cookies and in memory and if you change it on the database without the context, Dynamicweb kinds of gets confused.

An option is to create a custom field to store the NAV order number, change the orderid very late in showing the receipt page (i.e. from the template it self) or ensuring that all context/cookies/sessions have been cleared/changed when the order id changes.

BR Nicolai

 

You must be logged in to post in the forum