case
This commit is contained in:
parent
0a816a25cb
commit
bf7d14f15f
|
@ -145,7 +145,7 @@ class WC_Checkout {
|
|||
switch ($key) :
|
||||
case "billing_postcode" :
|
||||
case "shipping_postcode" :
|
||||
$this->posted[$key] = strtolower(str_replace(' ', '', $this->posted[$key]));
|
||||
$this->posted[$key] = strtoupper(str_replace(' ', '', $this->posted[$key]));
|
||||
|
||||
if (!$validation->is_postcode( $this->posted[$key], $_POST['billing_country'] )) : $woocommerce->add_error( '<strong>' . $field['label'] . '</strong> ' . __('(billing) is not a valid postcode/ZIP.', 'woocommerce') );
|
||||
else :
|
||||
|
|
Loading…
Reference in New Issue