Copied to clipboard

Flag this post as spam?

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


  • Matt Taylor 873 posts 2086 karma points
    Jun 23, 2011 @ 19:50
    Matt Taylor
    0

    Membership

    The Tea Commerce homepage says "Tea Commerce is fully integrated with Umbraco's membership system and gives you the ability to let customers login and view their order history and more." but I cannot see how it is configured?

    Regards,

    Matt

  • Daniel Bardi 927 posts 2562 karma points
    Jun 23, 2011 @ 22:46
    Daniel Bardi
    0

    You would need to create a secure page that display current users history.. using xslt macro

  • Anders Burla 2560 posts 8256 karma points
    Jun 23, 2011 @ 22:54
    Anders Burla
    0

    Hi Matt

    Tea Commerce integrates with the umrbaco membership by automatically associate the order with the member if he is logged in. You can just use the asp:login control. If you want to auto create a member when customers buy - you can do that by using the .NET API

    For the order history you will have to make an xslt macro as Daniel pointed out. Then you can use the GetFinalizedOrdersXmlForMember extension to get all orders associated to the logged in member and display what you want.

  • Matt Taylor 873 posts 2086 karma points
    Jun 23, 2011 @ 23:12
    Matt Taylor
    0

    Cool.

  • Hundebol 167 posts 314 karma points
    Sep 22, 2011 @ 13:31
    Hundebol
    0

    Hi Anders,

    Maybe i'm just "newbing" around in XSLT, but when i use the following:

    <xsl:copy-of select="teacommerce:GetFinalizedOrdersXmlForMember( umbraco.library:GetCurrentMember()/@id )" />

    I get a lot of XML output:

    <orders>
    <order id="13" totalvatwithoutfeesformattednosymbol="0,00" totalpricewithoutfeeswithoutvatformattednosymbol="0,00" totalpricewithoutfeesformattednosymbol="0,00" totalvatformattednosymbol="0,00" totalpricewithoutvatformattednosymbol="1,00" totalpriceformattednosymbol="1,00" totalvatwithoutfeesformatted="kr. 0,00" totalpricewithoutfeeswithoutvatformatted="kr. 0,00" totalpricewithoutfeesformatted="kr. 0,00" totalvatformatted="kr. 0,00" totalpricewithoutvatformatted="kr. 1,00" totalpriceformatted="kr. 1,00" totalvatwithoutfees="0.0000" totalpricewithoutfeeswithoutvat="0" totalpricewithoutfees="0.0000" totalvat="0.000000000000" totalpricewithoutvat="1.00000000" totalprice="1.000000000000" totalquantity="1" vatpercent="0" vat="0.0000" modifieddate="22-09-2011 12:09:17" createddate="22-09-2011 12:08:40" orderdate="22-09-2011 12:09:14" paymentstatus="[authorized]" isorder="True" memberid="1111" name="ORDER-13" umbracolanguageid="2">
    <orderline id="18" totalvatformattednosymbol="0,00" totalpricewithoutvatformattednosymbol="0,00" totalpriceformattednosymbol="0,00" unitvatformattednosymbol="0,00" unitpricewithoutvatformattednosymbol="0,00" unitpriceformattednosymbol="0,00" totalvatformatted="kr. 0,00" totalpricewithoutvatformatted="kr. 0,00" totalpriceformatted="kr. 0,00" unitvatformatted="kr. 0,00" unitpricewithoutvatformatted="kr. 0,00" unitpriceformatted="kr. 0,00" totalvat="0.0000" totalpricewithoutvat="0" totalprice="0.0000" unitvat="0.0000" unitpricewithoutvat="0" unitprice="0.0000" vatpercent="0" vat="0.0000" isunique="false" quantity="1" nodeid="1076">
    <properties>
    <nodename id="52">Red</nodename>
    <productname id="53">Product A1 - Red</productname>
    <productnumber id="54">1001</productnumber>
    </properties>
    </orderline>
    <currency id="1" culturename="da-DK" isocode="DKK">
    </order>
    </orders>

    The only things it writes out are the the data under <properties>

    But if I try with a value-of-select like this (fom your blog post):

      <xsl:for-each select="teacommerce:GetFinalizedOrdersXmlForMember( umbraco.library:GetCurrentMember()/@id )">
    <xsl:value-of select="@name" /> - <xsl:value-of select="@totalPriceFormatted" />
    </xsl:for-each>

    Nothing displays! What do i need to add, to access and display all the data?

    best regards,
    Brian

  • Anders Burla 2560 posts 8256 karma points
    Sep 22, 2011 @ 13:48
    Anders Burla
    0

    Hi Brian

    What if you try GetFinalizedOrdersXmlForMember(...)/order and have that in the for each - does that give you an output?

  • Hundebol 167 posts 314 karma points
    Sep 22, 2011 @ 14:02
    Hundebol
    0

    Yeah damn'it! It works!

    I had tried with "orders" - and then probably made a spelling mistake in the select. (or forgot to write createdDate instead of createddate!)

    Thanks for answering my newb question.

    best regards!

  • Anders Burla 2560 posts 8256 karma points
    Sep 22, 2011 @ 15:03
    Anders Burla
    0

    No problem :)

Please Sign in or register to post replies

Write your reply to:

Draft