Developer forum

Forum » Ecommerce - Standard features » Error when merging carts

Error when merging carts

Asdis Gudmundsdottir
Asdis Gudmundsdottir
Reply

Hi there, 

We checked both the "Keep anonymous cart when user logs in" and "Merge the anonymous cart content with the cart saved on the user when logging in" in Settings - Ecommerce - Advanced -> Shopping Cart, but when there is already something in the logged in users cart we receive an error when logging in with something new in the anonymous cart, so the merging doesnt work. 

If there is nothing in the logged in users cart then there is no error.

System.Exception: Order id does not match id of order at Dynamicweb.Core.Ensure.That[TException](Boolean condition, String message) at Dynamicweb.Ecommerce.Orders.OrderLineRepository.Save(String orderId, IEnumerable`1 orderLines) at Dynamicweb.Ecommerce.Orders.OrderLineService.Save(String orderId, IEnumerable`1 orderLines) at Dynamicweb.Ecommerce.Orders.OrderService.Save(Order order, Boolean saveOldVersion) at Dynamicweb.Ecommerce.Cart.Frontend.GetContent()

Any ideas?

Running Dynamicweb version 9.8.5.

BR,

Asdis Erna


Replies

 
Nicolai Pedersen
Reply

Hi Asdis

We will have a look at this and get back to you!

BR Nicolai

 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply

Hi Asdis,

I've looked into the issue and I'm able to reproduce it.

What the best solution is, we'll have to discuss internally, but I've registered the bug under #79743.

Once I have more information, I'll let you know here.

- Jeppe

 
Asdis Gudmundsdottir
Asdis Gudmundsdottir
Reply

Great, thank you.

BR,

Asdis

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Asdis

The problem TFS#79743 "Merging anonymous cart causes exception" has now been fixed in Package "Dynamicweb.Ecommerce" version 1.8.59

You are able to find this update in the backend Package update section.

Also the correction are part of the 9.8.7 release 

You are able to find this build in the download section:

http://doc.dynamicweb.com/releases-and-downloads/releases

Please contact Dynamicweb Support if you need any additional help regarding this.

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 
Arnór Halldórsson
Arnór Halldórsson
Reply

Hi guys,

I'm following up on this for Ásdís while she's on maternity leave :)

We've updated the web to 9.8.7 and no longer get an error (at least not a visible one) when mergin an anonymouse cart during login (logged in user has empty cart).

But the cart's don't merge. If I have a product in the cart as a logged in user, log out, add another product to the cart and log in, only the first product remains in the cart. Is that expected behaviour or something you'll have to look into further?

Best regards,
Arnór Geir

 
Nicolai Pedersen
Reply

Can you post a screendump of your cart settings?

Capture.JPG
 
Arnór Halldórsson
Arnór Halldórsson
Reply

Yea those configs had been unchecked... #SorrySenpai... However, when I check them I get the error again :(

addtocarterror.png ShoppingCart.png
 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

We've got the same error on 9.8.5.
Same configuration.

Adrian

 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply

Hi all,

Adrian, this fix was implemented in 9.8.7, as Kristian Kirkholt says, so the error will be present on 9.8.5. Can you try and upgrade to that version and check it again?

Arnór, can you provide me the version number of your Ecommerce dll? You can find it in Settings -> System -> System information, then scroll down to the section "Versions" and find the "Dynamicweb.Ecommerce.dll".

- Jeppe

 
Bríet Pálsdóttir
Reply

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi All

The problem TFS#80608 "Error when merging carts" has now been fixed in Package "Dynamicweb.Ecommerce" version 1.8.81

You are able to find this update in the backend Package update section.

Also the correction are part of the 9.8.9 release 

You are able to find this build in the download section:

http://doc.dynamicweb.com/releases-and-downloads/releases

Please contact Dynamicweb Support if you need any additional help regarding this.

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 

You must be logged in to post in the forum