Title: Product Attribute Filter for Coupons
Author: Christian Gäking
Published: <strong>2025 年 6 月 23 日</strong>
Last modified: 2025 年 6 月 23 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/product-attribute-filter-for-coupons.
svg)

# Product Attribute Filter for Coupons

 作者：[Christian Gäking](https://profiles.wordpress.org/cgaeking/)

[下载](https://downloads.wordpress.org/plugin/product-attribute-filter-for-coupons.1.0.6.zip)

 * [详情](https://cn.wordpress.org/plugins/product-attribute-filter-for-coupons/#description)
 * [评价](https://cn.wordpress.org/plugins/product-attribute-filter-for-coupons/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/product-attribute-filter-for-coupons/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/product-attribute-filter-for-coupons/#developers)

 [支持](https://wordpress.org/support/plugin/product-attribute-filter-for-coupons/)

## 描述

Do you want more control over your WooCommerce coupons? By default, you can restrict
coupons to products or categories, but not to specific product attributes like “
Color: Blue” or “Size: Large”.

**WooCommerce Attribute Coupons** solves this problem by adding a simple but powerful
new restriction rule to your coupon settings.

**Key Features:**

 * **Seamless Integration:** Adds new fields directly into the “Usage Restriction”
   tab on the coupon edit screen.
 * **Attribute Selection:** Choose any globally defined product attribute (e.g.,
   Color, Size, Brand).
 * **Attribute Value Selection:** After selecting an attribute, choose a specific
   value (e.g., Blue, Large, Nike).
 * **Smart Validation:** The coupon will only be valid if a product with the selected
   attribute and value is present in the customer’s cart.
 * **User-Friendly:** The setup is intuitive and requires no coding knowledge.

This plugin is perfect for targeted promotions, such as offering a discount on all
red t-shirts or clearing out inventory of a specific product variant.

## 屏幕截图

[⌊The new fields for attribute restriction in the coupon admin area.⌉⌊The new fields
for attribute restriction in the coupon admin area.⌉[

The new fields for attribute restriction in the coupon admin area.

## 安装

You can install this plugin directly from your WordPress dashboard:

 1. Go to ‘Plugins’ > ‘Add New’.
 2. Search for “WooCommerce Attribute Coupons”.
 3. Click ‘Install Now’ and then ‘Activate’.

Alternatively, you can install it manually:

 1. Download the plugin .zip file from WordPress.org.
 2. Go to ‘Plugins’ > ‘Add New’ > ‘Upload Plugin’ in your WordPress dashboard.
 3. Upload the .zip file and click ‘Activate’.

**Usage:**

 1. Go to ‘Marketing’ > ‘Coupons’.
 2. Create a new coupon or edit an existing one.
 3. Navigate to the ‘Usage restriction’ tab.
 4. You will find two new fields: “Product attribute restriction” and “Attribute value
    restriction”.
 5. Select an attribute and a value, then save the coupon.

## 常见问题

### Does this work with variable products?

Yes. The plugin checks the attributes of the products in the cart. If a specific
variation with the required attribute is in the cart, the coupon will be considered
valid.

### Can I add multiple attribute rules to a single coupon?

In the current version (1.0.0), you can only set one attribute rule per coupon (
e.g., “Color: Blue”). Support for multiple or combined rules may be considered for
future versions.

### Which attributes can I use?

You can use any globally created product attributes. You can manage these under ‘
Products’ > ‘Attributes’ in your WordPress dashboard.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Product Attribute Filter for Coupons」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Christian Gäking ](https://profiles.wordpress.org/cgaeking/)

[帮助将「Product Attribute Filter for Coupons」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/product-attribute-filter-for-coupons)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/product-attribute-filter-for-coupons/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/product-attribute-filter-for-coupons/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/product-attribute-filter-for-coupons/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/product-attribute-filter-for-coupons/)。

## 更新日志

#### 1.0.0

 * Initial release of the plugin.

## 额外信息

 *  版本 **1.0.6**
 *  最后更新：**1 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.8 或更高版本 **
 *  已测试的最高版本为 **6.8.11**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/product-attribute-filter-for-coupons/)
 * 标签
 * [attribute](https://cn.wordpress.org/plugins/tags/attribute/)[coupon](https://cn.wordpress.org/plugins/tags/coupon/)
   [coupons](https://cn.wordpress.org/plugins/tags/coupons/)[gutschein](https://cn.wordpress.org/plugins/tags/gutschein/)
   [gutscheine](https://cn.wordpress.org/plugins/tags/gutscheine/)
 *  [高级视图](https://cn.wordpress.org/plugins/product-attribute-filter-for-coupons/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/product-attribute-filter-for-coupons/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/product-attribute-filter-for-coupons/reviews/)

## 贡献者

 *   [ Christian Gäking ](https://profiles.wordpress.org/cgaeking/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/product-attribute-filter-for-coupons/)