跳到内容

Default Attributes for WooCommerce

v1.2.3

Condless · 2020年9月4日 上架

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

正在使用
400+
评分
5.0 / 5
累计下载
1.2 万
最近更新
2026年8月23日
4 条评价需要 WordPress 5.2+已测试到 7.1.5PHP 7.0+

贡献者

截图

Default Attributes Plugin Settings
Default Attributes Plugin Settings
Per Attribute Settings
Per Attribute Settings
Product page default attribute
Product page default attribute

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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums