Support » Plugins and Hacks » [Resolved] Woocommerce, variation dropdown

[Resolved] Woocommerce, variation dropdown

  • Deelay2


    when I add variotions to my product, the standard-option say “choose an&hellip…” instead off “choose an option”.
    Where in the code do I change this?

    If you guys also has a code for changing it to “choose an #attribute#” I say thanks too, hehe…


    [Moderator Note: Bumping? After just an hour? Is that a joke? No bumping! If it’s that urgent, consider hiring someone.]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Chrome Orange



    This doc shows you how to copy and modify the template files in an upgrade safe way


    Once you understand that you will need to copy variable.php and create a coy in your theme.

    Look for this on line 24

    <option value=""><?php echo __( 'Choose an option', 'woocommerce' ) ?>&hellip;</option>

    and replace it with

    <option value=""><?php echo sprintf( __( 'Choose a %s', 'woocommerce' ), $woocommerce->attribute_label( $name ) ) ?>&hellip;</option>

    or you can just replace the ‘Choose an Option’ with the text of your choice





    Thanks 🙂 That worked perfectly 😀

    Thanks! Exactly what I needed.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Woocommerce, variation dropdown’ is closed to new replies.