cgruber
Guest
|
Posted:
Sat Oct 01, 2005 12:50 am Post subject:
Get Custom Property |
|
|
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 |
|