| 开发者 |
webdados
ptwooplugins nakedcatplugins |
|---|---|
| 更新时间 | 2025年11月5日 23:45 |
| PHP版本: | 7.2 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv3 |
| 版权网址: | 版权信息 |
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' ); });
Yes.
Yes.
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". 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. Or you can use Apple Pay and Google Pay via the ifthenpay gateway with our plugin, where the address is not fetched from Apple but from the WooCommerce checkout.
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 need, premium, and of course, paid-for support.
You can report any security bugs found in the source code of this plugin through the Patchstack Vulnerability Disclosure Program. The Patchstack team will assist you with verification, CVE assignment and take care of notifying the developers of this plugin.
postcode_before_city locale property which was causing a PHP notice on the blocks checkoutRequires Plugins tag to woocommercewoocommerce_portugal_localisation_address_formats_priority filter to change the hook priority for the address formatwoocommerce_portugal_postcode_class and woocommerce_portugal_city_classWC tested up tagRequires at least tagWC tested up to tagwoocommerce_portugal_postcode_priority filter to allow overriding the "Postal Code" priority valuewoocommerce_portugal_city_label filter to be able to change the "City" field labelwoocommerce_portugal_state_label filter to be able to change the "District" field labelwoocommerce_portugal_state_required filter to be able to set the "District" field as not requiredWC tested up to tagwoocommerce_portugal_address_format_include_state filter)Tested up to taglang folder (the translations are now managed on WordPress.org’s GlotPress tool and will be automatically downloaded from there)WC tested up to tag on the plugin main fileTested up to tagTested up to tagTested up to tag