Plugin Directory

Changeset 3417686


Ignore:
Timestamp:
12/11/2025 07:10:46 PM (4 months ago)
Author:
nakedcatplugins
Message:

Upgrade to 4.2

Location:
portugal-states-distritos-for-woocommerce/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • portugal-states-distritos-for-woocommerce/trunk/readme.txt

    r3390566 r3417686  
    55Tested up to: 6.9
    66Requires PHP: 7.2
    7 Stable tag: 4.1
     7Stable tag: 4.2
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
    1010
    11 This plugin adds the Portuguese "States", known as "Distritos", to WooCommerce and sets the correct address format for Portugal.
     11This plugin adds the Portuguese “States”, known as “Distritos”, to WooCommerce and sets the correct address format for Portugal.
    1212
    1313== Description ==
    1414
    15 This plugin adds the 18 Portuguese "States" (known as "Distritos") plus the 2 Autonomous Regions (known as "Regiões Autónomas", Madeira and Açores) to WooCommerce.
    16 
    17 Also sets the right name for "Districts" and the correct "Postcode"/"City" order and the correct address format for Portugal.
     15This plugin adds the 18 Portuguese “States” (known as “Distritos”) plus the 2 Autonomous Regions (known as “Regiões Autónomas”, Madeira and Açores) to WooCommerce.
     16
     17Also sets the right name for “Districts” and the correct “Postcode”/“City” order and the correct address format for Portugal.
    1818
    1919And... that’s pretty much it.
     
    2323= Features: =
    2424
    25 * Adds the Portuguese "States", known as "Distritos", to WooCommerce
    26 * Sets the correct address format for Portugal, including the correct "Postal Code"/"City" positioning on the checkout
     25* Adds the Portuguese “States”, known as “Distritos”, to WooCommerce
     26* Sets the correct address format for Portugal, including the correct “Postal Code”/“City” positioning on the checkout
    2727
    2828= Do your customers still write the full address details manually on the checkout? =
     
    5353== Installation ==
    5454
    55 Use the included automatic install feature on your WordPress admin panel and search for "Portugal States (Distritos) for WooCommerce".
     55Use the included automatic install feature on your WordPress admin panel and search for “Portugal States (Distritos) for WooCommerce”.
    5656
    5757== Frequently Asked Questions ==
     
    7575Yes.
    7676
    77 = Is this plugin with Express Checkout, like Apple Pay? =
    78 
    79 We’re not sure exactly when, but Apple stopped requesting the "Distrito" field in Apple Pay addresses, which causes checkout to fail if you set your shipping zones to "Distritos".
    80 So, if you’re using Apple Pay (maybe Google Pay as well), we recommend you set your shipping zones with postcode intervals; for example, one zone for Portugal, restricted to postcodes 0000000...8999999, and another for the islands, restricted to 9000000...9999999.
    81 
    82 Or you can use Apple Pay and Google Pay via the [ifthenpay gateway with our plugin](https://wordpress.org/plugins/multibanco-ifthen-software-gateway-for-woocommerce/), where the address is not fetched from Apple but from the WooCommerce checkout.
     77= Is this plugin compatible with Express Checkout, like Apple and Google Pay? =
     78
     79Apple and Google are not requesting the “Distrito” field in Apple Pay addresses, which causes checkout to fail if you set your shipping zones with “Distritos”.
     80So, if you’re using these methods, we recommend you set your shipping zones with postcode intervals; for example, one zone for Portugal, restricted to postcodes 0000000...8999999, and another for the islands, restricted to 9000000...9999999.
     81You can keep using this plugin, but the shipping zones should be set with postcodes.
     82
     83Alternatively, version 7.0 of our “[Portuguese Postcodes for WooCommerce](https://nakedcatplugins.com/product/portuguese-postcodes-for-woocommerce-technical-support/)” plugin, alongside “WooCommerce Stripe Payment Gateway” version 10.2.0 or above, fixes this.
     84
     85Or you can use Apple Pay and Google Pay via the [ifthenpay gateway with our plugin](https://wordpress.org/plugins/multibanco-ifthen-software-gateway-for-woocommerce/), which fetches the address from the WooCommerce checkout.
    8386
    8487= I need help, can I get technical support? =
     
    9699== Changelog ==
    97100
     101= 4.2 - 2025-12-11 =
     102* [TWEAK] Add information to the readme file regarding instant payment methods not requesting “Distrito” for Portuguese addresses, and the fix available by using [Portuguese Postcodes for WooCommerce](https://nakedcatplugins.com/product/portuguese-postcodes-for-woocommerce-technical-support/)
     103* [DEV] Tested with WordPress 7.0-alpha-61365 and WooCommerce 10.4.0
     104
    98105= 4.1 - 2025-10-05 =
    99 * [TWEAK] Add information to the readme file regarding instant payment methods not requesting "Distrito" for Portuguese addresses
     106* [TWEAK] Add information to the readme file regarding instant payment methods not requesting “Distrito” for Portuguese addresses
    100107* [DEV] Tested up to WordPress 6.9-beta2-61099 and WooCommerce 10.3.4
    101108
    102109= 4.0 - 2025-06-24 =
    103 * [TWEAK] Improve the mechanism to keep the "Portuguese Postcodes for WooCommerce" admin notice from showing to the same user in the next 120 days after dismissal
     110* [TWEAK] Improve the mechanism to keep the “Portuguese Postcodes for WooCommerce” admin notice from showing to the same user in the next 120 days after dismissal
    104111* [DEV] Tested up to WordPress 6.9-alpha-60342 and WooCommerce 10.0.0-rc.1
    105112
     
    157164* Complete code refactoring
    158165* 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`
    159 * Changed the (english) city label from "Postcode Town / City" to "Postcode City" (no changes in Portuguese)
     166* Changed the (english) city label from “Postcode Town / City” to “Postcode City” (no changes in Portuguese)
    160167* Added support information to the Frequently Asked Questions readme section
    161168* Requires WooCommerce 3.0
     
    203210
    204211= 2.1.1 =
    205 * Added the `woocommerce_portugal_postcode_priority` filter to allow overriding the "Postal Code" priority value
     212* Added the `woocommerce_portugal_postcode_priority` filter to allow overriding the “Postal Code” priority value
    206213
    207214= 2.1 =
    208 * Fix "Postal Code"/"City" fields order on the checkout on newer WooCommerce versions
    209 * The "City" field label is now "Postcode Town / City" on the checkout
    210 * New `woocommerce_portugal_city_label` filter to be able to change the "City" field label
    211 * New `woocommerce_portugal_state_label` filter to be able to change the "District" field label
    212 * New `woocommerce_portugal_state_required` filter to be able to set the "District" field as not required
     215* Fix “Postal Code”/“City” fields order on the checkout on newer WooCommerce versions
     216* The “City” field label is now “Postcode Town / City” on the checkout
     217* New `woocommerce_portugal_city_label` filter to be able to change the “City” field label
     218* New `woocommerce_portugal_state_label` filter to be able to change the “District” field label
     219* New `woocommerce_portugal_state_required` filter to be able to set the “District” field as not required
    213220* Bumped `WC tested up to` tag
    214221
    215222= 2.0 =
    216 * 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)
     223* 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)
    217224* Better coding standards
    218225
     
    239246
    240247= 1.5 =
    241 * Sets the correct Portuguese address format: "{name}\n{company}\n{address_1}\n{address_2}\n{postcode} {city}\n{state}\n{country}"
     248* Sets the correct Portuguese address format: “{name}\n{company}\n{address_1}\n{address_2}\n{postcode} {city}\n{state}\n{country}”
    242249
    243250= 1.4.1 =
    244 * Bumped "Requires at least" and "Tested up to" tags
     251* Bumped “Requires at least” and “Tested up to” tags
    245252
    246253= 1.4 =
     
    254261
    255262= 1.1 =
    256 * Now also sets the right name for "Districts" and the correct "Postal Code"/"City" order
     263* Now also sets the right name for “Districts” and the correct “Postal Code”/“City” order
    257264
    258265= 1.0 =
  • portugal-states-distritos-for-woocommerce/trunk/woocommerce-portugal-states.php

    r3390566 r3417686  
    11<?php
    2 /*
     2/**
    33 * Plugin Name:          Portugal States (Distritos) for WooCommerce
    44 * Plugin URI:           https://www.webdados.pt/wordpress/plugins/portugal-states-distritos-woocommerce-wordpress/
    55 * Description:          This plugin adds the Portuguese "States", known as "Distritos", to WooCommerce and sets the correct address format for Portugal
    6  * Version:              4.1
     6 * Version:              4.2
    77 * Author:               Naked Cat Plugins (by Webdados)
    88 * Author URI:           https://nakedcatplugins.com
     
    1212 * Requires PHP:         7.2
    1313 * WC requires at least: 7.1
    14  * WC tested up to:      10.3
     14 * WC tested up to:      10.4
    1515 * Requires Plugins:     woocommerce
    1616 * License:              GPLv3
    17 */
     17 */
    1818
    1919/* WooCommerce CRUD not needed */
     
    2525
    2626/* Init */
    27 add_action( 'plugins_loaded', 'woocommerce_portugal_states_init' );
    2827function woocommerce_portugal_states_init() {
    2928    if ( class_exists( 'WooCommerce' ) && defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '7.1', '>=' ) ) {
     
    3433    }
    3534}
     35add_action( 'plugins_loaded', 'woocommerce_portugal_states_init' );
    3636
    3737
Note: See TracChangeset for help on using the changeset viewer.