Please enter a complete address
-
Hello
I have customised the country dropdown and changed the Zip field to Post Code and removed the regex as per the instructions on the website and I get a “Please enter a complete address” error on submitting.
Contents of child there functions.php:
/**
- Set a default the default value to ‘Australia’ for the country dropdown
- @resource: https://github.com/yikesinc/yikes-inc-easy-mailchimp-extender/issues/452
- @note: specify your country values in ISO 3361 Alpha-2 code (for help see: http://www.freeformatter.com/iso-country-list-html-select.html)
*/
function yikes_mailchimp_set_default_country_in_dropdown( $country_abbrev ) {
$country_abbrev = ‘AU’;
return $country_abbrev;
}
add_filter( ‘yikes-mailchimp-default-country-value’, ‘yikes_mailchimp_set_default_country_in_dropdown’ );
/**
- Change the ‘Zip’ field label to ‘Post Code’ (beneficial for UK residents)
- @reference: https://github.com/yikesinc/yikes-inc-easy-mailchimp-extender/issues/453
*/
function yikes_mailchimp_change_zip_label_to_postcode( $field_label ) {
$field_label = ‘Post Code’;
return $field_label;
}
add_filter( ‘yikes-mailchimp-address-zip-label’, ‘yikes_mailchimp_change_zip_label_to_postcode’ );
/**
- Completley remove the regex pattern for validating zip codes
- @reference: https://github.com/yikesinc/yikes-inc-easy-mailchimp-extender/issues/453
/ function yikes_mailchimp_remove_zip_regex_pattern( $regex_pattern ) { $regex_pattern = ‘[\s\S]‘;
return $regex_pattern;
}
add_filter( ‘yikes-mailchimp-zip-pattern’, ‘yikes_mailchimp_remove_zip_regex_pattern’ );
Help on this is greatly appreciated.
Thank youThe page I need help with: [log in to see the link]
The topic ‘Please enter a complete address’ is closed to new replies.