Wanted to know how can I access order fields that I setup in the order management center?
Lets say I have a checkout event, I access the order object, but how do I access it?
From eCommerce.Cart.OrderIsPassedToCheckoutHandlerArgs myArgs
I access order object. and can go through the list.
Using Dynamicweb.eCommerce.Orders.OrderField I can access the field, but cannot extract the value from it.
toString() returns "Dynamicweb.eCommerce.Orders.OrderField".
This is how I am access it,
var orderFields = myArgs.Order.OrderFields; foreach (Dynamicweb.eCommerce.Orders.OrderField field in orderFields) { if (field.Name == "Rekvnr") { string s = field.ToString(); errorMessage("value "+ s); } }
Any suggestions? :-)
Regards,
Dmitrij