Might be a stupid question. I have installed Tea and about to build my site. I was wondering if there's a way to extract all products from the Tea-API instead of doing the Ancestor-list enumerator (more like a an Umbraco-API-take kind of thing).
Like if I want to create a SurfaceController and search existing products for properties.
Until now I've only found order and orderline stuff in the Tea-API.
There's not no. All product is, by default, placed in the normal Umbraco content. Umbraco is better at getting it's own nodes than we could ever hope to be.
So just use that.
That said. What we do when we want to query a large amount of Umbraco nodes we use Umbraco Examine. Make an examine index with all your products and query for them in that using the examine API.
TeaCommerce > fetching product list
Hi there,
Might be a stupid question. I have installed Tea and about to build my site. I was wondering if there's a way to extract all products from the Tea-API instead of doing the Ancestor-list enumerator (more like a an Umbraco-API-take kind of thing).
Like if I want to create a SurfaceController and search existing products for properties.
Until now I've only found order and orderline stuff in the Tea-API.
// p
Hi Peter,
There's not no. All product is, by default, placed in the normal Umbraco content. Umbraco is better at getting it's own nodes than we could ever hope to be. So just use that.
That said. What we do when we want to query a large amount of Umbraco nodes we use Umbraco Examine. Make an examine index with all your products and query for them in that using the examine API.
For ultra speed you can make your own product data provider for Tea Commerce and get the data directly from the examine index all the time. https://docs.teacommerce.net/v3.0.0/reference#product-information-extractor
Hope that helps you.
is working on a reply...