Thread Starter
diegpl
(@diegpl)
I needed to translate it using this code:
function my_custom_cart_button_text( $text, $product ) {
if( $product->is_type( ‘variable’ ) ){
$text = __(‘Silicitar Orçamento’, ‘woocommerce’);
}
return $text;
}
add_filter( ‘woocommerce_product_single_add_to_cart_text’, ‘my_custom_cart_button_text’, 10, 2 );
But Im not sure that is the best option, since it seems to be a bug, or not? Thank you very much!!!
I don’t think it is a bug. Variable products take you to the single product first. “Add to quote” does not add to quote but takes you to single product to choose an option. The default label is “Choose Option”. I will add an option for that wording in the next update. But you can also use the language files to translate the plugin to Portuguese which is even a better option.
checkout 1.8.25. I think the issue is resolved there.
I don’t know if this was fixed for you but if it was not try 1.8.28. It should be fixed there.