Home › Forums › Calendar Products › Events Calendar PRO › US States won't go away when we're in Canada
- This topic has 3 replies, 2 voices, and was last updated 9 years, 3 months ago by Barry.
-
AuthorPosts
-
February 17, 2015 at 11:53 am #943143immeemzParticipant
Hello! All my events are in Canada. When I select “Canada” from the country list, the US states don’t change to Canadian Provinces even if the field label is “State or Province”. This is pretty much default behavior for the web and I don’t understand why the Events Calendar doesn’t do this. How can I get the Canadian provinces to show up?
I attempted to edit /the-events-calendar/lib/tribe-view-helpers.class.php to add the Provinces above the states, like so:
“QC” => __( “Quebec”, ‘tribe-events-calendar’ ),
“ON” => __( “Ontario”, ‘tribe-events-calendar’ ),
“AL” => __( “Alabama”, ‘tribe-events-calendar’ ),
“AK” => __( “Alaska”, ‘tribe-events-calendar’ ),
“AZ” => __( “Arizona”, ‘tribe-events-calendar’ ),…however, when creating a new venue, if selecting one of these provinces, the information is not retained and if you go back and view the venue or view the event, it has not saved that info, the state/province field remains blank. So, it’s not that simple.
I’ve searched the forum and apparently a few other non-US users also have issues with this but I was unable to find a solution.
February 18, 2015 at 7:29 am #943302BarryMemberHi immeemz,
I’m sorry you’ve hit up against difficulties, here.
There is currently a bug which means the US states dropdown does not disappear as expected when a country other than the United States is selected. We hvae this logged and it ought to be addressed in a subsequent release 🙂
I attempted to edit /the-events-calendar/lib/tribe-view-helpers.class.php to add the Provinces above the states
Modifiying core plugin code is rarely something we’d recommend. It may be possible to add a dropdown of Canadian provinces and territories (and indeed take a similar approach for various geographies) but, at this time, the provided means of doing this is a simple text field.
We’re always open to new ideas, though, so if you’d like to propose we offer dropdown functionality for countries other than the US please do post a note on our UserVoice channel (that way others can show their support for the idea) or indeed if there is a suitable existing request you can up-vote it.
Thanks again!
February 18, 2015 at 7:38 am #943305immeemzParticipantThank you! I’ve added my vote to this:
February 18, 2015 at 8:01 am #943320BarryMemberAwesome – and thanks for sharing that link (…if anyone else comes across this topic and feels the same, definitely do up-vote the above request!).
Thanks again 🙂
-
AuthorPosts
- The topic ‘US States won't go away when we're in Canada’ is closed to new replies.