EE 1
EE 2
Country Variables

Developer

Big Unit Solutions

3rd Party (Free)

6 downloads (last 90 days)

Creative Commons Attribution Download

Compatibility

  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Better Workflow
  • Matrix

Requirements

  • jQuery for the Control Panel

Categories

Module

Tags

Allows you to make global variables country-specific. For example, declare a variable 'phone_number' just once and give it different values for different counrtries. Can automatically detect country based on ip address too.

Please make sure you install the ip2nation module first!

The module interface is essentially a grid, with variables down and countries across.

I would suggest adding all your variables first and then adding the countries one-by-one.

If you add a variable, you can add values for each country at that time.

If you add a country, you can add values for each variable at that time.

Usage is as follows:


{exp:country_variables country_code="au"}
    {phone_number_toll_free_alpha}
{/exp:country_variables}

If you omit the country code parameter, the module will detect the country based on IP address (ip2nation is required) and use it. If it can’t figure out your country it will default to the setting specified as default in the module.

Download Country Variables

EE Version Downloads Add-On Version Release Date
1.x Download

This entry was created January 11, 2011, 12:49 pm.
This entry was last updated January 13, 2011, 6:59 pm.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

1 Review:

Danielle LeComte 09.09.11

Rating - {addon_rating_average}

Doesn’t recognize the country via IP address. Any suggestions on how to get that working?