Catalog Library
The catalog Library is a friendly way of allowing you to grab the information you need in order to display catalog items in your webshop. You can either ask for something explicitly or you can have it resolve the data on it's own by leaving the optional parameters alone.
The Catalog library can be accessed under the following namespace:
using Ucommerce.Api;
To resolve it use the following method or constructor inject the interface directly in your controller or web API route (requires you manually bridge the IOC with the MVC framework):
var catalogLibrary = Ucommerce.Infrastructure.ObjectFactory.Instance.Resolve<Ucommerce.Api.ICatalogLibrary>();
Ucommerce.Api.ICatalogLibrary
Methods
GetCatalog
-
Arguments
Guid?
catalogId = null
- Return type
Ucommerce.Search.Models.ProductCatalog
GetRootCategories
-
Arguments
Guid?
catalogId = nulluint
skip = 0uint
take = 300
- Return type
Ucommerce.Search.ResultSet<Ucommerce.Search.Models.Category>
GetCategory
-
Arguments
Guid?
categoryId = null
- Return type
Ucommerce.Search.Models.Category
GetCategories
-
Arguments
IList<Guid>
categoryIdsuint
skip = 0uint
take = 300
- Return type
Ucommerce.Search.ResultSet<Ucommerce.Search.Models.Category>
GetProducts
-
Arguments
Guid?
categoryId = nulluint
skip = 0uint
take = 300
- Return type
Ucommerce.Search.ResultSet<Ucommerce.Search.Models.Product>
GetProduct
-
Arguments
string
sku
- Return type
Ucommerce.Search.Models.Product
CalculatePrices
-
Arguments
IList<Guid>
productGuidsIList<Guid>
priceGroupGuids = null
- Return type
Ucommerce.Catalog.Models.ProductPriceCalculationResult
ChangePriceGroup
-
Arguments
Guid
priceGroupGuidBoolean
changeBasketBillingCurrency = True
- Return type
Void
GetVariants
-
Arguments
Ucommerce.Search.Models.Product
product
- Return type
Ucommerce.Search.ResultSet<Ucommerce.Search.Models.Product>
GetProducts
-
Arguments
IList<Guid>
categoryIdsUcommerce.Search.Facets.FacetDictionary
facetsuint
skip = 0uint
take = 300
- Return type
Ucommerce.Search.Facets.FacetResultSet<Ucommerce.Search.Models.Product>
GetProducts
-
Arguments
Guid
categoryIdUcommerce.Search.Facets.FacetDictionary
facetsuint
skip = 0uint
take = 300
- Return type
Ucommerce.Search.Facets.FacetResultSet<Ucommerce.Search.Models.Product>
GetFacets
-
Arguments
Guid
categoryIdUcommerce.Search.Facets.FacetDictionary
facetsuint
skip = 0uint
take = 300
- Return type
IList<Ucommerce.Search.Facets.Facet>
GetFacets
-
Arguments
IList<Guid>
categoryIdsUcommerce.Search.Facets.FacetDictionary
facetsuint
skip = 0uint
take = 300
- Return type
IList<Ucommerce.Search.Facets.Facet>