Replies: 2
Hello
I have implemented the:
- Change ‘Zip’ field label to ‘Postal Code’
- Change the default country in the address drop down
as outlined on the Knowledgebase, but on form submission I get the “Please enter a complete address” error.
Contents of the childtheme functions.php file:
/**
- Set a default the default value to ‘Australia’ for the country dropdown
- @resource:
- @note: specify your country values in ISO 3361 Alpha-2 code (for help see:
*/
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:
*/
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:
/ 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’ );
Could you please provide some guidance?
Thank you in advance
T’Anne
- This topic was modified 23 hours, 13 minutes ago by .