Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

These support forums are now closed for new topics and comments.
Please head on over to for support.

  • higgsy 65 posts 92 karma points
    Feb 19, 2014 @ 02:57

    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. 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), 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


  • Jesper Nielsen 141 posts 497 karma points
    Feb 21, 2014 @ 12:55
    Jesper Nielsen

    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,


  • Jebastin 32 posts 80 karma points
    Nov 19, 2014 @ 06:36

    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.



  • Morten Skjoldager 436 posts 1492 karma points
    Nov 25, 2014 @ 13:13
    Morten Skjoldager

    Hi Jebastin, 

    What is it you're trying to achieve? 

Please Sign in or register to post replies

Write your reply to: