Hello everyone,
Is there any plugin to get the zone of a country please?
Examples:
France ==> zone = Europe
Emirates ==> zone = Middle East
Algeria ==> zone = North of Africa
…
It is for e-commerce
Thank you !
Hello everyone,
Is there any plugin to get the zone of a country please?
Examples:
France ==> zone = Europe
Emirates ==> zone = Middle East
Algeria ==> zone = North of Africa
…
It is for e-commerce
Thank you !
Yes, there are a few strategies and plugins you can use. Here’s a simple approach:
there two ways
1: Use a “Countries” plugin + custom mapping
Install a plugin that gives country data (name, code and region
In your database or app logic, create a table or field mapping each country to its “zone” (e.g. “France → Europe”, “UAE → Middle East”, “Algeria → North Africa”).
When the user selects or sends a country, use a lookup in that mapping to return the zone.
Find a public API that returns a country’s region/zone given a country name or code (e.g. REST Countries API).
In Bubble use the API Connector:
Call the external API with the country name/ISO code
The API returns region/continent
Use that returned region/continent as your “zone” in the app