Exemplo n.º 1
0
 /// <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));
 }
Exemplo n.º 2
0
 /// <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));
 }
Exemplo n.º 3
0
 /// <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));
 }