Tagged: variable product, woocommerce
Hi folks,
here the second problem in a separate tab:
WooCommerce Variant List – change of default text
The dropdown list for the variant shows as default a text like “Select an option”. Any chance to change this text?
I am aware that I can preset a real entry form the drop down, but I want to rename this default, in case the user switches variants.
Any chance?
Thanks
NCM
You have to input that don’t you ? We changed ours simply by editing it
I was able to input the user-defined ones. The default in German something like “Select an option” wasn’t created by me.
Hey!
So it is solved?
Please do let us know if you still facing the issue.
Best regards,
Basilis
No this one is not solved. I am looking for a replacement of the default text, in English somethign like “Select an option”.
gloopy’s suggestion did not work, as far as I can see.
Thx
Hey!
Use this filter in the functions.php file:
// define the variable_add_to_cart_text callback
function filter_variable_add_to_cart_text( $wcpgsk_variable_cart_button_text, $int, $int ) {
// make filter magic happen here...
return $wcpgsk_variable_cart_button_text;
};
// add the filter
add_filter( 'variable_add_to_cart_text', 'filter_variable_add_to_cart_text', 10, 3 );
Regards,
Ismael