November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
Assuming you are using the SerializableCart mode. You would have to add metafields to PurchaseOrder metaclass. You can go to Commerce Manager to make sure all needed metafields have been added to the corresponding metaclasses
Thanks for quick answer!
I'm using SerializableCart mode which works perfectly fine.
In commerce manager I can see following screen:
https://www.screencast.com/t/4KTmnlrJ8
In my understanding everything is connected properly and yet properties are set to null for both LineItems and PurchaseOrder entities. :(
What concerns me is that in MetaField table the definition has SystemMetaClassId set to 0 whether other, system metafields have value greater than 0:
https://www.screencast.com/t/diJY638PdwOU
Did you make sure you have exact matches between ICart properties and PurchaseOrder metafields, and between ILineItem properties and LineItem metafields?
Thank you for your assistance and quick answers, Quan Mai!
I managed to fix it.
FYI: in my case the issue was resolved by changing MultiLanguage switch from true to false. I don't need this property to have support for multiple languages so this solves my problem.
Hi,
I have an issue with SaveAsPurchaseOrder method. I got a cart with several Properties and try to save PurchaseOrder. The thing is that my extra properties both in IPurchaseOrder and in LineItems are lost. Please advise.
Some code:
This is how I create a cart:
Next I want to create purchase order:
For more context, this is how I added meta fields to Purchase Order and Cart:
In this case, namespace is:
public static string NamespaceName = OrderContext.Current.LineItemMetaClass.Namespace;
And class name is:
public static string ClassName = OrderContext.Current.LineItemMetaClass.Name;
[Pasting files is not allowed]