Upgrades Questions on upgrading to version 5.x.
Version 5.x > Upgrades > Upgrade to 5.0 ECommerceContext.CurrentShoppingCart View modes: 
User avatar
Member
Member
ryans-tushaus - 4/16/2012 11:42:10 PM
   
Upgrade to 5.0 ECommerceContext.CurrentShoppingCart
I'm upgrading from version 4.1 to version 6. I'm performing high level testing after each incremental upgrade. I've upgraded from version 4.1 to version 5.0. I'm using custom e-commerce providers. After the upgrade to version 5.0, I am receiving the following error:

The method or operation is not implemented.

The error is occurring on the following line of code:

if (CMS.Ecommerce.ECommerceContext.CurrentShoppingCart != null)

Why is this happening?

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 4/18/2012 1:50:31 AM
   
RE:Upgrade to 5.0 ECommerceContext.CurrentShoppingCart
Hello,

I've checked our API for versions 5.X and 6.X and they have the given class and property defined. Could you please double check, if you are using the correct DLL files and if your project points to them correctly? Could you please also post the whole call stack (error message)?

Best regards,
Boris Pocatko

User avatar
Member
Member
ryans-tushaus - 4/24/2012 1:49:54 AM
   
RE:Upgrade to 5.0 ECommerceContext.CurrentShoppingCart
Thanks for you reply.

The code that I was modifying had been written by another developer at another company. As I dug into the code, I discovered that, for some reason, some functions in the custom e-commerce provider were not customized and were also not calling the equivalent methods from the CMS.CMSEcommerce namespace.

Problem solved.

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 4/24/2012 2:19:18 AM
   
RE:Upgrade to 5.0 ECommerceContext.CurrentShoppingCart
Hi,

Thanks for the information on the solution.

Best regards,
Zdenek