Customer Address's State always shows up as Alabama

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
15 years ago
I've found a couple of places where the US State keeps reverting to the first item in its list (Alabama in this case). I choose any other state but it always gets saved under (Alabama).

You should be able to recreate this under 1) MY ACCOUNTS, CUSTOMER ADDRESS tab, and 2) during checkout. Could be in other places but I just haven't checked.

Thoughts? Workaround? Now I don't want my customers stuff always going to Alabama!


BTW, real good stuff you guys produced. I'm really glad I found this site. Keep up the good work.
15 years ago
Open AddressEdit.ascx.cs file
Find and replace

if (stateProvince != null && stateProvince.CountryID == address.CountryID)
                    address.StateProvinceID = stateProvince.CountryID;

with

if (stateProvince != null && stateProvince.CountryID == address.CountryID)
                    address.StateProvinceID = stateProvince.StateProvinceID;
15 years ago
Makes sense, simple fix right?

I made the changes but the changes don't seem to be sticking. Is there a special way to compile this that I'm doing wrong? I put a breakpoint at the if statement but it doesn't stop there. This is probably more of a VS thing than anything but worth a shot asking.
15 years ago
just get the latest version if you use version without source code.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.