Taxonomy/Term and Role-based Discounts for WooCommerce – PRO add-on, by Naked Cat Plugins, extends the free plugin with fixed-value discounts, percentage discounts on the first payment of a subscription only, sitewide discounts, a dedicated “Discount Tag” taxonomy, BOGO maximum-item caps, sale-badge percentage replacement, and discount information shown on the product loop and single pages. This page covers support, installation, licensing, and developer hooks. For pricing and installation, see the product page.
Table of Contents
Support
How to request technical support?
If the issue you need technical support with is not covered on this page, click the link next to the license key, on the plugin settings, and fill out the ticket with your request.
Where do I report security vulnerabilities found in this plugin?
You can report any security bugs found in the source code of this plugin through the Patchstack Vulnerability Disclosure Program.
The Patchstack team will assist you with verification, CVE assignment and take care of notifying us.
Installation
How do I install the PRO add-on?
Install and activate the free plugin first, then install and activate the PRO add-on, and insert your license key on the plugin settings. The PRO add-on can’t be activated without the free plugin (see “I uploaded the PRO add-on and got an error when activating it” below).
I uploaded the PRO add-on and got an error when activating it. What’s wrong?
The PRO add-on needs the free Taxonomy/Term and Role-based Discounts for WooCommerce plugin and WooCommerce, both installed and active. If one of them is missing, WordPress refuses to activate the PRO add-on and shows an error like “Taxonomy/Term and Role-based Discounts for WooCommerce – PRO add-on requires 1 plugin to be installed and activated”.
Nothing is broken, and nothing was changed on your website. To fix it:
- Go to Plugins > Add Plugin, search for “Taxonomy/Term and Role-based Discounts”, then install and activate it. You can also click the plugin’s name on the “Requires” line of the PRO add-on, on the Plugins screen.
- Go back to Plugins and activate the PRO add-on.
You only see this error if you install the PRO add-on by uploading its zip file. After the upload, WordPress offers an “Activate Plugin” button without first checking that the required plugins are there. On the Plugins screen, the PRO add-on’s “Activate” link stays disabled until they are.
Licensing
How to transfer the license to another domain?
You should ask for the domain change in your customer area, next to the original order details.
After you get the reply from us stating that the license key is free, you should go to the plugin settings on the new website and insert the key again.
If you cloned the website, the license key is in the database, and you need to remove it, or else this new domain will not be activated. Remove these records from the wp_options table on the new install:
tdwpro_license_keytdwpro_activation_key
Then you should be able to insert the key again and activate it on the new domain.
Discount types
How do I discount only the first payment of a subscription?
Use the Percentage (first subscription payment) discount type. It only shows in the rule type list when WooCommerce Subscriptions is active.
It works like a regular Percentage rule, but on a subscription product it only discounts the first payment: every renewal is charged at the regular price. On products that are not subscriptions, it behaves exactly like a regular percentage rule.
A regular Percentage rule changes the product price itself, so WooCommerce Subscriptions also uses the discounted price for every renewal. Use it on a subscription product only if the discount is meant to last for the whole life of the subscription.
Developer hooks
Activate the plugin price filters for custom loops
If you have custom product loops on your website, it’s quite possible that the discount from our plugin isn’t reflected in the product price. You need to activate our filters and then deactivate them again.
If you are showing the custom loop with custom code, you need to do as follows:
// Activate filter
add_filter( 'tdw_custom_product_loop', '__return_true' );
// Your custom loop code
// (...)
// Deactivate filter
add_filter( 'tdw_custom_product_loop', '__return_false' );
If you are showing the custom loop with page builders like Elementor, WPBakery, or others, you can use our shortcodes (that will not output anything, they’ll just run the same PHP code mentioned above):
// Activate filter
// Your custom loop shortcode on the page builder
// (...)
// Deactivate filter
