Get Custom Property
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
Get Custom Property

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





Posted: Sat Oct 01, 2005 12:50 am    Post subject: Get Custom Property Reply with quote

HI all

For our integration with another system, we need to write a recor
with various information about our order. I'm doing this i
TransactionContext.cs. I have all the fields I need except for one
it is a custom property for a product named 'Program Number'. Her
is the code for pulling everything I need

UserObject user = UserObject.CurrentUser

string billAddressLineOne = this.BillingAddress.Line1
string billCity = this.BillingAddress.City
string billState = this.BillingAddress.State
string billZip = this.BillingAddress.PostalCode
string billCountry = this.BillingAddress.Country
string billFirstName = this.BillingAddress.FirstName
string billLastName = this.BillingAddress.LastName
string ccExpire
this.fieldOrderForm[OrderFormFields.CreditCardMonth].ToString(
+
this.fieldOrderForm[OrderFormFields.CreditCardYear].ToString()
string ccNum
this.fieldOrderForm[OrderFormFields.CreditCardNumber].ToString()
string ccType
this.fieldOrderForm[OrderFormFields.CreditCardName].ToString()
string dateOrdered = DateTime.Now.ToString()
string email = user.EmailAddress
string orderFulfilled = "false"
string phone
user[MyAccount.UserProfilePropertyTelephoneNumber].ToString()

//PROBLEM:string programNumber = ???

string shipAddressLineOne = this.ShippingAddress.Line1
string shipAmount = this.ShippingTotal.ToString()
string shipCity = this.ShippingAddress.City
string shipCommercial = "false"
string shipCountry = this.ShippingAddress.Country
string shipFirstName = this.ShippingAddress.FirstName
string shipLastName = this.ShippingAddress.LastName
string shipState = this.ShippingAddress.State
string shipType
this.fieldFirstShippingMethodName.ToString()
string shipZip
this.ShippingAddress.PostalCode

How would I go about pulling this field? I know I will have to brea
apart the shipment into lineitems, but where do I go after I get tha
lineitem out

Thanks for any help you can give me
Chri
Back to top
cgruber
Guest





Posted: Mon Oct 03, 2005 4:50 pm    Post subject: re:Get Custom Property Reply with quote

I've found some stuff here
http://blogs.msdn.com/vinayakt/archive/2004/06.asp

Still trying to work it out
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