Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #806279

    Simply one for you!

    I would like to change the checkout form title”Billing details” To something else.

    I have tried adding this to my child theme functions.php. But its not changing:

    //Change the Billing Details checkout label to Your Details
    function wc_billing_field_strings( $translated_text, $text, $domain ) {
    switch ( $translated_text ) {
    case ‘Billing Details’ :
    $translated_text = __( ‘Your Details’, ‘woocommerce’ );
    break;
    }
    return $translated_text;
    }
    add_filter( ‘gettext’, ‘wc_billing_field_strings’, 20, 3 );

    #806280

    Sorry being an idiot!

    I created a folder in my child theme called woo commerce and then a folder within called templates – to keep it free from updates wiping out my changes.

    I then copied “form-billing.php” form woocommerece> templates>checkout into this folder and then just edited the file.

    Bingo it all works fine. I was just thinking about the obvious when i started with the functions.php and not woocommerece it self.

    Ticket closed

    #806329

    Hi,
    Thank you for sharing your solution, we will close this now. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Basic fix’ is closed to new replies.