GetFinalPrice() 공개 정적인 메소드

Gets the final price of the specified product price in the current shopping context.
public static GetFinalPrice ( int productId, int variantId, decimal originalPrice, ShoppingContext shoppingContext ) : decimal
productId int
variantId int
originalPrice decimal
shoppingContext Kooboo.Commerce.Carts.ShoppingContext
리턴 decimal
예제 #1
0
        public decimal GetFinalUnitPrice(int productId, int productPriceId, decimal originalPrice)
        {
            var customerId      = Customer == null ? null : (int?)Customer.Id;
            var shoppingContext = new ShoppingContext(customerId, Culture);

            return(PriceCalculationContext.GetFinalPrice(productId, productPriceId, originalPrice, shoppingContext));
        }