Jason
Guest
|
Posted:
Fri Jan 21, 2005 11:33 pm Post subject:
problem |
|
|
Hi. I have the following address map in web.config:
<orders>
<addressmap>
<profileDefinition name="Address" />
<property from="GeneralInfo.first_name" to="first_name" />
<property from="GeneralInfo.last_name" to="last_name" />
<property from="GeneralInfo.address_line1" to="address_line1" />
<property from="GeneralInfo.address_line2" to="address_line2" />
<property from="GeneralInfo.city" to="city" />
<property from="GeneralInfo.region_code" to="region_code" />
<property from="GeneralInfo.region_name" to="region_name" />
<property from="GeneralInfo.postal_code" to="postal_code" />
<property from="GeneralInfo.country_code" to="country_code" />
<property from="GeneralInfo.country_name" to="country_name" />
<property from="GeneralInfo.address_id" to="address_id" />
<property from="GeneralInfo.tel_number" to="tel_number" />
<property from="GeneralInfo.address_name" to="address_name" />
<property from="GeneralInfo.address_type" to="address_type" />
</addressmap>
</orders>
When I am creating a new orderAddress object, the region_code and
country_code fields are not being populated. I am using the following code:
Profile addr =
CommerceContext.Current.ProfileSystem.GetProfile("address_id",
addressID.ToString("B"), "Address");
Microsoft.CommerceServer.Runtime.Orders.OrderAddress oa = new
Microsoft.CommerceServer.Runtime.Orders.OrderAddress("Billing", addr);
I have verified that these values are set in the addr object, but not in the
oa object.
Does anyone have any idea what might be going wrong?
Thanks,
Jason |
|