Query product types

Querying a single product type

To query a single product type, you must perform the following:

  1. Get an instance of the EcommerceManager object.
  2. Get the product type.
    To get the product type, you  must either call the GetProductType method and pass the ID of the product type as an argument, or call the GetProductTypes method and filter the collection by the desired criteria, for example by title.

Querying a product type by ID




Querying a product type by title




Query all product types

To query all product types, you must perform the following:

  1. Get an instance of the CatalogManager object.
  2. Get the product types.
    To get the product types, you must call the GetProductTypes method of the manager and return it as a list.

Querying all product types




Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?

Next article

Modify product types