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

            return(CartUrlProvider.GetCartUrl(getCartUrlParam));
        }
Example #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));
        }
Example #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;
            }
        }