private IList <BasketItem> GetBasketItems()
        {
            Basket         basket             = AbleContext.Current.User.Basket;
            IBasketService preCheckoutService = AbleContext.Resolve <IBasketService>();

            preCheckoutService.Combine(basket);
            _DisplayedBasketItems = BasketHelper.GetDisplayItems(basket, false);
            return(_DisplayedBasketItems);
        }
Beispiel #2
0
        protected decimal GetBasketSubtotal()
        {
            decimal            basketTotal  = 0;
            IList <BasketItem> displayItems = BasketHelper.GetDisplayItems(AbleContext.Current.User.Basket, true, true);

            foreach (BasketItem bi in displayItems)
            {
                basketTotal += InvoiceHelper.GetInvoiceExtendedPrice(bi);
            }

            return(basketTotal);
        }
Beispiel #3
0
 private void BindBasketGrid()
 {
     BasketItemsGrid.DataSource = BasketHelper.GetDisplayItems(AbleContext.Current.User.Basket, true, true);
     BasketItemsGrid.DataBind();
     BasketItemsGrid.Columns[3].Visible = TaxHelper.ShowTaxColumn;
 }