@Html.Action("CheckoutProgress", "Checkout", new { step = CheckoutProgressStep.Address })
@using (Html.BeginRouteForm("CheckoutBillingAddress", FormMethod.Post))
{
@Html.Widget("checkout_billing_address_top")
if (Model.ExistingAddresses.Count > 0)
{
@T("Checkout.SelectBillingAddress")
@foreach (var item in Model.ExistingAddresses)
{
}
}
@Html.Widget("checkout_billing_address_middle")
@if (Model.ExistingAddresses.Count > 0)
{
@T("Checkout.OrEnterNewAddress")
}
else
{
@T("Checkout.EnterBillingAddress")
}
@Html.ValidationSummary(true)
@{
var dataDictAddress = new ViewDataDictionary();
//Merge ModelState (required for validation)
dataDictAddress.ModelState.Merge(ViewData.ModelState);
dataDictAddress.TemplateInfo.HtmlFieldPrefix = "NewAddress";
@Html.Partial("_CreateOrUpdateAddress", Model.NewAddress, dataDictAddress)
}
@Html.Widget("checkout_billing_address_bottom")
}
@T("Checkout.OrderSummary")
@Html.Action("OrderSummary", "ShoppingCart")