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 http://eureka.ucommerce.net/ for support.

  • Marc Love (uSkinned.net) 349 posts 946 karma points
    Feb 24, 2013 @ 10:26
    Marc Love (uSkinned.net)
    0

    Retrieving customer from current Umbraco member

    I am trying to get at the customer related to the current logged in Umbraco member.

    umbraco.cms.businesslogic.member.Member loUmbracoMember = umbraco.cms.businesslogic.member.Member.GetCurrentMember();

    int liMemberID = loUmbracoMember.Id;

    Customer currentCustomer = Customer.Get(liMemberID);

    I have checked that a customer is definitely present for the member id however no customer is being returned from the Get method.

    Does anyone know what I am doing wrong?

    Cheers,

    Marc

  • Marc Love (uSkinned.net) 349 posts 946 karma points
    Feb 24, 2013 @ 10:30
    Marc Love (uSkinned.net)
    100

    Solved. Should have been using:

    Customer currentCustomer = Customer.ForMember(liMemberID.ToString());

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies