• Resolved Mysmasken

    (@mysmasken)


    I want to remove the ability to “Select an Option”. I want the user to HAVE to chose an option.

    I have searched here and Googled, and this line is supposed to be in variable.php:
    <option value=””><?php echo __( ‘Choose an option’, ‘woocommerce’ ) ?>…</option>

    But it’s not in mine =/ I just installed it a couple of weeks ago, so everything is up to date.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Mysmasken

    (@mysmasken)

    Since this seems to have changed in the latest version and I can’t find a good answer anywhere, this is what I finally figured out.

    In plugins/woocommerce/includes/wc-template-functions.php

    Remove this row:
    ‘show_option_none’ => __( ‘Choose an option’, ‘woocommerce’ )

    Any changes made to WooCommerce files will be lost when the plugin is updated. Instead you could copy the entire function to your child theme’s functions.php and make the necessary changes there.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WooCommerce Remove "Select an Option"’ is closed to new replies.