Tagged: 

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

    hey,

    I would like to change the checkout button text ‘Pénztár’ on dropdown cart to ‘Távább a fizetéshez’.
    I use WPML and Woocommerce (up-to-date versions).

    I try this code, but doesnt work:

    /**
     * Change text strings
     *
     * @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext
     */
    function my_text_strings( $translated_text, $text, $domain ) {
        switch ( $translated_text ) {
            case 'Pénztár' :
                $translated_text = __( 'Tovább a fizetéshez', 'woocommerce' );
                break;
        }
        return $translated_text;
    }
    add_filter( 'gettext', 'my_text_strings', 20, 3 );

    How can I solve this? Can you help me or this is a WPML issue?

    Best regards
    Peter

    #640556

    Hey Peter!

    You can try using this plugin to translate the string – https://wordpress.org/plugins/loco-translate/ or you can go to wp-content/plugins/woocommerce/i18n/languages and edit language files using this free software – https://poedit.net/

    Cheers!
    Yigit

    #640571

    Thanks, its work without conflict WPML :D
    Nice!

    Goodbye!
    Peter

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘change checkout button text on woocommerce dropdown cart’ is closed to new replies.