Commit Graph

55 Commits

Author SHA1 Message Date
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
jozeflambrecht 6c86950075
Update class-wc-validation.php
Add support for validation BE postcodes

https://github.com/woocommerce/woocommerce/issues/28144
2020-10-29 19:11:36 -04:00
Claudio Sanches e581ffce27
Fixed missing "break" 2020-10-14 19:22:19 -03:00
KoolPal 41ea743a22
Update includes/class-wc-validation.php
Please proceed with your suggested changes. I cannot continue to debate this.

Co-authored-by: Claudio Sanches <contato@claudiosanches.com>
2020-09-04 14:12:23 +00:00
KoolPal 4fc66caadb
Updated - Added postcode validation for India
Updated from incorrect PR #27517
Postcode in India consists of 6 digit number.
Reference:
https://en.wikipedia.org/wiki/Postal_Index_Number
https://en.m.wikipedia.org/wiki/Address#India

Popular eCommerce sites in India use the same logic for Postcode:
Amazon India (https://www.amazon.in) & FlipKart (https://www.flipkart.com)

P.S. Please review as I am not very confident at a PR.
2020-09-01 11:21:06 +05:30
Claudio Sanches 5c4d42b9de
Merge pull request #27059 from masteradhoc/masteradhoc-postcode-liechtenstein
add postcode validation for country liechtenstein
2020-08-14 15:40:30 -03:00
jonathansadowski 0125eca73c
Merge pull request #27244 from jgreys/fix/27108
Fix Japan zip code format issue #27108
2020-08-12 16:56:48 -05:00
GREYS feb291e2ee Fix for issue #27108 2020-08-06 17:11:44 +09:00
Brian bf92d07442
add postcode validation for liechtenstein
added the postcode validation for liechtenstein.
max. 4 digits
has to start with 94**
second * can only be a 8 or a 9
2020-07-17 11:50:51 +02:00
Damir Ha 9a5d920bdb Add postcode validation for Bosnia and Herzegovina 2020-07-16 13:52:01 +02: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
Andrej Mernik d20d429e32 Add postcode validation for Slovenia (#25174)
Add postcode validation for Slovenia
2019-12-09 10:09:45 -03:00
Claudio Sanches 3a47453d68 Improve regex 2019-06-01 11:52:15 -03:00
Claudio Sanches e04e9ae521 Make NL postcode validation more flexible
Allows postcode without spaces and in lowercase.
2019-05-28 20:51:07 -03:00
Marco Chiesi e2dd7504d0
Added validation for Italian postcodes 2019-04-10 23:44:50 +02:00
ICT beheer 8eb9393e62 Support for Dutch postcodes 2018-12-30 20:02:59 +01:00
Peter Fabian 897af8d20e Updated phone validation and formatting rules. 2018-08-24 15:43:46 +02:00
Mike Jolley 78f34aed99 Eircode regex 2018-05-03 11:26:13 +01:00
Claudio Sanches cc7d7eec42 Fixed includes/class-wc-validation.php coding standards 2018-03-21 00:21:41 -03:00
Rodrigo Primo 4229b3c5b2 Rename WC_Validation::is_GB_postcode() to WC_Validation::is_gb_postcode()
To follow WP coding standards
2018-03-13 08:49:40 -03:00
Rodrigo Primo 850bbc1c40 PHPCS fixes in includes/class-wc-validation.php 2018-03-13 08:49:34 -03:00
Karolína Vyskočilová 54f9bfafa1
CZ/SK zip - exchange space for \s 2017-11-30 19:33:16 +01:00
Karolína Vyskočilová 864c41c35a
Add zipcode validation for Slovakia 2017-11-29 18:55:35 +01:00
Karolína Vyskočilová deb00803b5
Add zipcode validation for Czech republic 2017-11-29 18:48:15 +01:00
corsonr 96bfb45b02 Add zipcode validation for France
Add zipcode validation for France and oversea territory.
2017-05-05 09:52:03 +02:00
Mike Jolley 04e07795fc Allow forward slash in tel
Closes #14646
2017-04-24 15:24:37 +01:00
JeroenSormani d553b080de Fix some docblock @param tags / remove a @access public 2017-03-01 18:44:11 +01:00
Krzysztof Grabania f73ab637fc Added polish postcode validation 2016-10-19 15:48:13 +02:00
Aristeides Stathopoulos fde1037757 fix failing tests. 2016-09-01 23:50:14 +03:00
Aristeides Stathopoulos 72696901f3 WordPress.WhiteSpace.OperatorSpacing.SpacingAfter 2016-08-27 09:14:06 +03:00
Claudio Sanches 7d9d091767 Fixed mixed tabs and spaces 2016-07-11 16:56:35 +02:00
Claudio Sanches e39274e753 HTTPS for everybody 2016-05-26 22:48:49 -03:00
Philip Salzmann 18bfce0747 Add austrian postcode validation 2016-05-23 13:32:16 +02:00
Shohei Tanaka 4c45e995d7 Fix again
Fix again, sorry.
2016-05-10 10:05:09 +09:00
Shohei Tanaka e9c8b8b526 Error fixed
Fixed it.
2016-05-10 08:46:38 +09:00
Shohei Tanaka 2d5d7d1494 Japanese post code validation
Set Japanese post code validation.
Please check following site.
https://en.wikipedia.org/wiki/Postal_codes_in_Japan
2016-05-10 07:33:47 +09:00
Mike Jolley 1cf4543137 Spanish postcode format
Closes #10529
2016-03-10 12:17:49 +00:00
jamez 5256cf47dc Canada Postal code validation
Added Postal Code validation for Canada (country-code=CA).  Also added
to the validation unit test for valid and invalid postal code examples.
2016-02-09 12:39:09 -05:00
Nicola Mustone c9da4f928a check if ABSPATH is defined 2015-11-06 10:22:19 +01:00
Claudio Sanches 5893875b0c Removed period for file headers 2015-11-03 11:53:50 -02:00
Claudio Sanches ee30b5b308 Fixed php docs standards 2015-11-03 11:31:20 -02:00
wtom 7368377e8d german postcode validation 2015-10-08 12:20:57 +02:00
Claudio Sanches ef0f527b40 Created new woocommerce_validate_postcode filter
And added PT postcode validation

closes #8319
2015-06-08 11:50:21 -03:00
Nicola Mustone c8687d35d8 methods don't return anything 2015-04-08 16:28:06 +02:00
Mike Jolley b2e979640c Removed unused vars 2015-02-03 16:24:01 +00:00
Mike Jolley 615ebc3916 is_GB_postcode define array 2014-10-07 11:09:32 +01:00
Andrew Benbow 919fc6ba9b Update class-wc-validation.php
Correct character 3 vaildation
2014-05-14 00:55:29 +01:00
claudiosmweb 995b672c8a refixed the BR postcode validation 2013-10-18 16:06:27 -03:00
claudiosmweb 91193c5dac fixed the BR postcode validation 2013-10-18 16:03:27 -03:00
claudiosmweb 538d776d3f fixed is_postcode method description 2013-10-18 15:58:51 -03:00