Aquesta extensió no s’ha provat en les darreres 3 versions majors del WordPress. Segurament no està mantinguda o suportada, i pot tenir problemes de compatibilitat quan s’usa en versions recents del WordPress.

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 behaviour 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 multiple ways; the shop owner can choose to either list the variant by Position, ID, Price Low -> High and Price High -> Low. If there are multiple variants with the same Initial Sort (Price for example), you can now assign a secondary sort function. These can be Position, ID, Stock Levels or Total Sales.

This can all be changed via the WooCommerce -> Settings -> Product -> Variant menu. If you have already set a default variant for each individual product, you can decide to keep that, or use this plugin instead.


  1. Upload the folder to the /wp-content/plugins/ directory
  2. Activa l’extensió mitjançant el menú ‘Extensions’ del 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.


14 de desembre de 2022
Perfect ! Install, activate, choose a few options and you’re all done. Works perfectly as described. Thanks to the developer !
5 de novembre de 2020
Merci pour ce module qui fonctionne très bien ! Plus de problèmes pour ajouter facilement au panier lorsqu’il n’y a plus qu’une seule option disponible.
18 de agost de 2020
Works perfectly. Note: if you also use the swatch variation plugin, check the box in settings for Disable auto-removal of select option.
Llegiu totes les 19 ressenyes

Col·laboradors i desenvolupadors

«WooCommerce Force Default Variant» és programari de codi obert. La següent gent ha col·laborat en aquesta extensió.


“WooCommerce Force Default Variant” s’ha traduït a 1 configuració regional. Gràcies als traductors per les seves aportacions.

Traduïu «WooCommerce Force Default Variant» a la vostra llengua.

Interessats en el desenvolupament?

Navegueu pel codi, baixeu-vos el repositori SVN, o subscriviu-vos al registre de desenvolupament per fisl de subscripció RSS.

Registre de canvis

1.8 – 27th October 2023

  • FIX – Issue with multiple attributes fixed
  • NEW – Tested and declared compatibility with WC HPOS
  • UPDATE – Works with WooCommerce 8.2.1
  • UPDATE – Works with WordPress 6.3.2

1.7 – 24th March 2023

  • NEW – Adds the ability to order variations Alphabetically
  • FIX – Now requires WooCommerce to be active before activating
  • UPDATE – Works with WooCommerce 7.5+
  • UPDATE – Works with WordPress 6.1+
  • UPDATE – Works with PHP 8.1

1.6.1 – 29th July 2022

  • FIX – Issue in 1.6 that caused Out of Stock variations to appear in WooCommerce Hide Out of Stock setting is ticked.

1.6.0 – 1st July 2022

  • FIX – Sort by Position fixed – This will now correctly sort by the variation order within the Variations tab on each Product page.
  • FIX – Sort by Position renamed – To reflect the fix above, this has also been renamed to ‘Variation Position’ to make it clearer.
  • NEW – Sort by Attribute Order now exists – This will sort by the Menu Order based on the variation Attributes.
  • UPDATE – Works with WooCommerce 6.6+
  • UPDATE – Work with WordPress 6.0+


  • FIX – Will work properly with custom attributes
  • FIX – ‘Select Option’ toggle works properly with WooCommerce v4+
  • FIX – ‘Hide out of stock items’ now works properly with WooCommerce v4+
  • IMPROVEMENT – If all Variants are below your specified Stock Limit, this will display the correct WooCommerce ‘Out of Stock’ message.
  • UPDATE – Works with WooCommerce 4.1.1
  • UPDATE – Works with WordPress 5.4.1


  • FIX – Now respects the ‘Hide out of stock items’ option within WooCommerce.
  • IMPROVEMENT – Improved the ability for external translations.
  • UPDATE – Tested up to WooCommerce 4.0+


  • NEW – Added in a Secondary sort function. If products have the same price you can sort them again by Stock, Sales, ID or Position
  • IMPROVEMENT – Added in more Filters and hooks.
  • UPDATE – Tested up to WordPress 5.3
  • UPDATE – Tested up to WooCommerce 3.8


  • NEW – Select Option will now be removed from all product dropdown by default.
  • NEW – Added new setting to toggle default ‘Select Option’ text
  • FIX – Notice in /includes/variations.php:170
  • FIX – Default selected option field being blank on page load due to missing JS classes.
  • UPDATE – Now works with WordPress 5.2 and above.


  • NEW – Adding in the ability to sort by Variant Position
  • NEW – Added in Filters to make it easier to add your own sorting format.
  • NEW – Added filter to allow you to show/hide unavailable selections on multiple attributes.
  • FIX – If a Variant is disabled it will no longer appear on the list.
  • FIX – Takes note of Sale prices when reordering by Price.
  • FIX – Works with multiple attributes at once.
  • UPDATE – Now works with WordPress 5.1 and above.


  • FIX – Fixed a fatal error when variation does not exist.
  • FIX – Fixed an error where type became unreadable.


  • NEW – The Stock Status will be checked before the variant is selected. You will no longer have an out of stock Default Variant
  • NEW – Added the ability to set a minimum Stock Quantity limit if you manage stock manually.
  • NEW – Added the ability to keep manually set defaults on a site wide basis.
  • UPDATE – Now works with WooCommerce 3.5 and above.
  • UPDATE – Now works with WordPress 5.0 and above.


  • 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