diff --git a/includes/rules_shipping_framework_woocommerce.php b/includes/rules_shipping_framework_woocommerce.php index 75381e9e7d252f61dda1571ad0f408af0c479659..9baeff48932df40f2752af0a9b97960fe56cc0d9 100644 --- a/includes/rules_shipping_framework_woocommerce.php +++ b/includes/rules_shipping_framework_woocommerce.php @@ -296,6 +296,8 @@ class RulesShippingFrameworkWooCommerce 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' => trim($address['city']), 'country' => trim($address['country']), 'state' => trim($address['state']),