Developer forum

Forum » Development » 1 shopping cart, 2 orders. Can this happen?

1 shopping cart, 2 orders. Can this happen?

Dmitrij Jazel
Reply

Hi guys,

recently we encountered an issue, that is a bit strange.

http://screencast.com/t/evlG4TJRT7Yc

As you can see in screenshot - looks like 1 cart created 2 orders.

Please note the time between orders of the cart - it looks like they where registered at the same time. 

 

 

In front-end we just have a typical <form> with submit.

At the same time (to avoid any issues like that) we also included Jquery on click tha blocks button right when submit was clicked.

 

Any suggestions on this?

 

/Dmitrij


Replies

 
Nicolai Høeg Pedersen
Reply

Any custom code? That happens to call Order.Save?

 
Dmitrij Jazel
Reply

Hi Nicolai,

No, not really.

Only APi thing we are using is this:

[Subscribe(Dynamicweb.Notifications.eCommerce.Cart.CheckoutDone)]
    public class CheckoutDoneNotification : NotificationSubscriber
    {
        public override void OnNotify(string notification, NotificationArgs args)
        {
            var myArgs = (Dynamicweb.Notifications.eCommerce.Cart.CheckoutDoneArgs)args;
            var order = myArgs.Order;

            Dynamicweb.eCommerce.Naviconnect.Helpers.LogDebugMessage("CheckoutDoneNotification, notification: " + notification + ", orderId: " + myArgs.Order.ID);

...

And this gets executed 2 times as we checked logs.

There is no more API realted to shopping cart

 

/Dmitirj

 

You must be logged in to post in the forum