diff --git a/rules_shipping_framework_joomla.php b/rules_shipping_framework_joomla.php index cea80d4f3bfba5a9638a354a76dbde8d5a602423..6c41bb68474b0e482dbc7a905aa8489906e2b1e6 100644 --- a/rules_shipping_framework_joomla.php +++ b/rules_shipping_framework_joomla.php @@ -232,6 +232,8 @@ class RulesShippingFrameworkJoomla extends RulesShippingFramework { 'zip4'=>substr($zip,0,4), 'zip5'=>substr($zip,0,5), 'zip6'=>substr($zip,0,6), + 'zipnumeric' => preg_replace('/[^0-9]/', '', $zip), + 'zipalphanum' => preg_replace('/[^a-zA-Z0-9]/', '', $zip), 'city'=>isset($address['city'])?trim($address['city']):'', 'countryid' => 0, 'country' => '', 'country2' => '', 'country3' => '', 'stateid' => 0, 'state' => '', 'state2' => '', 'state3' => '',