• Resolved eefkedigibitch

    (@eefkedigibitch)


    Hi There,

    I have a product with different variations set in Woo. Next to those variations I have set an add-on for this product. The Woo variation has the line ‘Choose an option’ which is translated to ‘Kies een optie’ in Dutch.
    The Yith add-on has the the line ‘Select an option’ which is translated to Selecteer een optie’.
    I would like to have them both the same.

    So can I change the translation of the line in the Yith add-on plugin?
    I tried to change the lines 1174 and 1914 in the dutch .po file of the plugin, but this didn’t change it.

    Hope you can help!
    Kind regards,
    Eve

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Facundo Arano

    (@aranofacundo)

    Hi there,

    I hope you’re well. You can change the text you mentioned of the plugin by adding the following PHP code in the functions.php file of your current theme:

    if ( ! function_exists( 'yith_wapo_custom_select_option_label' ) ) {
    function yith_wapo_custom_select_option_label( $label ) {
    return 'YOUR NEW STRING';
    }
    add_filter( 'yith_wapo_select_option_label', 'yith_wapo_custom_select_option_label', 10, 1 );
    }

    You will need to replace YOUR NEW STRING with Kies een optie or any other text you prefer.

    We’ll remain at your disposal.

    Thread Starter eefkedigibitch

    (@eefkedigibitch)

    Thanks so much for your help!
    I have another one and I couldn’t figure out what it should be, following the first code. So I hope you can help me again.

    At the bottom, before the ‘add to cart’ button there is a table with the product price / total options / Order total calculated. Order total is translated to Bestelling totaal and I would like it to be ‘Totaal order’.

    Do you also know the code I should use for that?

    Thanks again for your help!

    Plugin Support Facundo Arano

    (@aranofacundo)

    Hi there,

    You can use the following code too to change the label you mentioned:

    if ( ! function_exists( 'yith_wapo_custom_order_total_label' ) ) {
    function yith_wapo_custom_order_total_label( $label ) {
    return 'YOUR NEW STRING';
    }
    add_filter( 'yith_wapo_table_order_total_label', 'yith_wapo_custom_order_total_label', 10, 1 );
    }

    We’ll remain at your disposal.

    Thread Starter eefkedigibitch

    (@eefkedigibitch)

    Thank you so much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.