Spain Shipping Zones for PrestaShop 8.x

ES Shipping Zones PrestaShop 8

 

"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:

PrestaShop 8 without the module
? Incomplete or missing provinces
? Incorrect names (Nafarroa, Castelló)
? Misconfigured islands (only Mallorca)
? Impossible to group by geographic zones
With ES Shipping Zones installed
? Complete 52 Spanish provinces
? Correct official naming
? All Balearic and Canary Islands included
? Create zones: Peninsula, Islands, National...

Main features

Automatic update of Spanish provinces
Creation of custom logistics zones
Quick buttons: Peninsula, Balearics, Canaries
Native integration with carriers
Visual interface with intuitive checkboxes
Multistore compatible

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_state and ps_country tables
PHP saveZone() - Zone creation
// 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

1
Upload the module

From the module manager, upload es_shipping_zones.zip or manually unzip into /modules/es_shipping_zones/.

2
Automatic installation

Upon installation, the module synchronizes the 52 Spanish provinces. This process removes old configurations and creates the correct ones.

3
Configure your zones

Go to configuration, name your zone (e.g. "Peninsula") and use the quick buttons to select provinces.

4
Assign to carriers

Go to Shipping ? Carriers and configure rates per zone. The created zones will appear automatically.

Installation is plug & play: install, configure zones and start using them with your carriers immediately.

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.

Download for PrestaShop 8.x

Version optimized for PrestaShop 8.0 - 8.2

?? Download Version 8.x

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