Exemplo n.º 1
0
        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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 private void BindBasketGrid()
 {
     BasketItemsGrid.DataSource = BasketHelper.GetDisplayItems(AbleContext.Current.User.Basket, true, true);
     BasketItemsGrid.DataBind();
     BasketItemsGrid.Columns[3].Visible = TaxHelper.ShowTaxColumn;
 }