Пример #1
0
 protected void SetEditCartUrl(CartViewModel cartViewModel, BaseUrlParameter getUrlParam)
 {
     if (cartViewModel.OrderSummary != null)
     {
         var cartUrl = CartUrlProvider.GetCartUrl(getUrlParam);
         cartViewModel.OrderSummary.EditCartUrlTarget = cartUrl;
     }
 }
Пример #2
0
        protected virtual string GetCartUrl()
        {
            var getCartUrlParam = new BaseUrlParameter
            {
                CultureInfo = ComposerContext.CultureInfo
            };

            return(CartUrlProvider.GetCartUrl(getCartUrlParam));
        }
Пример #3
0
        public virtual ActionResult Minicart(int notificationTimeInSeconds)
        {
            var minicartViewModel = new MinicartViewModel
            {
                NotificationTimeInMilliseconds = notificationTimeInSeconds * 1000,
                Url = CartUrlProvider.GetCartUrl(new BaseUrlParameter
                {
                    CultureInfo = ComposerContext.CultureInfo,
                })
            };

            return(View(minicartViewModel));
        }
Пример #4
0
        protected void SetEditCartUrl(CartViewModel cartViewModel)
        {
            if (cartViewModel.OrderSummary != null)
            {
                var getCartUrlParam = new BaseUrlParameter
                {
                    CultureInfo = ComposerContext.CultureInfo
                };

                var cartUrl = CartUrlProvider.GetCartUrl(getCartUrlParam);

                cartViewModel.OrderSummary.EditCartUrlTarget = cartUrl;
            }
        }