Exemplo n.º 1
0
        public ActionResult Index()
        {
            if (!CurrentStoreFrontConfigOrThrow.UseShoppingCart)
            {
                RedirectToAction("Index", "Checkout");
            }

            if (!CheckAccess())
            {
                return(BounceToLogin());
            }

            Cart cart = CurrentStoreFrontOrThrow.GetCart(Session.SessionID, CurrentUserProfileOrNull);
            CartConfigViewModel cartConfig = CurrentStoreFrontConfigOrThrow.CartConfigViewModel(false, false);

            GStoreDb.LogUserActionEvent(HttpContext, RouteData, this, UserActionCategoryEnum.Cart, UserActionActionEnum.Cart_View, "", true, (cart == null ? (int?)null : cart.CartId));

            ViewData.Add("CartConfig", cartConfig);
            return(View("Index", cart));
        }
Exemplo n.º 2
0
        public ActionResult TestPayPal()
        {
            bool result = CurrentStoreFrontConfigOrThrow.TestPayPal(this);

            return(RedirectToAction("Index"));
        }