Copied to clipboard

Flag this post as spam?

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


  • rich hamilton 117 posts 136 karma points
    Apr 13, 2012 @ 12:42
    rich hamilton
    0

    Tea Commerce Customers

    Am I right in thinking that Teacommerce doesn't have any customer information stored in the Member by default?

    Is there an easy way to re-populate the customert detail fields if they are logged in and complete an order and log in and start a new order?

  • Anders Burla Johansen 2560 posts 8256 karma points
    Apr 13, 2012 @ 14:57
    Anders Burla Johansen
    0

    Hi Rich

    You are right - Tea Commerce doesnt save any info as members - you will have to use the .NET API to do this - but its quite simple and its also different what scenarioes people want to cover in different shops - thats why we dont auto create members. But IF a member is logged in Tea Commerce will set the memberId of the Order to the logged in member.

    If a customer is logged in you can use the umbraco xslt library method to get the current member and you can output the info for the different fields.

    Kind regards
    Anders

  • rich hamilton 117 posts 136 karma points
    Apr 17, 2012 @ 14:32
    rich hamilton
    0

    Thanks Anders,

    Do you have an example of the XSLT to use to show orders of a user who is logged in?

     

  • Anders Burla Johansen 2560 posts 8256 karma points
    Apr 17, 2012 @ 16:29
    Anders Burla Johansen
    0

    <xsl:variable name="test" select="teacommerce:GetFinalizedOrdersXmlForMember(umbraco.library:GetCurrentMember()/@id)/order" />

    That should give your all orders for the logged in member

    Kind regards
    Anders

Please Sign in or register to post replies

Write your reply to:

Draft