Distritos de Portugal para WooCommerce

Descrición

Este plugin engade a WooCommerce as 18 «Provincias» portuguesas (coñecidas coma «Distritos»), ademais das 2 «Rexións autónomas» (Madeira e Azores).

Tamén establece o nome correcto para os «Distritos» e a orde correcta «Código postal» / «Cidade» e o enderezo no formato para Portugal.

E … iso é mais ou menos todo.

Características:

  • Engade a WooCommerce as «Provincias» portuguesas, coñecidas como «Distritos».
  • Sets the correct address format for Portugal, including the correct “Postal Code”/”City” positioning on the checkout

Do your customers still write the full postal code manually on the checkout?

Activate the automatic filling of the postal code at the checkout, avoiding incorrect data at the time of sending, with our plugin Portuguese Postcodes for WooCommerce

The Portuguese Postcodes plugin can also do a district-postcode cross validation on checkout and guarantee they match.

Estás a emitir facturas automáticas na túa tenda WooCommerce?

Se non, coñece o noso novo plugin: Invoicing with InvoiceXpress for WooCommerce

Instalación

Fai uso da característica de instalación automática incluida no teu panel de administración de WordPress e busca «Portugal States (Distritos) for WooCommerce».

Preguntas frecuentes

I need help, can I get technical support?

This is a free plugin. It’s our way of giving back to the wonderful WordPress community.

There’s a support tab on the top of this page, where you can ask the community for help. We’ll try to keep an eye on the forums but we cannot promise to answer support tickets.

If you reach us by email or any other direct contact means, we’ll assume you are in need of urgent, premium, and of course, paid-for support.

After version 3.0.0 the Postcode and Postcode City are showing side by side on the checkout and I want it the way it was before. What do I revert it?

Add this to your (child) theme’s functions.php file:
add_filter( ‘woocommerce_portugal_postcode_class’, function( $class ) {
return array( ‘form-row-wide’ );
});
add_filter( ‘woocommerce_portugal_city_class’, function( $class ) {
return array( ‘form-row-wide’ );
});

Comentarios

29 de Xullo, 2022
The plugin has been very well developed. It fulfills everything you need to make shipments in portugal, as well as or eliminate shipping zones. The support has been very fast and efficient.
9 de Outubro, 2019
Si tu tienda incluye envíos a Portugal este es el plugin que necesitas. Tendrás en las direcciones de cliente la opción de poder elegir el distrito (lo equivalente a las provincias de España), algo que WooCommerce no incluye por defecto.
24 de Xullo, 2019
Obrigatório para ecommerce em Portugal no wordpress, obrigado pelo excelente trabalho!!
3 de Xaneiro, 2019
Plugin simples, mas de grande utilidade. Fiquei horas a tentar configurar as localidades e zonas com custos diferentes em minha loja no woocommerce, e por acaso encontrei este plugin, que consegui confirgurar em minutos... Parabéns e obrigado por este plugin 🙂
11 de Decembro, 2016
A must have plugin if you're configuring shipping methods in WooCommerce for Portuguese “Distritos”. Thank you!
Ler todas as 8 opinións

Colaboradores e desenvolvedores

“Distritos de Portugal para WooCommerce” é un software de código aberto. As seguintes persoas colaboraron con este plugin.

Colaboradores

“Distritos de Portugal para WooCommerce” foi traducido a 3 idiomas. Grazas aos desenvolvedores polas súas contribucións.

Traduce “Distritos de Portugal para WooCommerce” ao teu idioma.

Interesado no desenvolvemento?

Revisa o código, bota unha ollada aorepositorio SVN, ou subscríbete ao log de desenvolvemento por RSS.

Rexistro de cambios

3.2.0 – 2022-06-30

  • New brand: PT Woo Plugins 🥳
  • Requires WordPress 5.0, WooCommerce 3.0 and PHP 7.0
  • Tested with WordPress 6.1-alpha-53556 and WooCommerce 6.7.0-beta.2

3.0.3 – 2021-05-14

  • Fix the order in which we set the address format because other plugin’s changes, like EU VAT Assistant, were being overriden
  • New woocommerce_portugal_localisation_address_formats_priority filter to change the hook priority for the address format
  • Tested with WooCommerce 5.3.0

3.0.2 – 2021-04-14

  • Removed the information about WooCommerce 5.2.0 from the readme.txt file as the change was reverted on WooCommerce 5.2.1

3.0.1 – 2021-04-14

  • Important information on readme.txt about WooCommerce 5.2.0 and the fact they now include the Portuguese Districts.

3.0.0 – 2021-04-08

  • Complete code refactoring
  • Show Postcode and Postcode City side by side on the checkout and added two new filters to change it: woocommerce_portugal_postcode_class and woocommerce_portugal_city_class
  • Changed the (english) city label from “Postcode Town / City” to “Postcode City” (no changes in Portuguese)
  • Added support information to the Frequently Asked Questions readme section
  • Requires WooCommerce 3.0
  • Tested with WordPress 5.8-alpha-50689 and WooCommerce 5.2.0-rc.2

2.1.9 – 2021-03-10

  • Tested with WordPress 5.8-alpha-50516 and WooCommerce 5.1.0

2.1.8

  • Tested with 5.6-beta3-49562 and WooCommerce 4.8.0-beta.1

2.1.7

2.1.6

  • Tested with WordPress 5.3.3-alpha-47419 and WooCommerce 4.0.1

2.1.5.2

  • Changes on the InvoiceXpress banner

2.1.5.1

  • Fix version number

2.1.5

  • Hide the InvoiceXpress nag if the invoicing is already installed and active
  • Tested with WordPress 5.3.1-alpha-46798 and WooCommerce 3.8.1

2.1.4

  • Change InvoiceXpress nag interval from 30 to 90 days
  • Probado con WordPress 5.2.4-alpha-46074 e WooCommerce 3.8.0-beta.1
  • Require PHP 5.6

2.1.3.1

  • Pequenas correccións no readme.txt

2.1.3

  • Probado con WooCommerce 3.5.2
  • Bumped WC tested up tag
  • Bumped Requires at least tag

2.1.2

  • Probado con WooCommerce 3.5
  • Bumped WC tested up to tag

2.1.1

  • Engadido o filtro woocommerce_portugal_postcode_priority para permitir
    saltala prioridade do valor de «Código postal»

2.1

  • Corrixe a orde dos campos «Código postal» / «Cidade» ao finalizala compra para novas versións de WooCommerce.
  • A etiqueta do campo «Cidade» é agora «Código postal Poboación / Cidade» ao finalizar a compra.
  • Novo filtro woocommerce_portugal_city_label capaz de cambiala etiqueta do campo «Cidade»
  • Novo filtro woocommerce_portugal_state_label capaz de cambiala etiqueta do campo «Distrito»
  • Novo filtro woocommerce_portugal_state_required capaz de establecelo campo «Distrito» coma non obligatorio.
  • Bumped WC tested up to tag

2.0

  • Eliminado o distrito do formato de enderezo en texto plano para Portugal, porque xa non o usamos no día a día: «{name}\n{company}\n{address_1}\n{address_2}\n{postcode} {city}\n{country}» (pode ser restaurado vía o filtro woocommerce_portugal_address_format_include_state)
  • Mellores estándares de codificación

1.5.3.2

  • Corrección do readme.txt

1.5.3.1

  • Probado con WooCommerce 3.3
  • Bumped Tested up to tag

1.5.3

  • Eliminados os arquivos de tradución da carpeta lang do plugin (as traducións agora son xestionadas na ferramenta GlotPress de WordPress.org e descargaranse automaticamente dende alí)
  • Probado con WooCommerce 3.2
  • Engadida a etiqueta WC tested up to ó arquivo principal do plugin
  • Bumped Tested up to tag

1.5.2

  • Probado con WooCommerce 3.0.0-rc.2
  • Bumped Tested up to tag
  • Actualización da traducción ó portugués

1.5.1

  • Bumped Tested up to tag

1.5

  • Establece o formato de enderezo portugués correcto: «{name}\n{company}\n{address_1}\n{address_2}\n{postcode} {city}\n{state}\n{country}»

1.4.1

  • Bumped “Requires at least” and “Tested up to” tags

1.4

  • O distrito agora é obligatorio por defecto, como en tódolos outros países que teñen provincias cargadas polo núcleo de WooCommerce

1.3

  • Importante corrección de fallos: Xa non anula os estados de outros países

1.2

  • É compatible con WordPress Multisite

1.1

  • Agora establece o nome correcto para «Distritos» e maila orde correcta para «Código postal»/«Cidade»

1.0

  • Versión inicial