Taxonomy / Term based Discounts for WooCommerce


Lets you configure discounts / pricing rules for products based on any WooCommerce product taxonomy terms (built-in or custom), in a very simple way.

Allows you to set a start and end date for each discount. (Date/time support experimental)

WPML compatible.

Discount types

  • Percentage: apply an absolute percentage discount to all the products on a specific taxonomy term;
  • Buy x get y free: offer y items when x (of the same product) are bought;


  • The discounts are applied on a “per cart line” basis (not to sum of the products of the same taxonomy);
  • Only one rule is applied per cart line, so setting the priorities correctly is very important;
  • When aggregating product variations, the quantity will be the sum of the quantities of all the variations and the discount will be applied to all of them;
  • For WPML users, if you want the same discounts to apply on all the languages, you must replicate the rules for each of the terms translations


  1. Use the included automatic install feature on your WordPress admin panel and search for “Taxonomy / Term based Discounts for WooCommerce”.
  2. Activate the plugin through the Plugins menu in WordPress
  3. Got to WooCommerce, Taxonomy Discounts to set it up


Why is my product not showing the “Sale” badge?

We can only show the “sale” badge when we are absolutely sure the product will get a discount, no matter how many do you buy.
So, the badge is only shown for percentage base rules with no minimum quantity required.

How can I show the discount information on the product loop and page?

This is still beta, so you have to add the actions and priority on where you want to show the discount information to your wp-config.php file:
//Taxonomy / Term based discounts
define(‘WCTD_LOOP_DISC_INFO_ACTION’, ‘woocommerce_after_shop_loop_item_title’);
define(‘WCTD_PROD_DISC_INFO_ACTION’, ‘woocommerce_single_product_summary’);

This is for Storefront. You may have to tweak the action and priority to better match your theme.

Why is there no more FAQs?

The plugin is new, so not a lot of questions are frequent. Ask us something 😉


Read all 5 reviews

Contributors & Developers

“Taxonomy / Term based Discounts for WooCommerce” is open source software. The following people have contributed to this plugin.


“Taxonomy / Term based Discounts for WooCommerce” has been translated into 2 locales. Thank you to the translators for their contributions.

Translate “Taxonomy / Term based Discounts for WooCommerce” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Now correctly shows the discount inside WooCommerce Product Shortcodes (sponsored by Amaranto Design)
  • Small admin UX tweaks
  • Tested with WooCommerce 3.5.1 and bumped WC tested up to tag
  • Reached 1.0 for no special reason 🙂


  • Use add_woocommerce_term_meta and update_woocommerce_term_meta instead of add_term_meta and update_term_meta
  • Bumped WC tested up to tag
  • Bumped Requires at least tag


  • Added the taxonomy internal name on the select field
  • Bumped WC tested up to tag


  • “Feed KuantoKusta for WooCommerce” (to be released) plugin integration fix


  • Fix: some variation discounts were not applied correctly
  • “Feed KuantoKusta for WooCommerce” (to be released) plugin integration


  • Fix: after calculations, round the discounted price using the default WooCommerce decimal places, in order to avoid totals miscalculations
  • Support for start and end date/time activated by default (no need to use the WCTD_ENABLE_TIME constant)


  • Tested with WooCommerce 3.3
  • Bumped Tested up to tag


  • Fixed a bug where the end date of a discount would not be taken in account because 00:00:00 was assumed instead of 23:59:59;
  • Experimental support for start and end date/time (you must define WCTD_ENABLE_TIME as true on your wp-config.php file for this feature to be enabled);


  • Removed the translation files from the plugin languages folder (the translations are now managed on’s GlotPress tool and will be automatically downloaded from there)
  • Tested with WooCommerce 3.2
  • Added WC tested up to tag on the plugin main file
  • Bumped Tested up to tag


  • Fixed a bug where some “Buy x get y free” discounts would not be calculated correctly
  • Bumped Tested up to tag


  • Fixed a bug that would prevent ajax based backend actions to work correctly
  • Fixed a (nasty) bug that would duplicate discounts each time the cart was loaded on WooComerce 3.0 and above


  • Fixed a bug that would prevent ajax based frontends to apply discounts
  • Fixed a bug where the sale price wouldn’t correctly set on WooCommerce 3.0 cart
  • Beta: show sale flash on variable products and sale price on variations (after choosen on the product page)
  • Beta: show discount information on the loop and product pages (see the FAQ)


  • Tested and adapted to work with WooCommerce 3.0.0-rc.2
  • Bumped Tested up to tag

  • Bumped Tested up to tag


  • Fix version number;


  • Fix to avoid php notices when old rules don’t have the new “aggregate product variations” setting setup;


  • New option on tjhe percentage discounts that allow to aggregate different product variations on the cart and count them all as if they were a single product, so that the discount will be applied to all of them;


  • Increase compatibility with other plugins that manipulate the product value;
  • Stop using the $woocommerce global;
  • Tested with WordPress 4.6.1;


  • New wctd_get_product_ids_on_sale function to get the product_id of all the products that have an active discount, similar to WooCommerce’s native wc_get_product_ids_on_sale (to be used by developers);
  • Tested with WordPress 4.5;


  • First public release;
  • Minimum quantity on percentage discounts (leave empty or zero to apply to any quantity);
  • Configuration screen changes for better UX;


  • It’s now possible to disable further coupon discounts on top of our discounts, on a per rule basis:
  • Fixed “Cart Discount” will not be allowed if any discounted product is in the cart, because WooCommerce distributes the fixed value over the several cart lines and the final discount would not be the total coupon value, which would not be very clear for the customer;
  • The other coupon types, like “Cart % Discount”, “Product Discount” and “Product % Discount” will be applied only on cart lines where there’s no discounted products (that have a rule where “Disable coupons” is activated);


  • First (non-public) release;