• Resolved mayank29gupta

    (@mayank29gupta)


    I want to rename Postcode/Zip Code field in checkout to Pin Code. In India, we call in Pin Code and I often face issue where customers from small town are unable to tell what to enter in this field. Can it be done??

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @mayank29gupta,
    For this, you can use the loco translate plugin that is available free on the www.ads-software.com you can use that plugin and change the checkout field according to your need.

    Hi @mayank29gupta ,

    Please use this, it will work for sure,

    function ced_text_strings( $translated_text, $text, $domain ) {
        switch ( $translated_text ) {
            case 'Postcode / ZIP' :
                $translated_text = __( 'Pin Code', 'woocommerce' );
                break;
        }
        return $translated_text;
    }
    add_filter( 'gettext', 'ced_text_strings', 20, 3 );

    Note: ” case ‘Postcode / ZIP’ : ” this is case sensitive.

    Thanks,

    Plugin Support kellymetal a11n

    (@kellymetal)

    Hi there!

    We haven’t heard back from you in a while, so I’m going to mark this thread as resolved — hopefully either @mohitmishra’s suggestion of Loco Translate or @cedcommerce’s snippet worked for you.

    If you have any further questions, please start a new thread.

    Have a wonderful day!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to rename Checkout Field’ is closed to new replies.