• Resolved pasecdesign

    (@pasecdesign)


    Hi, I have a problem with translating Quote Button Text. for translation I use WPML Pro plugin. Could you please help me how to translate this button?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Nitin Prakash

    (@nitin247)

    Hi @pasecdesign, Thanks for using the plugin

    Please put following code snippets in theme function or via any code snippet plugin, after that the texts should be available for translation in WPML.

    // Code Snippet for Add to Cart or Buy Now button Text
    add_filter( ‘wpowp_translate_add_cart_txt’, ‘wpowp_translate_add_cart_txt’ );
    function wpowp_translate_add_cart_txt( $add_cart_text ){
    return __(‘Buy Now’,’wpowp’);
    }

    // Code Snippet for Request Quote button Text
    add_filter( ‘wpowp_translate_quote_only_txt’, ‘wpowp_translate_quote_only_txt’ );
    function wpowp_translate_quote_only_txt( $quote_only_txt ){
    return __(‘Request Quote’,’wpowp’);
    }

    // Code Snippet for Free Product label
    add_filter( ‘wpowp_translate_free_product_text’, ‘wpowp_translate_free_product_text’ );
    function wpowp_translate_free_product_text( $free_product_text ){
    return __(‘FREE’,’wpowp’);
    }

    Plugin Author Nitin Prakash

    (@nitin247)

    Contact me if anything else needed.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Translate Quote Button Text with WPML’ is closed to new replies.