Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #585646

    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

    #585648

    You have to input that don’t you ? We changed ours simply by editing it

    iPhone Repairs

    #585660

    I was able to input the user-defined ones. The default in German something like “Select an option” wasn’t created by me.

    #585758

    Hey!

    So it is solved?
    Please do let us know if you still facing the issue.

    Best regards,
    Basilis

    #585760

    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

    #586854

    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

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