Spain Shipping Zones for PrestaShop 8.x
"Nafarroa" instead of Pamplona, the Balearics without Menorca or Ibiza, Oviedo but not Gijón, etc...
This free PrestaShop 8.x module automatically updates the 52 Spanish provinces with official naming and allows grouping them into logistics zones synchronized with your carriers.
Video tutorial: Complete configuration in PrestaShop 8
Why you need this module in PrestaShop 8
PrestaShop 8 inherits historical problems with Spanish provinces that complicate shipping management:
? Incomplete or missing provinces
? Incorrect names (Nafarroa, Castelló)
? Misconfigured islands (only Mallorca)
? Impossible to group by geographic zones
? Complete 52 Spanish provinces
? Correct official naming
? All Balearic and Canary Islands included
? Create zones: Peninsula, Islands, National...
Main features
How it works internally
The module manages information through two custom tables:
ps_es_shipping_zones
Stores the logistics zones you create (auto?incremental ID + zone name).
ps_es_shipping_zone_province
Links each zone to its assigned provinces through an N:N relationship.
Synchronization process:
- Removes old or duplicate provinces for Spain
- Inserts the 52 provinces with official ISO codes
- Checks and creates the "Europe" zone if it doesn't exist
- Updates
ps_stateandps_countrytables
// Creates custom zone and syncs with PrestaShop
Db::getInstance()->insert('es_shipping_zones', ['name' => $name]);
// Links selected provinces
foreach ($provinces as $id_state) {
Db::getInstance()->insert('es_shipping_zone_province', [
'id_zone_custom' => $id,
'id_state' => $id_state
]);
}
Advantages for your e-commerce
Quick Setup
Predefined buttons to select regions
Flexible Zones
Group provinces according to your strategy
Error?free
Automatically validates duplicate provinces
Integrated Carriers
Synchronizes with the shipping system
Visual Management
Table with created zones and provinces
Multistore Ready
Works in complex environments
Installation in PrestaShop 8.x
Upload the module
From the module manager, upload es_shipping_zones.zip or manually unzip into /modules/es_shipping_zones/.
Automatic installation
Upon installation, the module synchronizes the 52 Spanish provinces. This process removes old configurations and creates the correct ones.
Configure your zones
Go to configuration, name your zone (e.g. "Peninsula") and use the quick buttons to select provinces.
Assign to carriers
Go to Shipping ? Carriers and configure rates per zone. The created zones will appear automatically.
Before Installing
Keep these important aspects in mind:
- The module deletes the current Spanish provinces and replaces them with the correct 52
- If you already have shipping zones configured, check that they work correctly afterwards
- A province can only be in one custom logistics zone
- When deleting zones, provinces are automatically reassigned to "Europe"
I recommend backing up the database before installing any module that modifies critical structures such as provinces.
ES Shipping Zones v1.0.1
Developed by Disciplina Digital | Javier Ortiz
Compatible with PrestaShop 8.0.0 - 8.2.x | Free and Open Source