i have nc 3.90
i find the following code in the \Views\Shared\_CreateOrUpdateAddress.cshtml
@if (Model.CountryEnabled && Model.StateProvinceEnabled)
{
<div class="inputs">
@Html.LabelFor(model => model.StateProvinceId, new { }, ":")
@Html.DropDownListFor(model => model.StateProvinceId, Model.AvailableStates)
<span id="states-loading-progress" style="display: none;" class="please-wait">@T("Common.Wait...")</span>
@Html.ValidationMessageFor(model => model.StateProvinceId)
</div>
}
@if (Model.CityEnabled)
{
<div class="inputs">
@Html.LabelFor(model => model.City, new { }, ":")
@Html.EditorFor(model => model.City)
@if (Model.CityRequired)
{
@Html.RequiredHint()
}
@Html.ValidationMessageFor(model => model.City)
</div>
}
@if (Model.StreetAddressEnabled)
{
<div class="inputs">
@Html.LabelFor(model => model.Address1, new { }, ":")
@Html.EditorFor(model => model.Address1)
@if (Model.StreetAddressRequired)
{
@Html.RequiredHint()
}
@Html.ValidationMessageFor(model => model.Address1)
</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>
}
i want to pre-fill some fields in billing address in order to skip them, i tried to ask before and no one could help me unfortunately.
can some one explain me please, what do I have to write in this code to pre-fill them? how do I write?
for countries i want to pre-fill "RUSSIA" and state "MOSCOW"
@Html.LabelFor(model => model.StateProvinceId, new { }, ":")
@Html.DropDownListFor(model => model.StateProvinceId, Model.AvailableStates)
for other input fields i want to pre-fill "—"
@Html.LabelFor(model => model.Address1, new { }, ":")
@Html.EditorFor(model => model.Address1)
i do very hope that some one eventually helps me with this.
PS. i find nopcommerce to be a very good ecommerce solution but there is only one thing that makes it awful at the same time: it doesn't have any plugins or solution for checkout process for russian market. it is stupid as hell. why do people have to enter their address and info if they want just pick-up for example?
i hope that nopcommerce community will provide some easy and smart process for russian ecommerce stores. it would be nice to make it the following way:
1. guest adds items to the cart
2. clicks checkout
3. there is two options: pick-up or shipping
3.1. if pick-up is selected then guest selects payment in store by cash or payment in store by card or other then he puts only his name, e-mail and phone number and confirms the order
3.2. if shipping is selected then guest puts all his info like name, address, country, state, city and etc and the chooses shipping and payment methods and then confirms the order
this way would be a very nice checkout experience for russian ecommerce sites