Limiting states on checkout form

davidzupecdavidzupec Member
in Help edited May 2014
Hello, I want to limit the states to just NY and the country to US on my checkout form. I have FC.locations.limitCountriesTo(["US"]); for the country, and works fine but I'm having problems with the state. I tried FC.locations.limitStatesTo(“NY”); but it's not working.

Thank you!
  • fc_adamfc_adam FoxyCart Team

    You need to pass the country code for the limitStatesTo function as well - so it would be FC.locations.limitStatesTo("US", "NY")
  • Thank you Adam, that worked perfect!
Sign In or Register to comment.