# AdditionalOrderInfo emptied?

**URL:** <https://forum.litium.com/t/additionalorderinfo-emptied/902>\
**Category:** Questions\
**Created:** [June 3, 2019, 3:52pm UTC](https://forum.litium.com/t/additionalorderinfo-emptied/902 "2019-06-03T15:52:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andreas3133](https://avatars.discourse-cdn.com/v4/letter/a/2bfe46/32.png) [@Andreas3133](https://forum.litium.com/u/Andreas3133)\
**Post date:** [June 3, 2019, 3:52pm UTC](https://forum.litium.com/t/additionalorderinfo-emptied/902/1 "2019-06-03T15:52:38Z")

</div>

On the checkout page I add some additional order information (CurrentState.Current.ShoppingCart.OrderCarrier.AdditionalOrderInfo), but when an order is placed (with Klarna checkout) and we get to the confirmed state (OrderStateBuilder), the orderCarrier’s AdditionalOrderInfo is now empty.

How do I save additional order information which I can retreive by the time the order is confirmed? I need these values for our order export.

Litium version: 6.11

---

<div class="post-metadata">

**Author:** ![steve.redstorm](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/steve.redstorm/32/14_2.png) [@steve.redstorm](https://forum.litium.com/u/steve.redstorm)\
**Post date:** [June 4, 2019, 12:13pm UTC](https://forum.litium.com/t/additionalorderinfo-emptied/902/2 "2019-06-04T12:13:42Z")

</div>

It is possible that you save your AdditionalOrderInfo after its been saved on disc.  
You can check that in Files/Klarna… and if your additional information is not there then it will be empty of course.

---

<div class="post-metadata">

**Author:** ![Andreas3133](https://avatars.discourse-cdn.com/v4/letter/a/2bfe46/32.png) [@Andreas3133](https://forum.litium.com/u/Andreas3133)\
**Post date:** [June 4, 2019, 3:38pm UTC](https://forum.litium.com/t/additionalorderinfo-emptied/902/3 "2019-06-04T15:38:42Z")

</div>

It appears the AdditionalOrderInfo I want is not in the Klarna files. But how will I be able to add them correctly?

We have a checkout page where you can change some options, for example setting a delivery service point. These options do ajax calls to Litium to save these values to AdditionalOrderInfo of the ordercarrier. I’m a bit unsure how to do this correctly.  
I’ve tried using `CurrentState.Current.ShoppingCart.OrderCarrier` and `CartService.OrderCarrier.AdditionalOrderInfo` but that does not seem to help.

Another thing I noticed when using CurrentState is that it will return the wrong website during ajax calls. I wonder if it will also give me the wrong ShoppingCart/OrderCarrier?

So, my question is, how do I set these values so that they end up in the order that is sent to Klarna?

---

<div class="post-metadata">

**Author:** ![steve.redstorm](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/steve.redstorm/32/14_2.png) [@steve.redstorm](https://forum.litium.com/u/steve.redstorm)\
**Post date:** [June 5, 2019, 7:44am UTC](https://forum.litium.com/t/additionalorderinfo-emptied/902/4 "2019-06-05T07:44:56Z")

</div>

Let’s focus on:

> CurrentState is that it will return the wrong website during ajax calls

I assume you are setting the ajax call in SiteInfoController and if you are, what do you pass in as parameter?

---

<div class="post-metadata">

**Author:** ![patric.forsgard](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/patric.forsgard/32/10_2.png) [@patric.forsgard](https://forum.litium.com/u/patric.forsgard)\
**Post date:** [June 5, 2019, 8:14am UTC](https://forum.litium.com/t/additionalorderinfo-emptied/902/5 "2019-06-05T08:14:30Z")

</div>

After updating the order in the shopping cart the order for Klarna need to be updated, this is done automatically in the `IPaymentWidget.GetWidget` method for the Klarna payment widget (implemented in `KlarnaPaymentWidgetController`).

If you not refreshing the widget you anyway need to update the order information that is sent and stored for Klarna, see the above method with the call of method `klarnaCheckout.CreateOrUpdateKcoOrder` that you manually need to invoke.

_Note: File and method names is from Acceleratorn 6.3 but I think it should be the same in your version also._

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/12eddac3b8b661de1db86af10ac8151b571e6fb9.png) [@system](https://forum.litium.com/u/system)\
**Post date:** [July 3, 2019, 8:14am UTC](https://forum.litium.com/t/additionalorderinfo-emptied/902/6 "2019-07-03T08:14:34Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
