Posted: March 23, 2016 at 9:29 am
|
Hello, I have followed this thread to enable all countries in Braintree payments. I was wondering if there is a possibility to have Switzerland selected as default in the payment screen? Thanks in advance, |
Hello, The payment form which is shown after the registration form in step 2 of registration checkout for paid events will auto-populate the country that the registrant/attendee selects in step 1. Are you collecting the address question group during your registrations? — |
|
|
Hi, |
Hello, Here is some feedback on accomplishing that. I would look at where most of your guests are located. For example, if most are in Switzerland, then it could help to default to Switzerland. See example 2 in this link: https://gist.github.com/lorenzocaum/0b8f168596912fd8252d — |
|
|
hi, |
Hi, this uses jQuery to load the default selection. I browsed to your registration checkout page and it was on Switzerland: — |
|
|
Hi, |
Hello, go with the updated example 2 and replace US with CH and that should work. https://gist.github.com/lorenzocaum/0b8f168596912fd8252d — |
|
|
Hi, This is what I have right now in the site specific plugin. Should I replace all of this with example 2?
|
Yes, go ahead and replace what you shared with the updated version and be sure to change US to CH. — |
|
|
Hi Lorenzo, I just did it. Now it shows Switzerland as default country, but again it asks for the State as obligatory input:(( Could you make it disappear? I wish this was designed from scratch with the European users in mind… |
|
there is a link to make people add a state, but this would be really stupid to make people add information that is not required, while we want them to make the payment as painlessly and as quickly as possible… |
That is fine. Go with this instead: https://gist.github.com/anonymous/d7be948afd8ac95e2793 So replace what you currently have with the above. — |
|
The support post ‘Braintree payments: Select a country by default’ 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.