Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > ShoppingCartItemInfo to OrderItemInfo View modes: 
User avatar
Member
Member
rockey102-gmail - 4/13/2011 2:36:12 PM
   
ShoppingCartItemInfo to OrderItemInfo
Ive been looking for a simple way to map custom fields from ShoppingCartItemInfo to OrderItemInfo. Looking through the ShoppingCart I see that ShoppingCartInfoProvider.SetOrder is called in order to insert the order information into the database.

Is the mapping based off of a configuration or is it coded in the ShoppingCartInfoProvider Class?

Thanks.

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 4/13/2011 3:52:31 PM
   
RE:ShoppingCartItemInfo to OrderItemInfo
Hello,


If you save data to ShoppingCartCustomData field, it will convert data to OrderItemCustomData field automatically. If you add a custom field, you need to move data by a custom code. We process the shopping cart to order in:

~\CMSModules\Ecommerce\Controls\ShoppingCart\ShoppingCartPreview.ascx.cs (the ProcessStep method)

So you could add a custom code there.


Best regards,
Helena Grulichova