I'm slightly confused about the relationship between an order and the customer (sounds like a strange statement but bare with me!).
In uCommerce when create a PurchaseOrder and get hold of the basket, it seems like the Customer property is null. During the checkout process I've written some code that assigns a customer (the user that just registered (both an umbraco Member and a uCommerce Customer with corresponding MemberId property)) to the PurchaseOrder and saves it. To assign billing and delivery details I use the methods TransactionLibrary.EditBillingInformation() and TransactionLibrary.EditShippingInformation(). At this stage I now have a PurchaseOrder that has a Customer, Billing Address and Shipping Address.
However.....as far as I can tell the Customer is never used whatsoever. The backend UI does not show the Customer details, in fact in the Order-View it shows the Billing Firstname + Lastname in the Customer column, not the actual name of the Customer.
Having a Customer related to an Order will be useful because it means we can query orders for a particular customer, run analytics etc. The Customer object itself will be useful because we can store some personal information against the user, and list multiple addresses for each Customer (allowing them to select a delivery address from an existing list of addresses), but...am I missing something? Is the Customer property on the PurchaseOrder really not used by uCommerce in any other way? i.e. it's not shown with an order, and actually you cannot search for orders using their name either...example:
Customer registers using firstname "Dave" At checkout they change the billing address firstname property to David, or John Within uCommerce you search for orders for any customers matching firstname "Dave" - no orders are returned.
That would suggest to me that really the only purpose of relating an Order back to a Customer is so that you could run a query to return all Orders by Customer N...
If anyone could provide their understanding/thoughts/opinions that would be greatly appreciated.
Re: Adding a customer to a PurchaseOrder: uCommerce will add a customer to the PurchaseOrder during the Checkout pipeline, if there is no Customer associated at that point. The task called "CreateCustomer" will try to look up the customer from the entered email address or from the member id, if the user is logged in.
Re: Billing Address data vs Customer data: I the latest release, the search should look for the customer data instead of the billing address data. And the order data displayed should be the from the customer.
It was changed very recently. Please retry with the latest version. :-)
I'm in the same situation now. Hope you might have found the solution for this issue. Can you share the solution here, so that it might be very helpful for others like me.
Relationship of Customer to Order
Hi all,
I'm slightly confused about the relationship between an order and the customer (sounds like a strange statement but bare with me!).
In uCommerce when create a PurchaseOrder and get hold of the basket, it seems like the Customer property is null. During the checkout process I've written some code that assigns a customer (the user that just registered (both an umbraco Member and a uCommerce Customer with corresponding MemberId property)) to the PurchaseOrder and saves it. To assign billing and delivery details I use the methods TransactionLibrary.EditBillingInformation() and TransactionLibrary.EditShippingInformation(). At this stage I now have a PurchaseOrder that has a Customer, Billing Address and Shipping Address.
However.....as far as I can tell the Customer is never used whatsoever. The backend UI does not show the Customer details, in fact in the Order-View it shows the Billing Firstname + Lastname in the Customer column, not the actual name of the Customer.
Having a Customer related to an Order will be useful because it means we can query orders for a particular customer, run analytics etc. The Customer object itself will be useful because we can store some personal information against the user, and list multiple addresses for each Customer (allowing them to select a delivery address from an existing list of addresses), but...am I missing something? Is the Customer property on the PurchaseOrder really not used by uCommerce in any other way? i.e. it's not shown with an order, and actually you cannot search for orders using their name either...example:
Customer registers using firstname "Dave"
At checkout they change the billing address firstname property to David, or John
Within uCommerce you search for orders for any customers matching firstname "Dave" - no orders are returned.
That would suggest to me that really the only purpose of relating an Order back to a Customer is so that you could run a query to return all Orders by Customer N...
If anyone could provide their understanding/thoughts/opinions that would be greatly appreciated.
Thanks in advance
Al
Hi Al,
Re: Adding a customer to a PurchaseOrder:
uCommerce will add a customer to the PurchaseOrder during the Checkout pipeline, if there is no Customer associated at that point. The task called "CreateCustomer" will try to look up the customer from the entered email address or from the member id, if the user is logged in.
Re: Billing Address data vs Customer data:
I the latest release, the search should look for the customer data instead of the billing address data.
And the order data displayed should be the from the customer.
It was changed very recently. Please retry with the latest version. :-)
Kind regards,
Jesper
Hi higgsy,
I'm in the same situation now. Hope you might have found the solution for this issue. Can you share the solution here, so that it might be very helpful for others like me.
Thanks,
Jebastin.
Hi Jebastin,
What is it you're trying to achieve?
is working on a reply...