Please submit a private ticket if you need to share sensitive information, such as license details and admin credentials.

Okay
  Public Ticket #2764931
Translation to Portuguese
Closed

Comments

  • Rodrigo Kosonics started the conversation

    When I add a variable product in bundle and offer the user to choose the variation, the dropdown menu title is in English, instead of Portuguese.

    Currently, it shows "choose [atribute]".

    Additionally, while the product variation is not chosen, there is a box below the bunlde itens, which is also in English: "Please select some product options for [product name]  before adding this bundle to the cart."

    Can you help to get the proper translation for those itens?

    As reference, refer the this page: https://labiatto.com.br/produto/kit-todo-dia-e-dia/

  •  767
    Janilyn replied

    Hi Rodrigo,

    Thank you for contacting WPClever Support Forum. 

    We’ve received your ticket and assigned one of our developers to help you with that. 

    He’ll be looking into your question and responding with specific instructions as soon as possible. 

    Please stay patient as we're having very heavy workloads, it might take some time for our developers to reach back.

    Best regards.

    Janilyn T. - WPClever Support Agent

  • [deleted] replied

    Hi Rodrigo Kosonics,

    Currently, we not find a way to translate them, becase it is code of woocommerce and not related much with our plugin.

    Instead, we have a solution for you. Please add custom code into function.php of a child theme, and relate 'Choose' with a word you want to translate.

    // define the woocommerce_dropdown_variation_attribute_options_args callback 
    function filter_woocommerce_dropdown_variation_attribute_options_args( $array ) { 
        $attribute_name = wc_attribute_label($array['attribute']);
        $select_text = 'Your translate ' . $attribute_name;
        $array['show_option_none'] = __( $select_text, 'woocommerce' );
        return $array; 
    }; 
    add_filter( 'woocommerce_dropdown_variation_attribute_options_args', 'filter_woocommerce_dropdown_variation_attribute_options_args', 10, 1 );
    

    See the images below to know more details. About the notice 'Please select some product options for [product name]  before adding this bundle to the cart.', I see you translated them success.

    Regards,