示例#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;
            }
        }