Skip to content
Sign in
Default Attributes for WooCommerce icon

Default Attributes for WooCommerce

WooCommerce plugin that sets default attribute for variable products automatically if only 1 option is in-stock.

Not scanned yet WordPress plugin 400 installs

Install in

No install steps yet

Follow the steps on the source page.

WooCommerce plugin that sets default attribute for variable products automatically if only 1 option is in-stock.

Documentation | Contact

Variable product of T-shirt with color attribute (White/Blue/Black) and size attribute (S/M/XL):
If only Black T-shirts are in-stock: default color (Black), default size (none).
If only Small T-shirts are in-stock: default color (none), default size (Small).
If only White and XL T-shirts are in-stock: default color (White), default size (XL).

How It Works

  1. Before product variations is displayed to the customer, the plugin will check each attribute, and if there is only 1 in-stock option it will be set as the default.

Features

  • Stock: Set option as default when it’s the only 1 in-stock.
  • Per Attribute: Set specific option as default in all products with that attribute (from the Edit Attribute screen)
  • Top: Set as default the first option of each attribute.
  • Out of stock: Disable out of stock variations.
  • Add to Cart button: In archive pages display for variable products the attribute name instead of: “Select options”.
  • Select options: In single product pages remove the select options text if default attribute is set.

Written by Joobi from the project's own listing. See the source page

attributesdefaultstockvariations
28 Nov 2026
Version 1.2.4 released. Not scanned yet.

1.2.4 – November 25, 2026

  • Enhancement – WordPress version compatibility

1.2.3 – August 13, 2026

  • Enhancement – WordPress version compatibility

1.2.2 – June 23, 2026

  • Enhancement – WordPress version compatibility

1.2.1 – December 23, 2025

  • Enhancement – WordPress version compatibility

1.2.0 – May 8, 2025

  • Enhancement – WordPress version compatibility

1.1.9 – November 12, 2024

  • Enhancement – WordPress version compatibility

1.1.8 – May 22, 2024

  • Enhancement – WooCommerce version compatibility

1.1.7 – March 1, 2024

  • Enhancement – WordPress version compatibility

1.1.6 – October 12, 2023

  • Enhancement – WooCommerce version compatibility

1.1.5 – June 30, 2023

  • Enhancement – WooCommerce version compatibility

1.1.4 – March 18, 2023

  • Enhancement – WooCommerce version compatibility

1.1.3 – December 22, 2022

  • Enhancement – WooCommerce version compatibility

1.1.2 – August 19, 2022

  • Enhancement – WooCommerce version compatibility

1.1.1 – June 1, 2022

  • Dev – Filter hook to disable plugin’s cache

1.1.0 – April 10, 2022

  • Enhancement – WooCommerce version compatibility

1.0.9 – February 27, 2022

  • Enhancement – WooCommerce version compatibility

1.0.8 – December 25, 2021

  • Enhancement – WooCommerce version compatibility

1.0.7 – October 20, 2021

  • Enhancement – WooCommerce version compatibility

1.0.6 – July 28, 2021

  • Dev – WP Compatibility

1.0.5 – June 30, 2021

  • Dev – WP Compatibility

1.0.4 – April 7, 2021

  • Feature – Filter products to apply

1.0.3 – February 27, 2021

  • Feature – Global and local attributes compatibility

1.0.2 – February 13, 2021

  • Feature – Filter transients expiration time

1.0.1 – December 23, 2020

  • Feature – Default per attribute

1.0.0 – August 29, 2020

  • Initial release
4 Sep 2020Listed on Joobi from WordPress.org.

Follow this listing's changes (Atom feed)