Developer forum

Forum » Ecommerce - Standard features » Don't save country during checkout

Don't save country during checkout

Heine Virenfeldt Kristensen
Reply

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>


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Heine

Are you sure the select is inside the form? And are you sure you do not have 2 fields with the same name?

If that is ok, we need to see the URL to see what can be wrong.

BR Nicolai

Votes for this answer: 1
 
Heine Virenfeldt Kristensen
Reply

Hi Nicolai

Selects is inside the form, can see the solution here: http://dev.norlindesign.niqweb.dk/

 
Nicolai Høeg Pedersen
Reply

Hi Heine

I'll have it checked by QA - it could be a bug!

Nice site and html by the way!

BR Nicolai

 
Oleg Rodionov
Reply

Hi all,

Yes, it's general bug reproduced on our test environment as well, I've created new TFS 25130 will be fixed on nearest 881 hot fix and next releases, thanks for observing.

BR, Oleg QA

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Heine

The problem TFS#25130 Checkout country not applied to new user created has now been fixed in version 8.8.1.21
You are able to find this build in the download section:

http://doc.dynamicweb.com/releases-and-downloads/releases

Please contact Dynamicweb Support if you need any additional help regarding this.

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 

You must be logged in to post in the forum