Copied to clipboard

Flag this post as spam?

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


  • Peter Hansen 29 posts 72 karma points
    May 20, 2018 @ 08:18
    Peter Hansen
    0

    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

  • Rune Grønkjær 1372 posts 3103 karma points
    May 22, 2018 @ 05:45
    Rune Grønkjær
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft