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?
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 )
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.
@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.
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.
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.
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
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
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? :)
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
Will the new release autofill recipient adress fields as well if the customer is logged in?
@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.
Sure thing :), thanks
Anders,
was GetAllOrdersXmlForMember() ever implemented?
I can't seem to be able to use it and can't see it anywhere in the documentation.
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
They may not be finalized. What if they want to see an order that they haven't paid for yet?
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
is working on a reply...