commerce updating user info Options
Chandy
Posted: Thursday, February 01, 2007 4:39:21 PM
Rank: Devotee

Joined: 11/16/2006
Posts: 55
Location: Scotland
Hi all (or Gert if you are out there!),

How can I update userinfo once an order has been created?

Essentially:

Dim Customer As New CustomerInfo
Customer.AddData("Name", txtName.Text)
...
Dim O As Order = Order.MakeNew(Customer.ToXml, Request.UserHostAddress, New MyPaymentMethod().Id, Session.SessionID, txtEmail.Text)

Dim i As CartItem
For Each i In store.Library.GetCart.Items
Dim line As OrderLine = New OrderLine
line.Quantity = i.Quantity
line.ProductName = i.ProductName
line.Price = i.Price
line.ProductId = i.ProductId
O.AddOrderLine(line)
Next

O.OrderStatus = Order.Status.NotConfirmed

====

then later
O.CustomerInformation("Name") = "new name value"

this does not work (object doesn't exist error) and would it update the database anyway even if it did?
How do I access and update the customer information later in my app?

Thanks,

Craig
Users browsing this topic
Guest


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