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
|