Developer forum

Forum » Ecommerce - Standard features » DeleteOrderline completes order

DeleteOrderline completes order

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

We have a solution running on DW 9.10.13.
We have encountered some weird behavior on some carts, when deleting Orderlines.

The implementation is based on Rapido and the whole logic for deleting orderline is pretty standard: 
/Default.aspx?ID=6308&CartCmd=DelOrderLine&key=OL80557&redirect=false&feedtype=Counter

What happened is that on Orderline delete (using the link above) the cart was transformed automatically into an order without going through the regular checkout steps.

It is very hard to replicate it on the current carts. The only potential difference in this case is the moment the ordrline was created. the orderline that was deleted, was created more than a month before the moment of deletion. And the setting in ProductReservation is set to 30 days. I am not sure if this has anything to do with it but it seems the only potential difference from regular carts.

In OrderDebuggingInfo I have found this:

StartCheckout (OrderID:ORDER1362 (IsCart:True, Complete:False) Total:396,98, orderline total:396,98 kr; Orderlines:2 - Products:2, Discounts:0, Taxes:0, BOM:0, (IP:213.52.12.210, Url:/Default.aspx?ID=6308&CartCmd=DelOrderLine&key=OL80557&redirect=false&feedtype=Counter), Thread:134, HashCode:41211269.) 

Has anyone experienced this behavior before?

Thank you,
Adrian


Replies

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Nevermind.

We have found the issue. DeteleOrderLine method uses the last visited step information from session while all of the other actions (Increase, decrease and update) are not using the last visted cart step information.

We were using a separate minicart page for all Orderline actions (Delete, increase, update) and the cart module on this page only had one step before the checkout step while the regular cart has 2 steps before the checkout.

The situation descruibed above happend only if the user would go to step 2 in the normal cart then returned to step one and use the delete orderline action. In this case the minicart feed would redirect to step 2 shis meant checking out.

I am not sure if my explanation makes sense to anyone :)

The important part is that we have managed to spot the issue.

Adrian

 

You must be logged in to post in the forum