Copied to clipboard

Flag this post as spam?

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


  • Jesper Ordrup 1019 posts 1528 karma points MVP
    Nov 29, 2010 @ 19:47
    Jesper Ordrup
    0

    Xslt extensions

    Dear Sirs,

    I found

    teacommerce:GetOrderXml()
    teacommerce:GetFinalizedOrderXml()

    Missing

    GetOrdersXml(xpathquery)

    Business case: Get all orders for a given customer to display all orders to my customer.

    I would probably save the memberid in a custom order property to be able to use your api to retrieve the orders. Otherwise I'm forced to create another table, maintain it and run through this table while querying GetOrderXml() multiple times?

    /Jesper

  • Jesper Ordrup 1019 posts 1528 karma points MVP
    Dec 07, 2010 @ 12:22
    Jesper Ordrup
    0

    Hi guys,

    I cant find a way to list orders in xslt? 

    I can of course dev my own extension - but maybe I just cant find the one you made?

    /Jesper

  • Anders Burla 2560 posts 8256 karma points
    Dec 10, 2010 @ 10:02
    Anders Burla
    0

    Hi Jesper,

    We are working hard to make a new release of Tea Commerce - containing the features you ask for. We have refactored the data layer to be able to deliver a GetAllOrderXml() and you get all finalized orders in the system.

    Another nice thing is we have extended Tea Commerce to automatic register if a member is logged in - if so we save the member id automatic for you when the order is completed. And then we have a GetAllOrdersXmlForMember( int memberId )

    Is this what you are looking for? :)

  • Jesper Ordrup 1019 posts 1528 karma points MVP
    Dec 10, 2010 @ 10:03
    Jesper Ordrup
    0

     

    It completes my businesscase. I'm now able to let a member buy services, auto-capture and let them view their order history - without me doing any coding other than jquery.

    I love it when my VM Win7 stays closed :-)

     

    /Jesper

  • Claushingebjerg 939 posts 2574 karma points
    Dec 15, 2010 @ 15:59
    Claushingebjerg
    0

    Will the new release autofill recipient adress fields as well if the customer is logged in?

  • Anders Burla 2560 posts 8256 karma points
    Dec 15, 2010 @ 16:07
    Anders Burla
    0

    @Claus - Do you mean in our demo store or just basic in Tea Commerce? The demo store we could expand to do this, but nothing we have in mind in the next few weeks. Tea Commerce dosn't fill the address fields - but you can do that pretty simple in xslt if you output the address fields from there. Just check if a member is logged in and fetch his different properties and fill in the form automatic and Tea Commerce will handle it as normal.

  • Claushingebjerg 939 posts 2574 karma points
    Dec 15, 2010 @ 16:14
    Claushingebjerg
    0

    Sure thing :), thanks

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

    Anders,

    was GetAllOrdersXmlForMember() ever implemented?

    I can't seem to be able to use it and can't see it anywhere in the documentation.

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

    Hi Rich

    In which scenario do you need this? If its for a logged in member - you can use the GetFinalizedOrdersXmlForMember and send the memberId along to get all finalized orders for that specific member. Else you have the entire orders xml using GetFinalizedOrdersXml and then you can select what you need.

    Kind regards
    Anders

  • rich hamilton 117 posts 136 karma points
    Apr 17, 2012 @ 16:30
    rich hamilton
    0

    They may not be finalized. What if they want to see an order that they haven't paid for yet?

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

    Hmm good question :)

    At the moment its only possible to get the finalized orders. The carts is only in the DB and not in the order xml cache. So you could make some C# code to find the carts in the DB and then return the ids - then you can use the GetSpecificOrderXml and send the orderId along.

    Kind regards
    Anders

Please Sign in or register to post replies

Write your reply to:

Draft