<span class="resolved" aria-label="Resolved" title="Topic is resolved."></span>Please enter a complete address

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:

/**

/**

  • 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’ );

Could you please provide some guidance?

Thank you in advance
T’Anne

  • This topic was modified 23 hours, 13 minutes ago by tannecmillls.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer