Commit Graph

275 Commits

Author SHA1 Message Date
Claudio Sanches dc35b89df7
Merge pull request #23178 from davidofug/master
Uganda Billing/Shipping address
2019-05-22 21:07:09 -03:00
jorgept e214a85a8c
Update class-wc-countries.php
Add MZ array
postcode => false, 
hidden => true
2019-05-19 22:23:36 +01:00
Claudio Sanches 144f011065 Rename "Postcode / ZIP" to "Postal code" when select Canada 2019-05-16 18:27:08 -03:00
Gerhard Potgieter df7d82f744
Merge pull request #23429 from dimadin/rs/address-format
Add address format for Serbia
2019-05-10 10:23:06 +02:00
Milan Dinić 9c8327bdaa Do not use state for Serbia. 2019-04-21 22:43:47 +02:00
Milan Dinić 67cf3062c0 Add address format for Serbia. 2019-04-21 20:28:58 +02:00
Mike Jolley b1ece1452c
Merge pull request #23365 from woocommerce/make-greece-state-optional
Make state/county optional for Greece
2019-04-18 12:17:44 +01:00
thomas shellberg 6f4217e429 make state/county option for Greece 2019-04-18 12:21:06 +02:00
Ralf 66540f1b5d Moved accessibility labels for checkout after woocommerce_checkout_fields filter 2019-04-15 12:09:33 +02:00
David Wampamba 1e09a7cfb6 Errors fixed 2019-04-10 13:03:30 +03:00
David Wampamba bc6cbfcadc Spaces fixed 2019-04-09 13:59:49 +03:00
David Wampamba 5de3d4d18b
Merge branch 'master' into master 2019-04-02 13:40:27 +03:00
David Wampamba 96c53643bb
Update class-wc-countries.php
Uganda locale
2019-03-30 16:49:44 +03:00
David Wampamba 6588a67fa4
Update class-wc-countries.php
Line 422: Uganda(UG) address format
2019-03-30 16:45:54 +03:00
Mike Jolley 55b27a2afc Adjust calling code prefix logic in paypal 2019-03-06 12:33:46 +00:00
Mike Jolley 65c0169726 Merge branch 'master' into fix/21110 2019-03-06 12:25:12 +00:00
Mike Jolley 4330b2eb38 Update calling code handling 2019-03-06 12:25:06 +00:00
SASAGAWA, Kiyoshi 3b6bbd2f3d
Fixing order of JP address.
JP address must be ordered as 'Postal Code' -> 'State (Prefecture)' -> 'City' -> 'address'.
Changing the priority.
2019-02-20 01:20:02 +09:00
Mike Jolley 1e74b2567f
Merge pull request #22357 from woocommerce/pr/22125
State and country field handling improvements
2019-02-19 09:52:34 +00:00
Mike Jolley 4672a47d67 Update from master 2019-02-18 11:41:05 +00:00
Mike Jolley 8a1a1d3e73 get_calling_code_for_country 2019-02-08 11:09:42 +00:00
Mike Jolley 73f283bf4a Update CA address format 2019-02-08 10:35:01 +00:00
Mike Jolley 1dea9d6f48 Merge branch 'enhancement/21758' 2019-01-31 13:44:35 +00:00
Mike Jolley 99f663ad5c
Merge pull request #22131 from willgorham/improve-shipping-zone-continents
Improve shipping zone continents [Fixes #22130]
2019-01-23 13:27:16 +00:00
Mike Jolley 380201be33
Merge pull request #22417 from woocommerce/fix/21175
Sort countries using new ascii comparison function
2019-01-22 14:47:41 +00:00
Peter Fabian ede86d8307 Made municipality address field optional for Latvia. 2019-01-17 13:18:31 +01:00
Gerhard 0a5d3b1675 Sort countries based on wc_ascii_uasort_comparison 2019-01-11 13:40:38 +02:00
Will Gorham 56fa520b8e Tests for get_shipping_continents() 2019-01-09 13:31:30 -05:00
Will Gorham 1fc4ef6c59 Clean up docblocks and unused vars 2019-01-09 12:54:37 -05:00
Will Gorham 8051a0b0fc Only show available shipping continents in zone regions 2019-01-09 12:48:18 -05:00
Mike Jolley 04d7e54d42 Set country value when loading fields rather than in template files 2019-01-07 16:04:01 +00:00
Mike Jolley f1afbcf03a Single state file to avoid loops and reading multiple files on page load. 2019-01-04 12:04:47 +00:00
Mike Jolley 64aafeca27 phpcs alignment 2019-01-04 11:08:01 +00:00
Mike Jolley 0e43ad40f3 Load all states rather than just from allowed countries
Doesn't appear to cause much of a perf issue and doesn't appear to break the UI in any way. If anything, may expose states where not previously seen in some cases but since you can search this shouldn't be problematic.
2019-01-04 11:07:23 +00:00
Claudio Sanches a0e77eb40c Use wc_strtoupper on formatted address 2018-11-30 15:59:28 -02:00
Claudiu Lodromanean d8119dd1e9
Merge pull request #21865 from Prospress/fix/21857
consistent logic on `woocommerce_formatted_address_force_country_display` filter name
2018-11-27 09:12:04 -08:00
Rodrigo Primo 242641e931
Merge pull request #21987 from webdados/patch-2
Fix Angolan "State" label to "Province"
2018-11-23 11:21:08 -02:00
Rodrigo Primo 05bae41b24 Fix phpcs violations automatically using phpcbf 2018-11-23 11:17:43 -02:00
Marco Almeida 276d6f3526
Fix Angolan "State" label to "Province"
In Angola "states" are called "Províncias" (or "Provinces" in English)
2018-11-20 14:17:11 +00:00
Marco Almeida b19941dae4
Fix locale for São Tomé and Príncipe
Remove Postal Code for São Tomé and Príncipe, because they still don't have it in place. Also the stat field should have "District" as label.
2018-11-20 13:29:45 +00:00
Marco Almeida 9282c1a619
Remove postal code for Angola
Angola still doesn't have a postcode system in place.
References:
https://pt.wikipedia.org/wiki/C%C3%B3digo_postal#_Angola
https://en.wikipedia.org/wiki/List_of_postal_codes
2018-11-20 12:36:45 +00:00
Ron Rennick 91ddf1f7c1 make logic consistent with `woocommerce_formatted_address_force_country_display` filter name 2018-11-08 16:35:57 -04:00
Gerhard 879139d81e Apply priority filtering on additional filters to accomodate pages like my account edit address. 2018-11-07 14:16:05 -05:00
Rodrigo Primo bdb8f26d44 Use array instead of string to define class for address line 2 input on checkout
Doing this to be consistent with the other instances where a class is added to one of the checkout fields and thus make it easier for third-parties to add classes to checkout fields.
2018-10-30 14:59:08 -03:00
Claudio Sanches 3aa9b60b61 Merged similar strings to reduce number of translateable strings 2018-10-26 18:16:14 -03:00
amit.chauhan 8ea696f57a Fixed woocommerce_localisation_address_formats for country code IN file class-wc-countries.php and removed comment 2018-10-24 19:19:16 +05:30
amit.chauhan b753548df3 Fixed woocommerce_localisation_address_formats for country code IN file class-wc-countries.php 2018-10-24 18:32:59 +05:30
claudiulodro 87054ece9a Add hidden label on address line 2 input on checkout 2018-08-24 11:57:30 -07:00
Claudiu Lodromanean 66c7c244ca
Merge pull request #21186 from woocommerce/fix/string-i18n
Use entire sentence for checkout address_2 placeholder string
2018-08-24 10:04:54 -07:00
Rodrigo Primo e1aa7bba4d Use entire sentence for checkout address_2 placeholder string
The placeholder string that is displayed in the address_2 field in the checkout was changed in #20639 to hide the "(optional)" part when the field is mandatory. The problem is that this was done splitting the sentence in two parts which goes against i18n best practices (https://developer.wordpress.org/themes/functionality/internationalization/#best-practices-for-writing-strings) as the order of the words can be different depending on the language. This commit creates two full sentences one with the "(optional)" part and another one without it to better support the translation of both strings.
2018-08-24 09:45:16 -03:00
Gerhard Potgieter bea8151533 Make RO state required. 2018-08-24 09:16:07 +02:00
Peter Fabian 9319b3c262 Bahrain postcode visible, but not required. 2018-08-21 11:15:09 +02:00
Peter Fabian a777f9b548 Disable postcode requirement for Bahrain. 2018-08-20 12:40:53 +02:00
Luminus Olumide Alabi 798cd36f04 Make postcode field optional and hidden for Nigeria and label State correctly 2018-08-15 10:36:20 +01:00
Luminus Olumide Alabi a3d8c6d599 Make city field optional and hidden for Singapore addresses 2018-08-09 10:02:09 +01:00
Mike Jolley 1186a62d04
Merge pull request #20639 from woocommerce/pr/20622
Update Pr/20622 - conditionally add optional text to address 2 field
2018-06-27 10:33:06 +01:00
Mike Jolley 0e589f641e Allow string reuse by moving brackets outside of string. 2018-06-27 10:31:41 +01:00
vishalkakadiya d765ca9ec4 ISSUE-20621 Move space outside of the localised string 2018-06-26 20:30:29 +05:30
vishalkakadiya 95d7dc0933 ISSUE-20621 Address feedbacks 2018-06-26 19:18:29 +05:30
vishalkakadiya dd14157682 ISSUE-20621 Add (optional) text on condition bases 2018-06-26 18:43:53 +05:30
vishalkakadiya c6fa14fe53 Remove unwanted(double) condition for address line 2 2018-06-26 18:21:29 +05:30
vishalkakadiya f282b4f126 ISSUE-20621 Remove (optional) text from Address line 2 field's placeholder 2018-06-26 00:10:47 +05:30
Will Gorham 1d4f76490e Remove malta state field 2018-06-11 11:23:27 -04:00
Mike Jolley 588be3a780 merge master 2018-06-11 13:46:04 +01:00
Mike Jolley 6d0c1b2bac Remove luxemberg state field
Closes #20378
2018-06-05 11:09:08 +01:00
Gerhard Potgieter f324113b6d Make Bahrain state not required (#20363)
* If coupon contains discount as well as free shipping add free shipping in brackets behind value

* Revert "If coupon contains discount as well as free shipping add free shipping in brackets behind value"

This reverts commit dce5bc2f0b.

* Make Buhrein state not required, it has not states
2018-06-04 10:47:41 +01:00
Mike Jolley 243c33d9ca Show country by default and improve separator 2018-06-01 21:29:07 +01:00
Gerhard Potgieter c61e0688c6
Merge pull request #20123 from woocommerce/fix/20110
Prevent autofocus on checkout
2018-05-18 14:32:30 +01:00
Mike Jolley 20c184274b Prevent autofocus on checkout 2018-05-18 10:39:51 +01:00
Mohammed Saimon 0b4847d75d fix(missing-country-code): add bahrain country code in the load_country_states method 2018-05-14 13:26:25 +06:00
Mike Jolley d73d15a73d Phone was required in 3.3 - set default 2018-04-26 11:52:36 +01:00
Mike Jolley 4e9984718d Simplify required field option 2018-04-11 13:40:42 +01:00
Mike Jolley 46815d1d01 Add controls to control if address 2, company, and phone fields are optional, required, or hidden. 2018-04-05 17:51:43 +01:00
Claudio Sanches 0b5aef0fd3 Fixed includes/class-wc-countries.php PHPCS violations 2018-03-19 19:42:55 -03:00
Mike Jolley da32586251 Remove isle of man state
Fixes #18932
2018-02-12 10:34:40 +00:00
Claudiu Lodromanean 373ff64ff8
Merge pull request #18315 from alexminza/master
Fixed Moldova states, added Moldova information for the installer
2018-01-02 14:31:30 -08:00
Mike Jolley 3defa83a81 Missing spaces between city and state.
Closes #18305
2018-01-02 11:45:56 +00:00
Alexander Minza 2307febfa1 Fixed Moldova states 2017-12-30 14:34:12 +02:00
Claudio Sanches d69f67bfd5 Auto fixed minor coding standards with PHPCBF 2017-12-21 18:18:04 -02:00
Claudio Sanches 514087e4aa Fixed coding standards 2017-12-21 18:10:55 -02:00
Claudio Sanches 2198eb136c Remove Postcode from Suriname 2017-12-21 17:49:56 -02:00
Alexander Minza fca5ef8dd8 Added Moldova states 2017-12-19 23:44:25 +02:00
Mike Jolley f90c7bfc26 Form row wide for email
Remove arbitrary widths. Closes #17288
2017-10-20 16:15:48 -07:00
Mike Jolley e0a01d7018 syntax error 2017-09-06 10:40:40 +01:00
Brian Henry 6cf9f45978 Always apply woocommerce_countries_allowed_countries filter
'woocommerce_countries_allowed_countries' filter previously was not applied when 'all' was the selected option.
2017-09-05 16:37:29 -07:00
Mike Jolley 5443f44fcc Improve location step 2017-08-08 17:32:21 +01:00
Mike Jolley 77c938202f Merge branch 'add/15602-store-street-level-address'
# Conflicts:
#	assets/css/admin-rtl.css
#	assets/css/admin.css
2017-06-30 15:00:51 +01:00
Mike Jolley ccad987bac Allow state field to have the correct country set by passing it through
Fixes #15632
2017-06-16 11:45:53 +01:00
Allen Snook 0d1a1d1dbd Update WC_Countries to include new store address helpers 2017-06-15 10:54:24 -07:00
Mike Jolley d3666738d8 Merge branch 'pr/15069' 2017-05-23 18:56:58 +01:00
Mike Jolley 7901653f94 Merge pull request #15003 from woocommerce/fix/15001
Use VAT for norway
2017-05-23 15:07:39 +01:00
Rasmus Bengtsson 185934fad9 Fix phpdoc to include params and correct types 2017-05-15 13:50:52 +02:00
Rasmus Bengtsson 6a7fc8650f Remove unused local variables 2017-05-15 12:06:52 +02:00
Mike Jolley 55497b8671 Use VAT for norway 2017-05-10 17:48:03 +01:00
Mike Jolley aacb01d1e7 Merge branch 'pr/13503'
# Conflicts:
#	assets/css/twenty-seventeen.css
#	assets/css/woocommerce-layout.css
#	assets/css/woocommerce-layout.scss
#	assets/css/woocommerce.css
2017-04-27 12:46:05 +01:00
hussong 3ca4c733c7 Change field label and placeholder to minimize user error, add translators notice
Status Quo:
Working with several high-volume WooCommerce shops (in the range of several thousand orders per day combined), we've seen that the current placeholder text (and its translations in particular) lead to quite a few users filling in their address data incorrectly. You'd be surprised by the number of people who fail to properly write down their own address (house number missing, house number in wrong place).

Problem:
This leads to incomplete shipping labels, unsuccessful deliveries, and costly returns (especially for international shipping: 10-40 Euros lost per parcel).

Solution:
While some of these may stem from misdirected or incomplete browser auto-fills, we've seen (by customizing the language files for German, French, Spanish and Italian) that a more descriptive placeholder text helps reduce user errors on address entry. The goal is basically to make this as fool-proof as possible.

Why this matters: 
At 1000 orders shipped per day, getting the error rate from 5% down to 4% means 10 less parcels coming back every day, which can save hundreds of Euros per day.

Choice of wording:
- "Address" is not just one field, but rather the sum of all address fields that will end up on a shipping label.
- "Street Address" is what the user needs to input here, hence the new label for the two address fields
- "House number and street name" is the most descriptive placeholder text I can come up with for this field (assuming the U.S. as default), hence the new placeholder text. 
- Translator notice added since many countries will have the house number after the street name.

References:
- https://en.wikipedia.org/wiki/Address_(geography)
2017-04-20 11:46:14 +10:00
rafsuntaskin 6334e95576 UAE state field set to not required, resolves #14409 2017-04-16 14:55:13 +06:00
Mike Jolley f5fdd59209 More states
Fixes #14270
2017-04-11 19:10:01 +01:00
Mike Jolley 6ad0f1755d KW does not have states
Fixes #14266
2017-04-11 19:02:23 +01:00
Claudio Sanches 5a7af35d46 Removed extra clear parameter from addresses 2017-04-05 11:57:39 -03:00