New Landing How can we help? Atelier Change name of "Proceed to checkout" button on header menu

Viewing 7 posts - 1 through 7 (of 7 total)
  • Posted in: Atelier
  • #225214
    malasuer
    Member
    Post count: 15

    Hi again!

    Other problem that i got it… I was trying to change the name of “Proceed to checkout” button that it shows on the cart of my header menu. I have found the function woocommerce_button_procced_to_checkout() in functions.php but this function only changes the name of the button when i´m in the checkout page but not on the box that shows on the header menu.

    ¿Where can i do this? I attached you an image with my question.

    Thanks! 🙂

    Attachments:
    You must be logged in to view attached files.
    #225281
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this custom code at functions.php of child theme.

    function sf_text_strings( $translated_text, $text, $domain ) {
    $translated_text = strtolower($translated_text);
    switch ( $translated_text ) {
    case 'Proceed to checkout' :
    // just change You text
    $translated_text = __( 'You text', $domain );
    break;
    }
    return $translated_text;
    }

    Thanks
    Mohammad

    #225424
    malasuer
    Member
    Post count: 15

    uhm… I do that and it´s not working, shows the same name on the button. Maybe i have to put also something like this? add_filter( ‘gettext’, ‘sf_text_strings’, 20, 3 );

    #225425
    malasuer
    Member
    Post count: 15

    And i put the add_filter but is the same. Don´t do anything :S

    #225426
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    You can use the default translation process.
    http://swiftideas.com/documentation/2014/05/26/translation/

    Or try this plugin

    Real-Time Find and Replace

    -Rui

    #248195
    turetskam
    Member
    Post count: 9

    I have the same problem. I’ve translated everything, after the latest update few words become untranslated, and I’ve fixed this. I’m not able to translate only one word, “Checkout” in a mini cart. Translation is present in a language file. I’m using LocoTranslate.

    Please investigate this asap.

    #248209
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,

    @turetskam
    – I already replied you another topic.
    Thanks
    Mohammad

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register