Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Adding CartItemCustomData information View modes: 
User avatar
Member
Member
Tillotto - 7/21/2010 4:49:17 PM
   
Adding CartItemCustomData information
Hello,
(showing up my lack of programming skills again!)

The site I'm working on wants to capture a custom field in an order.
I've done this in ~CMSModules\Ecommerce\Controls\ProductOptions\ShoppingCartItemSelector.ascx.cs
by adding a text box and passing the value to ~\CMSModules\Ecommerce\Controls\ShoppingCart\ShoppingCartContent.ascx.cs
where it is stored and I can see the value in the table COM_ShoppingCartSKU.
I really don't understand how to get it back out again :-(
As in, I expected the column CartItemCustomData to be available for ShoppingCartContent.ascx.cs to display but I am unable to Eval it.
Do I have to write my own Select for this, or am I missing something?
Many thanks for any assistance.

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 8/5/2010 3:10:01 AM
   
RE:Adding CartItemCustomData information
Hello,


did you try to get the value by API in the code?

CMS.Ecommerce.ShoppingCartItemInfo.CartItemCustomData - it returns the object with custom data.

API Reference


Best regards,
Helena Grulichova