Copied to clipboard

Flag this post as spam?

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

  • DFBerry 53 posts 130 karma points
    Apr 09, 2015 @ 21:24

    Umbraco to Merchello customer associations after purchase

    If someone has an umbraco member, and purchases anonymously (creating a merchello customer), is there an easy way to connect these two together?

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Apr 09, 2015 @ 21:33
    Rusty Swayne

    With an anonymous purchase, there is not Customer record - only an Anonymous Customer record. If you are asking about the use case, if they checkout anonymous and then proceed to login and have an associated customer, is there a way to associate the anonymous checkout with the customer then it is possible with a little code. You need to save a reference to the "InvoiceKey" that was generated with the anonymous checkout in a cookie, session ... whereever and then after they sign in

       var invoiceService = MerchelloContext.Current.Services.InvoiceService;
       var invoice = invoice.GetByKey(invoiceKey);
       invoice.CustomerKey = CurrentCustomer.Key;
Please Sign in or register to post replies

Write your reply to: