Distritos de Portugal para WooCommerce

Descrição

Este plugin adiciona os 18 Distritos Portugueses, bem como as duas Regiões Autónomas, ao WooCommerce.

Também define o nome correcto de “Distritos”, a ordem correcta para o “Código postal” / “Localidade do código postal” e o correcto formato de morada para Portugal.

E… é basicamente isso.

Funcionalidades:

  • Adiciona os Distritos portugueses ao WooCommerce
  • Define o formato correcto da morada para Portugal, incluindo a ordem correcta de “Código Postal” / “Localidade do código postal”.

Os seus clientes ainda escrevem a morada completa manualmente, na finalização de compras?

Active o preenchimento automático dos detalhes da morada na finalização de compras, incluindo nome da rua e zona, evitando dados incorrectos no momento do envio, com o nosso plugin Códigos Postais Portugueses para WooCommerce

O plugin de Códigos Postais Portugueses também pode fazer uma validação cruzada entre distrito e código postal e garantir que os mesmos têm correspondência entre si.

Já emite facturas automáticas na sua loja WooCommerce?

Se não, conheça o nosso novo plugin: Invoicing with InvoiceXpress for WooCommerce

Outros plugins (premium)

Já conhece os nossos outros plugins WooCommerce (premium)?

Instalação

Use o instalador automático do WordPress e pesquise por “Portugal States (Distritos) for WooCommerce”.

Perguntas frequentes

Depois da versão 3.0.0 o Código postal e a Localidade do código postal aparecem lado a lado na finalização de compras e quero da forma que estava anteriormente. Como posso reverter?

Adicione isto ao functions.php do seu (child) theme:
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' );
});

Este plugin é compatível com o novo armazenamento de encomendas de alto desempenho do WooCommerce?

Sim.

Este plugin já é compatível com o Carrinho e Finalização de Compras do WooCommerce baseados em blocos?

Sim.

Necessito ajuda, posso obter suporte técnico?

Este é um plugin gratuito. É a nossa maneira de dar de volta à fantástica comunidade WordPress.

Existe uma aba de suporte no topo desta página, onde pode pedir ajuda à comunidade. Tentamos estar atentos aos fóruns, mas não podemos prometer responder a pedidos de suporte.

Se nos contactar por email ou qualquer outra forma directa, vamos assumir que necessita de suporte urgente, premium, e claro, pago.

Onde reporto vulnerabilidades de segurança encontradas neste plugin?

Pode reportar bugs de segurança encontrados no código fonte deste plugin através do Patchstack Vulnerability Disclosure Program. A equipa do Patchstack irá ajudar com a verificação, atribuição de CVE e tratará de nos notificar.

Avaliações

29 Julho, 2022 1 resposta
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 Outubro, 2019 1 resposta
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 Julho, 2019
Obrigatório para ecommerce em Portugal no wordpress, obrigado pelo excelente trabalho!!
3 Janeiro, 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 Dezembro, 2016
A must have plugin if you’re configuring shipping methods in WooCommerce for Portuguese “Distritos”. Thank you!
Ler todas as 9 avaliações

Contribuidores e programadores

“Distritos de Portugal para WooCommerce” é software de código aberto. As seguintes pessoas contribuíram para este plugin:

Contribuidores

“Distritos de Portugal para WooCommerce” foi traduzido para 3 locales. Obrigado aos tradutores pelas suas contribuições.

Traduza o “Distritos de Portugal para WooCommerce” para o seu idioma.

Interessado no desenvolvimento?

Consulte o código, consulte o repositório SVN, ou subscreva o registo de alterações por RSS.

Registo de alterações

3.8 – 2024-10-07

  • [FIX] Remove unused postcode_before_city locale property which was causing a PHP notice on the blocks checkout
  • [DEV] Requires WooCommerce 7.0
  • [DEV] Tested with WordPress 6.7-beta1-59158 and WooCommerce 9.4.0-beta.2

3.7 – 2024-04-20

  • [TWEAK] Compatibility with checkout block custom fields
  • [DEV] Tested with WordPress 6.6-alpha-58011 and WooCommerce 8.9.0-dev

3.6 – 2024-03-27

  • [DEV] Set Requires Plugins tag to woocommerce
  • [DEV] Tested with WordPress 6.5-RC3-57875 and WooCommerce 8.8.0-beta.1

3.5 – 2023-12-12

  • Declare WooCommerce block-based Cart and Checkout compatibility
  • Requires WooCommerce 5.0 and WordPress 5.4
  • Tested with WordPress 6.5-alpha-57159 and WooCommerce 8.4.0-rc.1

3.4.1 – 2023-07-07

  • Fix some strings and links

3.4 – 2023-07-06

  • Requires WooCommerce 5.0
  • Tested with WordPress 6.3-beta3-56143 and WooCommerce 7.9.0-rc.2

3.3 – 2022-11-09

  • Tested and confirmed WooCommerce HPOS compatibility
  • Tested with WordPress 6.2-alpha-54748 and WooCommerce 7.1

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
  • Tested with WordPress 5.2.4-alpha-46074 and WooCommerce 3.8.0-beta.1
  • Requires PHP 5.6

2.1.3.1

  • readme.txt small fix

2.1.3

  • Tested with WooCommerce 3.5.2
  • Bumped WC tested up tag
  • Bumped Requires at least tag

2.1.2

  • Tested with WooCommerce 3.5
  • Bumped WC tested up to tag

2.1.1

  • Added the woocommerce_portugal_postcode_priority filter to allow overriding the “Postal Code” priority value

2.1

  • Fix “Postal Code”/”City” fields order on the checkout on newer WooCommerce versions
  • The “City” field label is now “Postcode Town / City” on the checkout
  • New woocommerce_portugal_city_label filter to be able to change the “City” field label
  • New woocommerce_portugal_state_label filter to be able to change the “District” field label
  • New woocommerce_portugal_state_required filter to be able to set the “District” field as not required
  • Bumped WC tested up to tag

2.0

  • Removed the district from the plain text address format for Portugal, as we do not use it on a day to day basis: “{name}\n{company}\n{address_1}\n{address_2}\n{postcode} {city}\n{country}” (can be restored via the woocommerce_portugal_address_format_include_state filter)
  • Better coding standards

1.5.3.2

  • Fixed readme.txt

1.5.3.1

  • Tested with WooCommerce 3.3
  • Bumped Tested up to tag

1.5.3

  • Removed the translation files from the plugin lang folder (the translations are now managed on WordPress.org’s GlotPress tool and will be automatically downloaded from there)
  • Tested with WooCommerce 3.2
  • Added WC tested up to tag on the plugin main file
  • Bumped Tested up to tag

1.5.2

  • Tested with WooCommerce 3.0.0-rc.2
  • Bumped Tested up to tag
  • Portuguese translation update

1.5.1

  • Bumped Tested up to tag

1.5

  • Sets the correct Portuguese address format: “{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

  • The district is now required by default, as is on all the other countries that have states loaded by the WooCommerce core

1.3

  • Important bug fix: No longer overrides other countries states

1.2

  • WordPress Multisite support

1.1

  • Now also sets the right name for “Districts” and the correct “Postal Code”/”City” order

1.0

  • Initial release.