<addressmap> problem
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
problem

 
Post new topic   Reply to topic    Windows Server Forum Index -> Commerce Server
Author Message
Jason
Guest





Posted: Fri Jan 21, 2005 11:33 pm    Post subject: problem Reply with quote

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
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Commerce Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB