ZIP Code formatting for Poland
In Poland we use ZIP code formatting: XX-XXX. So the "-" sign should not be removed.
This commit is contained in:
parent
4271617c79
commit
24235564d5
|
@ -668,6 +668,9 @@ function wc_format_postcode( $postcode, $country ) {
|
|||
case 'JP' :
|
||||
$postcode = trim( substr_replace( $postcode, '-', 3, 0 ) );
|
||||
break;
|
||||
case 'PL' :
|
||||
$postcode = trim( substr_replace( $postcode, '-', -3, 0 ) );
|
||||
break;
|
||||
case 'PT' :
|
||||
$postcode = trim( substr_replace( $postcode, '-', 4, 0 ) );
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue