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.

安裝方式

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〉的開發相關工作。

參與者

變更記錄

1.0.0

  • Initial release of the plugin.