• Hello,
    I would like to ask if someone has exactly the same problem!

    I am trying to change “BILLING DETAILS” in woocommerce plugin to something else, but it does not work. I already change “billing details” in /wp-content/plugins/woocommerce/templates/checkout form-billing.php file. nothings change.
    Somebody has posted script

    –code–
    //change the ‘Billing details’ checkout label to ‘Something else’
    function wc_billing_fields_strings ($translated_text, $text, $domain){
    switch ($translated_text){
    case ‘Billing details’ :
    $translated_text = __( ‘Something else’ , ‘woocommerce’);
    break;
    }
    return $translated_text;
    }
    add_filter (‘gettext’ , ‘wc_billing_fields_strings’, 20, 3);
    –/code–

    But it does not work again.

    Do you have any advice how to fix this problem?

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The simple & recommended way is to navigate to your theme folder and then create a folder named woocommerce inside that create a folder checkout

    Then copy the form-billing.php file from /wp-content/plugins/woocommerce/templates/checkoutand copy that in your theme'scheckout` folder you created above.

    Then open that form-billing.php from your theme and search for “Billing details” then edit that to whatever you want and you are done!

    For more details please refer WooCommerce documentation on overriding the templates – https://docs.woocommerce.com/document/template-structure/

    Thread Starter mikewoods1

    (@mikewoods1)

    thank you so much, it works for me

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change Woocommerce Title’ is closed to new replies.