Example #1
0
        public void BindData()
        {
            ShoppingCart Cart = ShoppingCartManager.GetCurrentShoppingCart(ShoppingCartTypeEnum.ShoppingCart);
            IndividualOrderCollection indOrders = IndividualOrderManager.GetCurrentUserIndividualOrders();

            if (Cart.Count == 0 && indOrders.Count == 0)
            {
                pnlEmptyCart.Visible = true;
                pnlCart.Visible      = false;
            }
            else
            {
                pnlEmptyCart.Visible = false;
                pnlCart.Visible      = true;
                phCoupon.Visible     = DiscountManager.HasDiscountsWithCouponCode();

                rptShoppingCart.DataSource = Cart;
                rptShoppingCart.DataBind();
                ValidateCart();
            }

            this.ctrlOrderTotals.BindData();
        }