In some cases, there might be a need to change the Popup Variation Toggler text so that you can match it with your website theme or the product that you are selling from the Checkout or to grab the attention of the users.
As there is no option in the backend setting to change this text it does not mean that you cannot change it. You can!!. But using the filter that we have provided.
It is very simple to change the text using the filter you just need to copy-paste the code into your child theme’s functions.php file and change the text as per your requirement.
add_filter( 'cartflows_variation_popup_toggle_text', 'change_variation_toggle_text', 10, 1 );
/**
* Change Choose a variation text.
*
* @return text.
*/
function change_variation_toggle_text( $text ) {
return "Add your choice of text here";
}
Note: Add the above filter to your child theme’s functions.php, here’s an article to help you Add Custom code.