• Where can I find the file where I can translate directly from code the string “Please enter correct details for this required field” to woocomerce?

Viewing 2 replies - 1 through 2 (of 2 total)
  • @axc15

    Try below text change option available in woocommerce. You need to write it on your theme functions.php file

    // Alter WooCommerce Checkout Text
    add_filter( 'gettext', function( $translated_text ) {
        if ( 'Please enter correct details for this required field' === $translated_text ) {
            $translated_text = 'Your new text here';
        }
        return $translated_text;
    } );

    I hope this will help you!

    Hello,

    The easiest way is using a free translation plugin like Loco Translate. This will allow you to find that phrase and change it to be what you’d like. https://localise.biz/wordpress/plugin/beginners

    If you prefer not to use a plugin, you can check out a tutorial like this to get started.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Manual translation of a string from the checkout page for woocommerce’ is closed to new replies.