Using "create user during checkout" feature, and it save everything, except the country, anyone had this issue, know a fix, or is it a bug?
<div class="form-group required">
<label for="EcomOrderCustomerCountry">@Translate("Country", "Country")</label>
<select name="EcomOrderCustomerCountry" id="EcomOrderCustomerCountry" class="form-control" required>
@foreach (LoopItem country in GetLoop("Countries"))
{
if (!string.IsNullOrWhiteSpace(country.GetString("Ecom:Country.IsCustomerCountryOrDefault")))
{
<option value="@country.GetString("Ecom:Country.Code2")" selected>
@country.GetString("Ecom:Country.Name")
</option>
}
if (string.IsNullOrWhiteSpace(country.GetString("Ecom:Country.IsCustomerCountryOrDefault")))
{
<option value="@country.GetString("Ecom:Country.Code2")">
@country.GetString("Ecom:Country.Name")
</option>
}
}
</select>
</div>