Commit Graph

299 Commits

Author SHA1 Message Date
roykho 35685a4cf5 Ensure countries that have no states hides states field closes #28944 2021-08-17 14:50:48 +05:30
Varun Varada e38be6df10 Correct postal code labels for US & India
Fixes #30203
2021-07-02 00:13:41 -05:00
Barry Hughes 71cdb3d752
Merge pull request #29848 from yehudah/fix/29840
Curaçao: remove postcode field, stop requiring the state field | #29840
2021-05-25 13:08:28 -07:00
Yehuda Hassine ab6404f6f1 Remove Curaçao postcode 2021-05-06 23:02:18 +03:00
kkmuffme 5c07f8e7e1
Sort country codes alphabetically
Sort country codes alphabetically to make finding them easier.
2021-04-19 17:06:59 +02:00
Roy Ho 20c8cbee0c
Merge pull request #29008 from inc2734/patch-1
The order of the full name returned by WC_Countries::get_formatted_address()
2021-03-04 07:31:45 -08:00
barryhughes 8f74a25998 Remove esc_attr() (not an attribute, plus escaping is applied later in request) | #25510 2021-02-15 14:15:48 -08:00
barryhughes 1bd9a7e939 Only add '(optional)' to the billing_address_2 placeholder | #25510 2021-02-15 13:49:28 -08:00
Takashi Kitajima 307a257781
Add translator comment #29008 2021-02-12 11:55:26 +09:00
Nestor Soriano 9e2776bdfa Use 'isset' instead of 'array_key_exists' for 'country_exists'. 2021-02-08 15:58:02 +01:00
Takashi Kitajima ed042b5a83
The order of the full name returned by WC_Countries::get_formatted_address()
`WC_Abstract_Order::get_formatted_billing_full_name()` and 
`WC_Abstract_Order::get_formatted_shipping_full_name()` displays the names in the correct order according to the language, but `WC_Countries::get_formatted_address()` does not.
2021-02-03 14:21:43 +09:00
Nestor Soriano ef9a11976c WC_Countries::country_exists no longer throws an exception. 2021-01-22 10:57:25 +01:00
Nestor Soriano 053a45e0b2 Validate checkout countries in the backend 2021-01-19 10:28:56 +01:00
Paulo Chang 41f853fbc1
Remove post code from Guatemala
Guatemala has no real working postal service. We therefore don't use postal codes. Address and department is enough.
2020-12-31 22:41:51 +01:00
Peter Fabian 60e8082398 Isle of Man will probably also stop being part of EU VAT area. 2020-12-10 09:59:26 +01:00
Peter Fabian 135294dfdd Removed GB from EU VAT zone. 2020-12-10 09:46:24 +01:00
Christopher Allford 57e0de341e
Merge branch 'master' into fix/27711 2020-12-03 12:11:29 -08:00
Christopher Allford d59b47903f Fixed Puerto Rico address localization
* Renamed "City" to "Municipality"
* Made "State" not required and hidden
* Added ZIP code validation
2020-12-01 16:24:58 -08:00
Milana Cap 5fae30bea0
Make City and Postcode mandatory fields for Serbia
As these fields were mandatory for Serbia from the beginning, making them optional by default is causing shop owners additional effort to set them back to mandatory. This PR is making them mandatory by default.

Fixes #28366
2020-11-25 22:36:44 +01:00
Rodrigo Primo 92153ac3b3
Merge pull request #27723 from alexstewartja/master
Introduced fine-grained cultural adaptation for Jamaican-based WooCommerce stores
2020-10-24 14:44:07 -03:00
Claudio Sanches d211f6ee5c
Merge pull request #27516 from KoolPal/patch-2
Renamed Postcode / ZIP to Pin code & renamed State / County to State for India
2020-10-14 19:51:46 -03:00
Milana Cap 7c184e5f25
Update class-wc-countries.php 2020-09-24 22:41:33 +02:00
Alex Stewart b58dc02183 Introduced fine-grained cultural adaptation for Jamaican-based WooCommerce stores 2020-09-20 14:10:27 -05:00
Claudio Sanches b5d8d94bc8 Use reference in wc_asort_by_locale 2020-09-10 16:02:39 -03:00
KoolPal 3f28df9150
Renamed Postcode / ZIP to Pin code & renamed State / County to State for India
Renamed Postcode / ZIP to Pin code & renamed State / County to State for India

Reference: https://en.m.wikipedia.org/wiki/Address#India
2020-08-29 14:19:33 +05:30
Claudio Sanches 47aaac8600 Introduced wc_asort_by_locale() function 2020-08-19 20:22:18 -03:00
Claudio Sanches 3f0db49688 Use PHP Collator if available to sort countries 2020-08-19 19:00:42 -03:00
Claudio Sanches f758b2bb31
Fixed coding standards 2020-07-20 18:08:02 -03:00
Damir Ha 4c7a0f1580 Remove country label 2020-07-20 18:18:14 +02:00
Damir Ha d37a82fec8 Add Locale info and Hide state 2020-07-17 13:04:20 +02:00
Claudio Sanches 9ac5bcb586
Merge pull request #26697 from passatgt/master
Fixes for Hungarian address format and name order
2020-07-01 12:55:50 -03:00
Claudio Sanches 6fc008c104
Merge pull request #26698 from woocommerce/fix/26643
Puerto Rico: Remove "City" field and rename "State" to "Municipality"
2020-07-01 12:38:28 -03:00
Claudio Sanches f2299ecfa8
Fixed coding standards 2020-06-23 11:09:21 -03:00
Peter Fabian 14a26aca2c Update min files and selectWoo 2020-06-16 17:15:12 +02:00
Peter Viszt 4a60386560
Removed duplicated class from the HU city field 2020-06-10 17:54:12 +02:00
Claudio Sanches 5dc84e6d0f
Update includes/class-wc-countries.php
Co-authored-by: jonathansadowski <jonathansadowski@users.noreply.github.com>
2020-06-05 14:46:03 -03:00
Claudio Sanches a240547fda Puerto Rico: Make city hidden and change state to Municipality 2020-06-05 10:14:52 -03:00
Claudio Sanches 418896ea86 Removed States from Puerto Rico and better address formatting 2020-06-04 17:18:17 -03:00
Viszt Péter 1724507a0e Fixes for Hungarian address format and name order
Missing address-field class for Japan's postcode and state field
Checkout layout fixes on country change
2020-06-04 19:21:41 +02:00
Christopher Allford 75d23712ff
Merge pull request #26272 from tolu-paystack/hide-ghana-postcode
Hide Postcode/Zip field on billing/shipping form when Ghana is selected
2020-05-11 19:55:48 -07:00
Christopher Allford bf396aec14
Merge pull request #25598 from johncodeos-forks/master
Hide Germany's, Denmark's and Sweden's state field
2020-05-11 19:42:46 -07:00
tolu-paystack a151c11042 made postcode field visible but not required 2020-04-27 16:53:51 +01:00
tolu-paystack 43db909665 removed postcode label and changed state label 2020-04-24 10:08:11 +01:00
tolu-paystack cab7c5b8a1 hide postcode field for Ghana addresses 2020-04-24 00:23:30 +01:00
Marco Almeida ea734d2500
Fix comment
Fix comment for PR #26107
2020-04-10 10:46:46 +01:00
Marco Almeida 80576cb149
Revert deprecation of the $type parameter on the get_european_union_countries method
See woocommerce#26105
2020-04-07 23:01:46 +01:00
Albert Juhé Lluveras 515f5604f4 Add comma before 'etc.' in address 2 placeholder 2020-03-05 10:31:19 +01:00
John f92bbf249a
Hide Germany's, Denmark's and Sweden's state field
When you choose the country 'Germany'(or Denmark or Sweden) from a woocommerce website, the state field is hidden. So I added to be hidden in this class too.
2020-02-07 02:10:38 +02:00
Peter Fabian d3a33f8d05
Merge pull request #24943 from woocommerce/refactor/eu-vat-brexit
Brexit and VAT refactor
2020-02-05 19:41:40 +01:00
Peter Fabian b385404861 Fixed deprecated since version. 2020-02-05 19:18:08 +01:00