Is there any documentation on how the orders are linked to members? As I can't find any.
For example how you link the orders to membership user? Is it automatic? Should the memberId appear in the MemberId column in the order table? If so when, as it doesn't appear when the first orderline is added via javascript or .net. Will it appear once the order has been completed?
Then how do you get member's orders? I am looking at the javascript API documentation and can't find any mention and also in .net nothing to do with members is coming up on the intellisence on "Order" or TeaCommerce.Base or TeaCommerce.Library? Am I looking in the wrong place?
Glad that everyone is looking for an ecommerce system and that you delivers it to them :)
If a member is logged in - his id will get attached to the order when the payment form is generated ( the order approve page, just before payment ). You can always set the MemberId of the order using the .NET API. So you could hook into the orderFinalized event and auto create a new member and link the order.
You get a members orders in xslt using the GetFinalizedOrdersXmlForMember( memberId ) - we dont have a Razor method as we had a small problem with caching. But in .NET you can use Order.OrdersXmlCache.Root.XPathSelectElements( "./order" ) to get all orders - or use xpath to select the right ones
The xml cache only contains the finalized orders - but yes it should have been Order objects - but we hope to make Tea Commerce even better for Umbraco 5 and have loads of nice things in it - and have it integrate with umbraco even more.
Membership to order documentation
Hi Again..
Everyone wants an ecommerce system...!
Is there any documentation on how the orders are linked to members? As I can't find any.
For example how you link the orders to membership user?
Is it automatic?
Should the memberId appear in the MemberId column in the order table? If so when, as it doesn't appear when the first orderline is added via javascript or .net. Will it appear once the order has been completed?
Then how do you get member's orders? I am looking at the javascript API documentation and can't find any mention and also in .net nothing to do with members is coming up on the intellisence on "Order" or TeaCommerce.Base or TeaCommerce.Library? Am I looking in the wrong place?
Thanks
Bex
I can't edit my post but having just posted this I have come across
GETFINALIZEDORDERSXMLFORMEMBER
in the xslt extensions.. doh!
How do you get at them in .net? or javascript if there is a way?
Hi Bex
Glad that everyone is looking for an ecommerce system and that you delivers it to them :)
If a member is logged in - his id will get attached to the order when the payment form is generated ( the order approve page, just before payment ). You can always set the MemberId of the order using the .NET API. So you could hook into the orderFinalized event and auto create a new member and link the order.
You get a members orders in xslt using the GetFinalizedOrdersXmlForMember( memberId ) - we dont have a Razor method as we had a small problem with caching. But in .NET you can use Order.OrdersXmlCache.Root.XPathSelectElements( "./order" ) to get all orders - or use xpath to select the right ones
Will this help you in your job? :)
Anders
Ah that's why I couldn't find it.. didn't realise I'd have to use the xml cache.
Yep, that helps! Thanks very much.
The xml cache only contains the finalized orders - but yes it should have been Order objects - but we hope to make Tea Commerce even better for Umbraco 5 and have loads of nice things in it - and have it integrate with umbraco even more.
PS.. you can't set order.MemberId as "The set accessor is inaccessible". But I don't need it anyway, but thought I'd let you know!
Sorry for telling that you could - it will be available in the next release!
is working on a reply...