Example #1
0
 /// <summary>
 /// Gets a price for a specific product in the current currency.
 /// </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>A price object.</returns>
 public static Price GetPrice(long storeId, string productIdentifier)
 {
     return(TeaCommerceHelper.GetPrice(storeId, productIdentifier));
 }
Example #2
0
 /// <summary>
 /// Gets a price for a specific product/variant in the current currency.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="storeId">Id of the store.</param>
 /// <param name="product">A product.</param>
 /// <param name="variant">A variant.</param>
 /// <returns>A price object.</returns>
 public static Price GetPrice <T>(long storeId, T product, VariantPublishedContent variant) where T : class
 {
     return(TeaCommerceHelper.GetPrice(storeId, product, variant));
 }