Ecommerce Adding Custom Field to Order

Arekibo Communications asked on January 5, 2021 18:17

Hi,

Kentico 11:

I'm trying to add a custom step to my checkout process where the user selects a date they would like the receive their products by. I have set up the page with a date selector within the checkout wizard and I've attempted to use the ShoppingCartCustomData to store the date value and I seem to be able to store the value.

    ShoppingCartInfo cart = ECommerceContext.CurrentShoppingCart;
    ShoppingCart.ShoppingCartCustomData.SetValue("CollectionDate", dtCollectionDate);
    ShoppingCartInfoProvider.SetShoppingCartInfo(ShoppingCart);
    ECommerceContext.CurrentShoppingCart = ShoppingCart;
    ComponentEvents.RequestEvents.RaiseEvent(this, e, SHOPPING_CART_CHANGED);

I'm trying to display this saved date in the Order Tab in the Admin Area (Image Below). I've been able to access the saved value and display it on the generated invoices.

Image Text

It would be great if I could displaying the Date within the individual orders too.

Image Text

Any help or direction to achieve this would be great.

Thanks Kieran

Recent Answers


Zach Perry answered on January 8, 2021 21:39

Looks like you will have to modify that control in code, it's CMSModules\Ecommerce\Controls\UI\OrderList.ascx

Similar Question

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.