• Resolved Humaniza

    (@humaniza)


    Hi!

    We have a problem with the checkout step. It verifies the city as if it were the post code and it always gives an error.

    At the moment, so that the error does not occur and we can receive orders, we have put this code that recognizes all postal codes as correct. Now on this development page the code is disabled, to see the error you just have to pretend that you are making a purchase.

    add_filter( 'woocommerce_validate_postcode' , 'mycode_override_postcode_check', 99, 3 );
    function mycode_override_postcode_check( $valid, $postcode, $country ) {
    return true;
    }

    Thank you,

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.