WooCommerce plugin that sets default attribute for variable products automatically if only 1 option is in-stock.
Author: | Condless (profile at wordpress.org) |
WordPress version required: | 5.2 |
WordPress version tested: | 6.5 |
Plugin version: | 1.1.7 |
Added to WordPress repository: | 04-09-2020 |
Last updated: | 01-03-2024 |
Rating, %: | 100 |
Rated by: | 2 |
Plugin URI: | https://en.condless.com/default-attributes-fo... |
Total downloads: | 6 297 |
Active installs: | 600+ |
Click to start download |
WooCommerce plugin that sets default attribute for variable products automatically if only 1 option is in-stock.
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
- 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.
Screenshots
FAQ
ChangeLog