Skip to content

Instantly share code, notes, and snippets.

@RyanABailey
Created November 23, 2015 02:04
Show Gist options
  • Select an option

  • Save RyanABailey/a3daa1b4c50397b0883b to your computer and use it in GitHub Desktop.

Select an option

Save RyanABailey/a3daa1b4c50397b0883b to your computer and use it in GitHub Desktop.
uCommerce API
/// <summary>
/// Get a catalogue
/// </summary>
/// <param name="catalogueName">name of the catalogue</param>
/// <returns>Product catalogue</returns>
public static ProductCatalog GetCatalogue(string catalogueName)
{
List<ProductCatalog> catalogs = UCommerce.Api.CatalogLibrary.GetAllCatalogs();
return catalogs.FirstOrDefault(productCatalog => productCatalog.Name == catalogueName);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment