protected void SetEditCartUrl(CartViewModel cartViewModel, BaseUrlParameter getUrlParam) { if (cartViewModel.OrderSummary != null) { var cartUrl = CartUrlProvider.GetCartUrl(getUrlParam); cartViewModel.OrderSummary.EditCartUrlTarget = cartUrl; } }
protected virtual string GetCartUrl() { var getCartUrlParam = new BaseUrlParameter { CultureInfo = ComposerContext.CultureInfo }; return(CartUrlProvider.GetCartUrl(getCartUrlParam)); }
public virtual ActionResult Minicart(int notificationTimeInSeconds) { var minicartViewModel = new MinicartViewModel { NotificationTimeInMilliseconds = notificationTimeInSeconds * 1000, Url = CartUrlProvider.GetCartUrl(new BaseUrlParameter { CultureInfo = ComposerContext.CultureInfo, }) }; return(View(minicartViewModel)); }
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; } }