Support

Home Forums Event Espresso Premium Default Country pre-selected in the Attendee Info & Payment Options Page

Default Country pre-selected in the Attendee Info & Payment Options Page

Posted: August 1, 2016 at 4:48 am

Viewing 10 reply threads


Oguzhan Altun

August 1, 2016 at 4:48 am

Hello,

In the attendee information & payment options page, in the country input field, is it possible to have Switzerland selected by default?

We had resolved this before it seems like it doesn’t work any more:
https://eventespresso.com/topic/braintree-payments-select-a-country-by-default/

Thanks in advance,


Seth Shoultes

  • Support Staff

August 2, 2016 at 6:40 am

Hello,

Can you please post a link to an event where this is happening? If you can, please create an event for us to test with.


Oguzhan Altun

August 2, 2016 at 6:43 am

hi there,
you can select any of the events and you will see the issue in the second step of the checkout. If you want to test the full process, you can always select “bank payment” as payment.

Full list of events here, an example event here.


Josh

  • Support Staff

August 3, 2016 at 12:05 pm

Hi Oguzhan,

Can you verify that you still have this code activated on your site?

https://gist.github.com/anonymous/d7be948afd8ac95e2793


Oguzhan Altun

August 3, 2016 at 12:15 pm

hi, yes I had this code from our previous topic. Here is what I have in my site specific plugin:

https://gist.github.com/altuno/b98435eb7ccd19bec2283cff8500f448


Josh

  • Support Staff

August 3, 2016 at 1:25 pm

The code that you have set on your site will only auto populate the country onto the billing form if it wasn’t already set in the registration form. I checked your site and “Switzerland” is indeed being autofilled onto the billing form. This isn’t a case where the code isn’t working anymore, it seems like you thought it was supposed to do something else.


Oguzhan Altun

August 4, 2016 at 1:44 am

hi,
ok, so is it possible to have “Switzerland” autofilled in the registration form?


Lorenzo Orlando Caum

  • Support Staff

August 4, 2016 at 5:27 am

Hello,

The first example in this link (https://gist.github.com/lorenzocaum/0b8f168596912fd8252d) can help with that.

Change US to CH (your country code) when you add the sample code to your existing site specific plugin.

Then try registering in a different web browser and you should see it populate to Switzerland.


Lorenzo


Oguzhan Altun

August 4, 2016 at 7:06 am

hi,
It’s already CH in my file, and I’m trying from an incognito window in chrome, and it does not auto fill the country field to Switzerland?


Josh

  • Support Staff

August 4, 2016 at 9:45 am

It doesn’t because you don’t have the code from Example 1 that Lorenzo linked to.


Oguzhan Altun

August 4, 2016 at 9:53 am

ok, sorry for missing this. It works now, thank you!

Viewing 10 reply threads

The support post ‘Default Country pre-selected in the Attendee Info & Payment Options Page’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso