WooCommerce Force Default Variant


Please Note – This plugin requires WooCommerce Version 2.4 or greater in order to properly function.

All WooCommerce variable products have a dropdown to select which variant the customer wants to add to cart. The standard behavior is to not set a default and until a variant is chosen the ‘Add to Cart’ button is not visible.

This can cause confusion to customers coming to your site, which as a knock on affect could cause a lower than average conversion rate.

You can solve this by manually setting a default option per product, but this can be time consuming on sites with lots of products and also the user can still ‘clear’ the selection, causing the Add to Cart button to hide again.

This plugin aims to solve these issues by removing the blank ‘Choose an Option’ value from the dropdown, removing the link to clear the options and instead listing out only the actual variants, always setting a default.

This default can be configured in one of 3 ways; the shop owner can choose to either list the variant by ID, Price Low -> High and Price High -> Low. This can be changed via the WooCommerce -> Settings -> Product -> Variant menu. If you have already set a default variant for each individual product, then this will still stay as the default.


  1. Upload the folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to WooCommerce -> Settings -> Products -> Variant to choose how to display the Variations.


Installation Instructions
  1. Upload the folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to WooCommerce -> Settings -> Products -> Variant to choose how to display the Variations.
This plugin doesn’t do anything

Force Default Variant For WooCommerce is an extension of WooCommerce. Without at least WooCommerce version 2.4 installed and active then there will be no need for this plugin

After activation I now get a Fatal Error where the Variant drop down should be?

This is due to an outdated version of WooCommerce. If you update to the most recent version of WooCommerce your issue will be fixed.

I can’t see the options

The options are within WooCommerce Settings. You can find it at the following location: WooCommerce -> Settings -> Products -> Variant.


Works great, but..

That’s a great plug-in. Thank you very very much. It does help a lot.
But it would be much much better if it had selected the next option whatever has stock. Currently plug-in is also selecting the variations even if they don’t have stock. If it is not in stock, it should pass that, and select the next variation. Than i am happy 🙂
Thanks again.

Works Great!

This plugin saved me a lot of time, it works with the latest woocommerce plugin at this moment (Version 3.4.6). Highly recommended!

Not working

I am using latest woocommerce version (3.4.5) and latest plugin. Plugin is not working for me. When I enabled WP_DEBUG, i got NOTICE’s.

What a life-saver!

A client with roughly 14.000 products, all with variations, needed an import to WooCommerce. I did the import but no default variation where set. This plugin did just that!

Great Plugin!

I was looking for a simple solution and this one worked really well for me. I’d just like to point out that there’s a little bug – when you were coding the variations.php file, in the end you deleted the “Choose an option” variation but you forgot to reduce the number of possible variations. Thus the last option/attribute on a product page was not-selectable.

A quick solution is to remove the line $args[‘selected’] = $prices[0][1]; from the variations.php file.

Read all 6 reviews

Contributors & Developers

“WooCommerce Force Default Variant” is open source software. The following people have contributed to this plugin.




  • UPDATE – Now works with WordPress 4.9 and above.
  • UPDATE – Now works with WooCommerce 3.3 and above.
  • UPDATE – Works with PHP 7.0 and above.


  • UPDATE – Now works with WordPress 4.6.2
  • UPDATE – Now works with WooCommerce 2.6.4


  • IMPROVEMENT – Removed ‘Choose an Option’ dropdown option.


  • FIX – fixed Fatal Error on activation.


  • UPDATE – Compatible with WordPress 4.4+
  • UPDATE – Compatible with WooCommerce 2.4+
  • IMPROVEMENT – Removed Templates and now using correct Functions/Filters for safer Updates


  • Released Beta Version