Hello wonderful community!
I want to translate the list of countries that you have in the country selector in a 2 step order Form (ClickFunnels) Or at least I want to translate 1. That is Spain.
WHY?
My market is 100% spanish and they look for “España” instead of “Spain” and many people complain.
Do you know any app inside Funnelish or a custom code that could replace that particular field?
Thank you so much!! I’m really enjoying Funnelish!
Use this code it will easily translate any countries on the countries list for you:
<script>
$(function() {
let CountriesToTranslate = [
{name:"CA", translation:"Canadá"},
{name:"ES", translation:"España"},
// Add new countries after this...
];
for (let i = 0; i < CountriesToTranslate.length; i++) {
let country = CountriesToTranslate[i];
$(`[name="shipping_country"] option[value="${country.name}"], [name="country"] option[value="${country.name}"]`).text(`${country.translation}`);
}
});
</script>
Step 1: Copy the code above into your Clickfunnels’ step
Make sure the code is copied into the page’s Tracking code > Footer Code box.
Step 2: Change CountriesToTranslate array
By removing those two entries or adding new ones if you wish, you can add new entries (country translations) by appending this line:
{name:"A", translation:"B"},
After the "// Add new countries after this..." , the comma ‘,’ is part of the line.
Replace A with the ISO-2 country code, and replace B with the translation you want to be shown instead.
Step 3: Save changes!
Save your changes and try it out…
Tag me if you face any problems with the code above or have any questions…
Thank you for the heads-up, I made a small edit to the code above, now it should work perfectly fine on your page, give it a try again and let me know if you come across any other problems.
Hello Samlee, Is there a way to select a country by default and do not allow customers to change it? without making the whole country selection dissapear? I want the to be visible but do not allow changing it.
Our CF plugins have been deprecated and are no longer maintained. If you are looking to migrate your CF funnel to Funnelish, our support team is happy to help you through the process.
However, here on Funnelish, to customize the country list selector in Funnelish, you can use the “Select” input type in your form element and set the data type to “Shipping Country.”
For a custom list of countries, choose the “Custom” option in the Options field.
Add each country you want to display by clicking “Add option.”
Under “Name,” input the country code, and under “Value,” input the country name as you want it to appear in the dropdown.
This allows you to control the language and display of each country in the selector. If you want to translate the country names, simply enter the translated names in the “Value” field for each country.