i use guest checkout and I want to disable some required fields in billing address
i found this code in \Views\Shared\_CreateOrUpdateAddress.cshtml
@if (Model.CountryEnabled)
{
<div class="inputs">
@Html.LabelFor(model => model.CountryId, new { }, ":")
@Html.DropDownListFor(model => model.CountryId, Model.AvailableCountries)
@Html.RequiredHint()
@Html.ValidationMessageFor(model => model.CountryId)
</div>
}
@if (Model.ZipPostalCodeEnabled)
{
<div class="inputs">
@Html.LabelFor(model => model.ZipPostalCode, new { }, ":")
@Html.EditorFor(model => model.ZipPostalCode)
@if (Model.ZipPostalCodeRequired)
{
@Html.RequiredHint()
}
@Html.ValidationMessageFor(model => model.ZipPostalCode)
</div>
}
is it possible to make it without touching the source code? how to do it only in the web version?
thanks.