Пример #1
0
    protected string GetItemName(object cartItem)
    {
        ICartItem item = (ICartItem)cartItem;

        OrderCalculator    orderCalculator    = new OrderCalculator();
        OrderAmountPackage orderAmountPackage = orderCalculator.CalculatePackage(
            StoreContext.CheckoutDetails,
            new CartItemGroup(item),
            StoreContext.Customer);

        return(item.GetOrderItemName(
                   StoreContext.Culture, CurrenntCurrency, orderAmountPackage));
    }