Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

OrderAddress Metafields are not saved

Found in

EPiServer.Commerce 10.4.0

Fixed in

EPiServer.Commerce 10.4.3

(Or a related package)

Created

Mar 14, 2017

Updated

Mar 24, 2017

Area

Core

State

Closed, Fixed and tested


Description

Using EPIServer.Commerce 10.4

Trying to save the payment billing address as follows:

IOrderAddress address = GetDefaultBillingAddress();
address.Id = Constants.Order.BillingAddressName;
address.Properties["IsValidated"] = true;
address.Properties["UserChoosetoOverrideValidation"] = true;
payment.BillingAddress = address;

ServiceLocator.Current.GetInstance<IOrderRepository>().Save(cart);

All properties are saved properly except the MetaFields. They are all null.

Reported from http://world.episerver.com/forum/developer-forum/Episerver-Commerce/Thread-Container/2017/3/order-address-metafields-saving-issue/