I've added a new custom field to the Order Address class in the E-commerce Module. We already had 2 other custom fields there.
In code, I am trying to set the value using the below code example:
But the "SetValue" method returns false, and value is not set (I try and read back using address.GetValue("AddressCompanyName"), but it returns "null".
For the other custom fields, the "SetValue" method returns "true".
From what I can see, I am doing everything the same as the existing custom fields, but I must have missed something.
I've checked the COM_Address table in the database, and the newly created field doesn't not appear to be added, which is strange.
Any tips are greatly appreciated.
The field now appears in the database - HOWEVER - I am still not able to Set the value - (SetValue method returns false).
If I check the .ColumnNames property, it does not contain my new field.
I did a test on the Order Class instead, and the field appeared right away in the table, and also appears in the .ColumnNames property.