E-commerce - Zone of countries

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 !

1 Like

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

  1. Install a plugin that gives country data (name, code and region

  2. 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”).

  3. When the user selects or sends a country, use a lookup in that mapping to return the zone.

2: Use an external API

  1. Find a public API that returns a country’s region/zone given a country name or code (e.g. REST Countries API).

  2. In Bubble use the API Connector:

    • Call the external API with the country name/ISO code

    • The API returns region/continent

  3. Use that returned region/continent as your “zone” in the app