@model LoginModel @using SmartStore.Web.Models.Customer; @using SmartStore.Core; @using SmartStore.Core.Infrastructure; @using SmartStore.Core.Infrastructure.DependencyManagement; @{ Layout = "~/Views/Shared/_Root.cshtml"; //title Html.AddTitleParts(T("PageTitle.Login").Text); //register URL with return URL (if specified) var registerUrl = Url.RouteUrl("Register"); if (!String.IsNullOrEmpty(this.Context.Request.QueryString["returnUrl"])) { var webHelper = EngineContext.Current.Resolve(); registerUrl = webHelper.ModifyQueryString(registerUrl, "returnurl=" + HttpUtility.UrlEncode(this.Context.Request.QueryString["returnUrl"]), null); } }

@T("Account.Login.Welcome")

@if (Model.CheckoutAsGuest) {
@T("Account.Login.CheckoutAsGuestOrRegister")
} else {
@T("Account.Login.NewCustomer")
}