• Hello,

    Is not possibile to tranlaste the term “Choose an option” on variation select using Loco Translate.

    Looking the file templates/yith-wccl-variable-loop.php you can see the yith-woocommerce-color-label-variations as text domain, instead yith-woocommerce-product-add-ons.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi there,

    Try to add this PHP code in your theme functions.php file:

    add_filter( 'yith_wccl_empty_option_loop_label', 'my_wccl_empty_option_loop_label' );
    function my_wccl_empty_option_loop_label() {
        return 'MY_TRANSLATED_STRING';
    }

    … and replace the MY_TRANSLATED_STRING label.

    • This reply was modified 4 years, 2 months ago by YITHEMES.
    Thread Starter Kézily Correa

    (@kezily)

    Thank you @yithemes.

    When the user selects an option (on home and archives pages), the add to cart button shows the untranslated label as well.

    On product single, the button is showing the correct label.

    How can I change it?

    Plugin Author YITHEMES

    (@yithemes)

    Hi,
    we’ve just tried it in our local installation and it works fine!

    Please, could you provide us with further information about the issue you are experiencing?
    For example:
    – a screenshot of the plugin settings
    – a screenshot of the untranslated text on home and archives pages

    We look forward to hearing from you!

    Thread Starter Kézily Correa

    (@kezily)

    Hello @yithemes,

    – The plugin settings: https://prnt.sc/xd8jr1
    – Before / after attribute selection on archive pages: https://prnt.sc/xd8m64

    Plugin Author YITHEMES

    (@yithemes)

    Hi,

    Please try to add the following code snippet to your theme functions.php

    if ( ! function_exists( 'yith_wccl_customization_add_to_cart_button_content' ) ) {
    	add_filter( 'yith_wccl_add_to_cart_button_content', 'yith_wccl_customization_add_to_cart_button_content' );
    	function yith_wccl_customization_add_to_cart_button_content() {
    		return 'Comprar';
    	}
    }

    and let us know if this will solve the issue.

    • This reply was modified 4 years, 2 months ago by YITHEMES.
    Thread Starter Kézily Correa

    (@kezily)

    Thank you @yithemes, this solve the issue ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Text not translating’ is closed to new replies.