Taxonomy / Term based Discounts for WooCommerce

Description

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;

Notes

  • 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

Installation

  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

FAQ

Installation Instructions
  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_LOOP_DISC_INFO_PRIO’, 7);
define(‘WCTD_PROD_DISC_INFO_ACTION’, ‘woocommerce_single_product_summary’);
define(‘WCTD_PROD_DISC_INFO_PRIO’, 6);

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 😉

Reviews

Read all 4 reviews

Contributors & Developers

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

Contributors

“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.

Changelog

0.9.7

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

0.9.6

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

0.9.5

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

0.9

  • 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)

0.8.1

  • Tested with WooCommerce 3.3
  • Bumped Tested up to tag

0.8

  • 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);

0.7.4

  • Removed the translation files from the plugin languages folder (the translations are now managed on WordPress.org’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

0.7.3

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

0.7.2

  • 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

0.7.1

  • 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)

0.7

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

0.6.2.1

  • Bumped Tested up to tag

0.6.2

  • Fix version number;

0.6.1

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

0.6

  • 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;

0.5

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

0.4

  • 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;

0.3

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

0.2

  • 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);

0.1

  • First (non-public) release;