/// <summary> /// Gets the current stock for a specific product. /// </summary> /// <typeparam name="T"></typeparam> /// <param name="storeId">Id of the store.</param> /// <param name="product"></param> /// <param name="variant"></param> /// <returns>The stock of the product. Will be null if no stock have been provided for this product.</returns> public static decimal?GetStock <T>(long storeId, T product, VariantPublishedContent variant) where T : class { return(TeaCommerceHelper.GetStock(storeId, product, variant)); }
/// <summary> /// Gets the current stock for a specific product. /// </summary> /// <param name="storeId">Id of the store.</param> /// <param name="productIdentifier">A unique identifier of the product. E.g. the node id from Umbraco.</param> /// <returns>The stock of the product. Will be null if no stock have been provided for this product.</returns> public static decimal?GetStock(long storeId, string productIdentifier) { return(TeaCommerceHelper.GetStock(storeId, productIdentifier)); }
/// <summary> /// Gets the current stock for a specific product. /// </summary> /// <typeparam name="T"></typeparam> /// <param name="storeId">Id of the store.</param> /// <param name="product"></param> /// <param name="variant"></param> /// <returns>The stock of the product. Will be null if no stock have been provided for this product.</returns> public static decimal?GetStock <T>(long storeId, T product) where T : class { return(TeaCommerceHelper.GetStock(storeId, product)); }