{"id":42808,"date":"2016-03-25T14:23:34","date_gmt":"2016-03-25T14:23:34","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/taxonomy-discounts-woocommerce\/"},"modified":"2026-04-06T15:43:44","modified_gmt":"2026-04-06T15:43:44","slug":"taxonomy-discounts-woocommerce","status":"publish","type":"plugin","link":"https:\/\/he.wordpress.org\/plugins\/taxonomy-discounts-woocommerce\/","author":23274606,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"8.3","stable_tag":"8.3","tested":"7.0","requires":"5.8","requires_php":"7.2","requires_plugins":null,"header_name":"Taxonomy\/Term and Role-based Discounts for WooCommerce","header_author":"Naked Cat Plugins (by Webdados)","header_description":"","assets_banners_color":"796378","last_updated":"2026-04-06 15:43:44","external_support_url":"https:\/\/nakedcatplugins.com\/product\/taxonomy-term-and-role-based-discounts-for-woocommerce-pro-add-on\/","external_repository_url":"","donate_link":"https:\/\/www.paypal.me\/Wonderm00n","header_plugin_uri":"","header_author_uri":"https:\/\/nakedcatplugins.com","rating":4.4,"author_block_rating":0,"active_installs":200,"downloads":20397,"num_ratings":8,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"0.3":{"tag":"0.3","author":"webdados","date":"2016-03-25 14:24:18"},"0.4":{"tag":"0.4","author":"webdados","date":"2016-04-12 22:51:08"},"0.5":{"tag":"0.5","author":"webdados","date":"2016-11-07 16:54:41"},"0.6":{"tag":"0.6","author":"webdados","date":"2016-11-21 19:11:35"},"0.6.2":{"tag":"0.6.2","author":"webdados","date":"2016-11-22 11:40:50"},"0.6.2.1":{"tag":"0.6.2.1","author":"webdados","date":"2016-12-09 16:58:41"},"0.7":{"tag":"0.7","author":"webdados","date":"2017-03-28 17:47:23"},"0.7.1":{"tag":"0.7.1","author":"webdados","date":"2017-03-30 15:03:34"},"0.7.2":{"tag":"0.7.2","author":"webdados","date":"2017-06-06 12:05:34"},"0.7.3":{"tag":"0.7.3","author":"webdados","date":"2017-06-19 16:57:56"},"0.7.4":{"tag":"0.7.4","author":"webdados","date":"2017-10-11 18:50:39"},"0.8":{"tag":"0.8","author":"webdados","date":"2017-11-09 15:35:09"},"0.8.1":{"tag":"0.8.1","author":"webdados","date":"2018-01-30 22:53:32"},"0.9":{"tag":"0.9","author":"webdados","date":"2018-02-03 00:07:26"},"0.9.5":{"tag":"0.9.5","author":"webdados","date":"2018-04-17 11:08:57"},"0.9.6":{"tag":"0.9.6","author":"webdados","date":"2018-04-18 09:43:26"},"0.9.7":{"tag":"0.9.7","author":"webdados","date":"2018-08-25 12:11:49"},"0.9.8":{"tag":"0.9.8","author":"webdados","date":"2018-10-04 13:50:02"},"1.0":{"tag":"1.0","author":"webdados","date":"2018-11-09 16:23:18"},"1.1":{"tag":"1.1","author":"webdados","date":"2018-11-19 16:52:59"},"1.2":{"tag":"1.2","author":"webdados","date":"2019-02-01 17:24:14"},"1.3":{"tag":"1.3","author":"webdados","date":"2019-02-20 09:12:37"},"1.4":{"tag":"1.4","author":"webdados","date":"2019-02-26 13:19:48"},"1.4.1":{"tag":"1.4.1","author":"webdados","date":"2019-02-27 08:11:19"},"1.4.2":{"tag":"1.4.2","author":"webdados","date":"2019-04-15 16:41:55"},"1.4.3":{"tag":"1.4.3","author":"webdados","date":"2019-05-24 10:56:15"},"1.4.4":{"tag":"1.4.4","author":"webdados","date":"2019-11-06 13:43:53"},"1.4.5":{"tag":"1.4.5","author":"webdados","date":"2019-11-07 12:57:37"},"1.4.6":{"tag":"1.4.6","author":"webdados","date":"2019-11-12 15:07:41"},"1.4.7":{"tag":"1.4.7","author":"webdados","date":"2019-11-29 10:51:07"},"1.4.8":{"tag":"1.4.8","author":"webdados","date":"2019-11-29 14:18:12"},"1.5.0":{"tag":"1.5.0","author":"webdados","date":"2020-01-14 17:33:18"},"1.5.1":{"tag":"1.5.1","author":"webdados","date":"2020-07-28 08:56:10"},"1.5.2":{"tag":"1.5.2","author":"webdados","date":"2021-03-10 10:00:23"},"2.0.0":{"tag":"2.0.0","author":"webdados","date":"2021-05-10 15:49:42"},"2.1.0":{"tag":"2.1.0","author":"webdados","date":"2022-06-29 16:08:02"},"3.0":{"tag":"3.0","author":"webdados","date":"2022-09-18 13:18:05"},"3.1":{"tag":"3.1","author":"webdados","date":"2022-09-19 10:55:46"},"3.1.1":{"tag":"3.1.1","author":"webdados","date":"2022-09-19 12:14:02"},"3.2.0":{"tag":"3.2.0","author":"webdados","date":"2022-10-07 12:10:22"},"3.3.0":{"tag":"3.3.0","author":"webdados","date":"2022-10-17 12:41:44"},"3.4":{"tag":"3.4","author":"webdados","date":"2022-11-10 19:06:00"},"3.5":{"tag":"3.5","author":"webdados","date":"2022-11-22 15:58:48"},"3.6":{"tag":"3.6","author":"webdados","date":"2023-04-17 17:56:21"},"3.7":{"tag":"3.7","author":"webdados","date":"2023-05-29 14:08:29"},"3.8":{"tag":"3.8","author":"webdados","date":"2023-07-11 14:35:18"},"3.8.1":{"tag":"3.8.1","author":"webdados","date":"2023-07-11 14:44:24"},"4.0":{"tag":"4.0","author":"webdados","date":"2023-09-05 12:15:53"},"4.1":{"tag":"4.1","author":"webdados","date":"2023-09-06 11:01:24"},"4.2":{"tag":"4.2","author":"webdados","date":"2023-09-07 15:12:33"},"4.4":{"tag":"4.4","author":"webdados","date":"2023-12-12 14:24:49"},"4.5":{"tag":"4.5","author":"webdados","date":"2024-04-04 17:37:17"},"4.6":{"tag":"4.6","author":"webdados","date":"2024-04-23 14:31:00"},"5.0":{"tag":"5.0","author":"webdados","date":"2024-08-28 12:25:53"},"5.1":{"tag":"5.1","author":"webdados","date":"2024-10-30 11:46:40"},"5.2":{"tag":"5.2","author":"webdados","date":"2024-12-09 18:45:35"},"5.3":{"tag":"5.3","author":"webdados","date":"2025-03-11 16:33:31"},"5.4":{"tag":"5.4","author":"webdados","date":"2025-03-12 17:39:33"},"5.5":{"tag":"5.5","author":"webdados","date":"2025-03-14 15:12:57"},"5.6":{"tag":"5.6","author":"nakedcatplugins","date":"2025-05-01 13:56:42"},"6.0":{"tag":"6.0","author":"nakedcatplugins","date":"2025-11-27 18:01:00"},"6.1":{"tag":"6.1","author":"nakedcatplugins","date":"2025-11-27 18:43:48"},"6.2":{"tag":"6.2","author":"nakedcatplugins","date":"2025-12-18 16:01:29"},"7.0":{"tag":"7.0","author":"nakedcatplugins","date":"2026-01-01 11:23:16"},"7.1":{"tag":"7.1","author":"nakedcatplugins","date":"2026-01-01 11:28:11"},"7.2":{"tag":"7.2","author":"nakedcatplugins","date":"2026-03-16 18:15:05"},"8.0":{"tag":"8.0","author":"nakedcatplugins","date":"2026-03-22 18:15:04"},"8.1":{"tag":"8.1","author":"nakedcatplugins","date":"2026-03-24 12:00:23"},"8.2":{"tag":"8.2","author":"nakedcatplugins","date":"2026-04-03 09:10:23"},"8.3":{"tag":"8.3","author":"nakedcatplugins","date":"2026-04-06 15:43:44"}},"upgrade_notice":[],"ratings":{"1":"1","2":0,"3":0,"4":"1","5":"6"},"assets_icons":{"icon.svg":{"filename":"icon.svg","revision":3423071,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":3423071,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":3423071,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.3","0.4","0.5","0.6","0.6.2","0.6.2.1","0.7","0.7.1","0.7.2","0.7.3","0.7.4","0.8","0.8.1","0.9","0.9.5","0.9.6","0.9.7","0.9.8","1.0","1.1","1.2","1.3","1.4","1.4.1","1.4.2","1.4.3","1.4.4","1.4.5","1.4.6","1.4.7","1.4.8","1.5.0","1.5.1","1.5.2","2.0.0","2.1.0","3.0","3.1","3.1.1","3.2.0","3.3.0","3.4","3.5","3.6","3.7","3.8","3.8.1","4.0","4.1","4.2","4.4","4.5","4.6","5.0","5.1","5.2","5.3","5.4","5.5","5.6","6.0","6.1","6.2","7.0","7.1","7.2","8.0","8.1","8.2","8.3"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3423071,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3423071,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3423071,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3423071,"resolution":"4","location":"assets","locale":""},"screenshot-5.png":{"filename":"screenshot-5.png","revision":3423071,"resolution":"5","location":"assets","locale":""}},"screenshots":{"1":"Apply discounts based on any product taxonomy","2":"Add a discount rule: select taxonomy term, user role, minimum quantity, date range, and discount type (percentage or BOGO)","3":"PRO add-on settings","4":"Show discount information, including dates on the product loop (available with the PRO add-on)","5":"Show discount information, including dates on the product page (available with the PRO add-on)"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[65683,60229,331,139401,144598],"plugin_category":[45,48,55],"plugin_contributors":[240703,78419],"plugin_business_model":[216238],"class_list":["post-42808","plugin","type-plugin","status-publish","hentry","plugin_tags-bulk-discount","plugin_tags-category-discount","plugin_tags-discount","plugin_tags-role-based-pricing","plugin_tags-woocommerce-discount","plugin_category-ecommerce","plugin_category-language-tools","plugin_category-seo-and-marketing","plugin_contributors-nakedcatplugins","plugin_contributors-webdados","plugin_business_model-commercial","plugin_committers-nakedcatplugins","plugin_committers-webdados","plugin_support_reps-nakedcatplugins","plugin_support_reps-ptwooplugins","plugin_support_reps-webdados"],"banners":{"banner":"https:\/\/ps.w.org\/taxonomy-discounts-woocommerce\/assets\/banner-772x250.jpg?rev=3423071","banner_2x":"https:\/\/ps.w.org\/taxonomy-discounts-woocommerce\/assets\/banner-1544x500.jpg?rev=3423071","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/taxonomy-discounts-woocommerce\/assets\/icon.svg?rev=3423071","icon":"https:\/\/ps.w.org\/taxonomy-discounts-woocommerce\/assets\/icon.svg?rev=3423071","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/taxonomy-discounts-woocommerce\/assets\/screenshot-1.png?rev=3423071","caption":"Apply discounts based on any product taxonomy"},{"src":"https:\/\/ps.w.org\/taxonomy-discounts-woocommerce\/assets\/screenshot-2.png?rev=3423071","caption":"Add a discount rule: select taxonomy term, user role, minimum quantity, date range, and discount type (percentage or BOGO)"},{"src":"https:\/\/ps.w.org\/taxonomy-discounts-woocommerce\/assets\/screenshot-3.png?rev=3423071","caption":"PRO add-on settings"},{"src":"https:\/\/ps.w.org\/taxonomy-discounts-woocommerce\/assets\/screenshot-4.png?rev=3423071","caption":"Show discount information, including dates on the product loop (available with the PRO add-on)"},{"src":"https:\/\/ps.w.org\/taxonomy-discounts-woocommerce\/assets\/screenshot-5.png?rev=3423071","caption":"Show discount information, including dates on the product page (available with the PRO add-on)"}],"raw_content":"<!--section=description-->\n<p>Create automatic WooCommerce price discounts based on product category, tag, attribute, brand, or any custom taxonomy, and apply them to all users, logged-in users, or only to specific WordPress user roles.<\/p>\n\n<p>Each discount rule can have a start and end date.<\/p>\n\n<ul>\n<li>Create WooCommerce discounts based on the product category, tag, brand, type, or shipping class;<\/li>\n<li>Create WooCommerce discounts based on any product attribute;<\/li>\n<li>Create WooCommerce discounts based on any custom taxonomy, created by you or any 3rd party plugin;<\/li>\n<li>Create WooCommerce discounts based on the user role;<\/li>\n<li>Schedule the special pricing by setting a date range on the discount rule;<\/li>\n<li>WPML compatible (ability to set discounts on different language terms, not compatible with multi-currency);<\/li>\n<li>WooCommerce Subscriptions experimental support;<\/li>\n<\/ul>\n\n<h4>Discount types<\/h4>\n\n<ul>\n<li>Percentage: apply an absolute percentage discount to all the products on a specific taxonomy term;<\/li>\n<li>Buy x get y free (BOGO): offer free items when a minimum quantity is purchased;<\/li>\n<li><a href=\"https:\/\/nakedcatplugins.com\/product\/taxonomy-term-and-role-based-discounts-for-woocommerce-pro-add-on\/?utm_source=wordpress.org&amp;utm_medium=link&amp;utm_campaign=taxonomydiscounts_woocommerce_plugin\">PRO add-on<\/a> Fixed value: apply an absolute value discount to all the products on a specific taxonomy term;<\/li>\n<\/ul>\n\n<h4>Get more with the PRO add-on<\/h4>\n\n<ul>\n<li>\u201cDiscount Tag\u201d custom taxonomy if you don\u2019t want to use Categories, Tags, or any other existing product taxonomy;<\/li>\n<li>Sitewide discounts: any discount type applied to all the store products, instead of just one taxonomy term<\/li>\n<li>Set the maximum amount of free items when using BOGO discounts;<\/li>\n<li>Replace the sale badge with a discount percentage;<\/li>\n<li>Replace the sale badge with a discount percentage, even if a taxonomy does not set the discount, but rather by setting a sale price on the product (in beta);<\/li>\n<li>Show discount information (percentage and dates) on the product loop;<\/li>\n<li>Show discount information (percentage and dates) on the product single page (mandatory on some legislations, like the Portuguese one, for example);<\/li>\n<li>Show discount information for non-taxonomy discounts (set by product sale price), including start and end date, thus allowing compliance with legislation, such as Portuguese law, which requires these details to be displayed next to the sale price;<\/li>\n<li>\u201cStop - no discount\u201d rule that makes sure products from specific taxonomy terms never have a discount applied, even if there are other rules that will apply for other product taxonomy terms;<\/li>\n<li>Exclude products already on sale from the discount rule: always, or if taxonomy discount is lower, or if taxonomy discount is higher;<\/li>\n<li>Set base price for on-sale products: sale price (discount on top of discount) or original regular price (new option);<\/li>\n<li>Disable shipping methods based on cart items applied rules;<\/li>\n<li>Set discount rules for non-logged-in users;<\/li>\n<li><a href=\"https:\/\/automattic.pxf.io\/EEJQd4\">Google Product Feed for WooCommerce<\/a> integration<\/li>\n<li>Developer mode - <a href=\"https:\/\/nakedcatplugins.com\/product\/taxonomy-term-and-role-based-discounts-for-woocommerce-pro-add-on\/?utm_source=wordpress.org&amp;utm_medium=link&amp;utm_campaign=taxonomydiscounts_woocommerce_plugin\">more info<\/a>;<\/li>\n<li>Technical support;<\/li>\n<li>And more to come...<\/li>\n<li><a href=\"https:\/\/nakedcatplugins.com\/product\/taxonomy-term-and-role-based-discounts-for-woocommerce-pro-add-on\/?utm_source=wordpress.org&amp;utm_medium=link&amp;utm_campaign=taxonomydiscounts_woocommerce_plugin\">Get it now<\/a><\/li>\n<\/ul>\n\n<h4>Notes<\/h4>\n\n<ul>\n<li>The discounts are applied on a \u201cper cart line\u201d basis (not to the sum of the products of the same taxonomy) - this means that if you set a discount with a minimum quantity, it will only be applied if the customer buys that quantity of the same product;<\/li>\n<li>Only one rule is applied per cart line, so setting the priorities correctly is very important;<\/li>\n<li>When aggregating product variations, the quantity will be the sum of the quantities of all the variations of the same product in the cart, and the discount will be applied to all of them;<\/li>\n<li>For WPML users, if you want the same discounts to apply to all the languages, you must replicate the rules for each of the translations of the terms<\/li>\n<li>You can use the <code>tdw_rule_add<\/code>, <code>tdw_rule_edit<\/code>, and <code>tdw_rule_delete<\/code> actions when adding, editing, and deleting rules, to do whatever you want, like, for example, clearing cache (<a href=\"https:\/\/gist.github.com\/webdados\/98282475fbee2be347eba45ad81cbba5\">check out to use them here<\/a> and send us cool examples of what you\u2019ve done)<\/li>\n<\/ul>\n\n<h4>Other (premium) plugins<\/h4>\n\n<p>Already know our other WooCommerce (premium) plugins?<\/p>\n\n<ul>\n<li><a href=\"https:\/\/nakedcatplugins.com\/product\/advanced-coupon-restrictions-for-woocommerce\/\">Advanced Coupon Restrictions for WooCommerce<\/a> - Create coupons for any Product Taxonomy, User details, and Order destination.<\/li>\n<li><a href=\"https:\/\/nakedcatplugins.com\/product\/simple-custom-fields-for-woocommerce-blocks-checkout\/\">Simple Checkout Fields Manager for WooCommerce<\/a> - Add custom fields and manage (remove, make required or optional) core fields on the new WooCommerce Block-based Checkout<\/li>\n<li><a href=\"https:\/\/nakedcatplugins.com\/product\/simple-woocommerce-order-approval\/\">Simple WooCommerce Order Approval<\/a> - The hassle-free solution for WooCommerce order approval before payment<\/li>\n<li><a href=\"https:\/\/nakedcatplugins.com\/product\/shop-as-client-for-woocommerce-pro-add-on\/\">Shop as Client for WooCommerce<\/a> - Quickly create orders on behalf of your customers<\/li>\n<li><a href=\"https:\/\/nakedcatplugins.com\/product\/dpd-seur-geopost-pickup-and-lockers-network-for-woocommerce\/\">DPD \/ SEUR \/ Geopost Pickup and Lockers network for WooCommerce<\/a> - Deliver your WooCommerce orders on the DPD and SEUR Pickup network of Parcelshops and Lockers in 21 European countries<\/li>\n<\/ul>\n\n<p>Banner by <a href=\"https:\/\/unsplash.com\/@arnosenoner?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText\">Arno Senoner<\/a><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Use the included automatic install feature on your WordPress admin panel and search for \u201ctaxonomy\/term role discounts\u201d.<\/li>\n<li>Activate the plugin through the <code>Plugins<\/code> menu in WordPress<\/li>\n<li>Go to <code>Products<\/code>, <code>Taxonomy Discounts<\/code> to set it up<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20this%20plugin%20apply%20discounts%20automatically%20without%20coupons%3F\"><h3>Does this plugin apply discounts automatically without coupons?<\/h3><\/dt>\n<dd><p>Yes. Discounts are applied automatically at cart\/checkout based on the product\u2019s taxonomy terms and the customer\u2019s user role \u2014 no coupon code is required.<\/p><\/dd>\n<dt id=\"can%20i%20set%20bulk%20discounts%20or%20quantity-based%20pricing%20in%20woocommerce%3F\"><h3>Can I set bulk discounts or quantity-based pricing in WooCommerce?<\/h3><\/dt>\n<dd><p>Yes. You can set a minimum quantity per rule, enabling bulk or tiered pricing for product categories, tags, or any other taxonomy.\nKeep in mind the quantity is per individual product in the cart, not all products from the same taxonomy.<\/p><\/dd>\n<dt id=\"can%20i%20set%20different%20prices%20for%20wholesale%20customers%3F\"><h3>Can I set different prices for wholesale customers?<\/h3><\/dt>\n<dd><p>Yes. By combining taxonomy rules with WordPress user roles (e.g., a \u201cWholesale\u201d role), you can create role-based or wholesale pricing rules.<\/p><\/dd>\n<dt id=\"why%20is%20my%20product%20not%20showing%20the%20%E2%80%9Csale%E2%80%9D%20badge%3F\"><h3>Why is my product not showing the \u201cSale\u201d badge?<\/h3><\/dt>\n<dd><p>We can only show the \u201csale\u201d badge when we are sure the product will get a discount, no matter how many you buy. The badge is shown only for percentage-based rules with no minimum quantity required.<\/p><\/dd>\n<dt id=\"how%20can%20i%20replace%20the%20sale%20badge%20with%20the%20discount%20percentage%3F\"><h3>How can I replace the sale badge with the discount percentage?<\/h3><\/dt>\n<dd><p>This only works for percentage discounts with a minimum quantity of 0 or 1, and you need to add this to your (child-)theme functions.php file:<\/p>\n\n<pre><code>add_filter( 'tdw_perc_sale_badge', '__return_true' );\n<\/code><\/pre>\n\n<p>Or you can use the <a href=\"https:\/\/nakedcatplugins.com\/product\/taxonomy-term-and-role-based-discounts-for-woocommerce-pro-add-on\/?utm_source=wordpress.org&amp;utm_medium=link&amp;utm_campaign=taxonomydiscounts_woocommerce_plugin\">PRO add-on<\/a><\/p><\/dd>\n<dt id=\"how%20can%20i%20display%20discount%20information%20in%20the%20product%20loop%20and%20on%20the%20page%3F\"><h3>How can I display discount information in the product loop and on the page?<\/h3><\/dt>\n<dd><p>You need to use the following filters:<\/p>\n\n<ul>\n<li><code>tdw_loop_disc_info_action<\/code> and <code>tdw_loop_disc_info_prio<\/code>: to set the hook and priority for the loop page and return, for example, <code>woocommerce_after_shop_loop_item_title<\/code> and <code>1<\/code><\/li>\n<li><code>tdw_single_disc_info_action<\/code> and <code>tdw_single_disc_info_prio<\/code>: to set the hook and priority for the product page and return, for example, <code>woocommerce_single_product_summary<\/code> and <code>6<\/code>\n(This is for Storefront. You may have to tweak the action and priority to match your theme better.)<\/li>\n<\/ul>\n\n<p>Or you can use the <a href=\"https:\/\/nakedcatplugins.com\/product\/taxonomy-term-and-role-based-discounts-for-woocommerce-pro-add-on\/?utm_source=wordpress.org&amp;utm_medium=link&amp;utm_campaign=taxonomydiscounts_woocommerce_plugin\">PRO add-on<\/a><\/p><\/dd>\n<dt id=\"how%20can%20i%20get%20the%20current%20product%20or%20variation%20price%2C%20with%20the%20discount%20applied%2C%20outside%20the%20loop%3F\"><h3>How can I get the current product or variation price, with the discount applied, outside the loop?<\/h3><\/dt>\n<dd><p>You can use the <code>wctd_get_product_current_price<\/code> helper function with the product or variation object or ID as the first argument.<\/p>\n\n<p>You can also pass the quantity as the second argument to calculate percentage discounts with a minimum quantity greater than 1, or \u201cbuy x get y free\u201d discounts. The returned price will be the unit price.<\/p>\n\n<p>This is still beta.<\/p><\/dd>\n<dt id=\"will%20this%20work%20on%20multi-currency%20shops%3F\"><h3>Will this work on multi-currency shops?<\/h3><\/dt>\n<dd><p>No. The way we store cart item prices is not currently compatible with stores that allow customers to change currency during the shopping session.<\/p><\/dd>\n<dt id=\"is%20this%20plugin%20compatible%20with%20the%20new%20woocommerce%20high-performance%20order%20storage%3F\"><h3>Is this plugin compatible with the new WooCommerce High-Performance Order Storage?<\/h3><\/dt>\n<dd><p>Yes.<\/p><\/dd>\n<dt id=\"is%20this%20plugin%20compatible%20with%20the%20new%20woocommerce%20block-based%20cart%20and%20checkout%3F\"><h3>Is this plugin compatible with the new WooCommerce block-based Cart and Checkout?<\/h3><\/dt>\n<dd><p>Yes.<\/p><\/dd>\n<dt id=\"i%20need%20help%2C%20can%20i%20get%20technical%20support%3F\"><h3>I need help, can I get technical support?<\/h3><\/dt>\n<dd><p>This is a free plugin. It\u2019s our way of giving back to the wonderful WordPress community.<\/p>\n\n<p>Only customers of the <a href=\"https:\/\/nakedcatplugins.com\/product\/taxonomy-term-and-role-based-discounts-for-woocommerce-pro-add-on\/?utm_source=wordpress.org&amp;utm_medium=link&amp;utm_campaign=taxonomydiscounts_woocommerce_plugin\">PRO add-on<\/a> get included limited technical support.<\/p>\n\n<p>There\u2019s a support tab at the top of this page, where you can ask the community for help. We\u2019ll try to keep an eye on the forums, but we cannot promise to answer support tickets.<\/p>\n\n<p>If you reach us by email or any other direct contact method, we\u2019ll assume you need premium, paid-for support.<\/p><\/dd>\n<dt id=\"can%20i%20contribute%20to%20this%20plugin%3F\"><h3>Can I contribute to this plugin?<\/h3><\/dt>\n<dd><p>Yes, on the <a href=\"https:\/\/github.com\/Naked-Cat-Plugins\/Taxonomy-Term-and-Role-based-Discounts-for-WooCommerce\">GitHub repository<\/a>.<\/p><\/dd>\n<dt id=\"can%20i%20contribute%20with%20a%20translation%3F\"><h3>Can I contribute with a translation?<\/h3><\/dt>\n<dd><p>Sure. Go to <a href=\"https:\/\/translate.wordpress.org\/projects\/wp-plugins\/taxonomy-discounts-woocommerce\">GlotPress<\/a> and help us out.<\/p><\/dd>\n<dt id=\"where%20do%20i%20report%20security%20vulnerabilities%20found%20in%20this%20plugin%3F\"><h3>Where do I report security vulnerabilities found in this plugin?<\/h3><\/dt>\n<dd><p>You can report any security bugs found in the source code of this plugin through the <a href=\"https:\/\/patchstack.com\/database\/vdp\/taxonomy-discounts-woocommerce\">Patchstack Vulnerability Disclosure Program<\/a>. The Patchstack team will assist you with verification, CVE assignment and take care of notifying the developers of this plugin.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>8.3 - 2026-04-06<\/h4>\n\n<ul>\n<li>[NEW] Allow decimal values on the percentage discount, for example 10.25% discount<\/li>\n<li>[NEW] Free plugin ownership transferred from <a href=\"https:\/\/profiles.wordpress.org\/webdados\/\">Marco Almeida | Webdados<\/a> to <a href=\"https:\/\/profiles.wordpress.org\/nakedcatplugins\/\">Naked Cat Plugins<\/a> on WordPress.org - No worries, we\u2019re the same people :-)<\/li>\n<li>[DEV] New <code>tdw_discount_information_display<\/code> and <code>tdw_perc_sale_badge_replace<\/code> filters to allow preventing showing discount information and replacing sales badge with percentage<\/li>\n<li>[DEV] New <code>tdw_product_is_on_sale<\/code> filter to allow overriding the \u201con sale\u201d status set by this plugin<\/li>\n<\/ul>\n\n<h4>8.2 - 2026-04-03<\/h4>\n\n<ul>\n<li>[TWEAK] Improve readme.txt<\/li>\n<li>[DEV] Tested up to WordPress 7.0-RC2-62197 and WooCommerce 10.7.0-beta.1<\/li>\n<\/ul>\n\n<h4>8.1 - 2026-03-24<\/h4>\n\n<ul>\n<li>[NEW] <a href=\"https:\/\/nakedcatplugins.com\/product\/taxonomy-term-and-role-based-discounts-for-woocommerce-pro-add-on\/?utm_source=wordpress.org&amp;utm_medium=link&amp;utm_campaign=taxonomydiscounts_woocommerce_plugin\">PRO add-on<\/a> 6.2: Add discount to multiple terms at the same time<\/li>\n<li>[TWEAK] Show discount type description helper when adding a discount<\/li>\n<li>[FIX] Sitewide discounts from the <a href=\"https:\/\/nakedcatplugins.com\/product\/taxonomy-term-and-role-based-discounts-for-woocommerce-pro-add-on\/?utm_source=wordpress.org&amp;utm_medium=link&amp;utm_campaign=taxonomydiscounts_woocommerce_plugin\">PRO add-on<\/a> were not correctly applied to the cart<\/li>\n<li>[FIX] Show percentage on the product sale badge block<\/li>\n<li>[FIX] Reset the add new rule form after each interaction<\/li>\n<li>[DEV] New <code>tdw_form_add_data_before_save<\/code> and <code>tdw_form_edit_data_before_save<\/code> filters to allow the PRO Add-on or 3rd Party developers to manipulate the rule data before it is saved to term meta<\/li>\n<\/ul>\n\n<h4>8.0 - 2026-03-22<\/h4>\n\n<ul>\n<li>[NEW] <a href=\"https:\/\/nakedcatplugins.com\/product\/taxonomy-term-and-role-based-discounts-for-woocommerce-pro-add-on\/?utm_source=wordpress.org&amp;utm_medium=link&amp;utm_campaign=taxonomydiscounts_woocommerce_plugin\">PRO add-on<\/a> 6.0: New discount type: Fixed value<\/li>\n<li>[NEW] <a href=\"https:\/\/nakedcatplugins.com\/product\/taxonomy-term-and-role-based-discounts-for-woocommerce-pro-add-on\/?utm_source=wordpress.org&amp;utm_medium=link&amp;utm_campaign=taxonomydiscounts_woocommerce_plugin\">PRO add-on<\/a> 6.0: Log and show the last user that edited a rule<\/li>\n<li>[TWEAK] Show helper for the \u201cAggregate variations\u201d field<\/li>\n<li>[TWEAK] Link to each term public archive in the rules table<\/li>\n<li>[FIX] Subtotal on classic cart was not correct in some scenarios<\/li>\n<li>[FIX] Discount would not show up for products already in cart in some scenarios<\/li>\n<li>[FIX] Several fixes regarding variations<\/li>\n<li>[DEV] Add \u201cSettings and discount configuration\u201d link to the actions on the plugins page<\/li>\n<li>[DEV] Code cleanup and Improve WordPress Coding Standards<\/li>\n<li>[DEV] Remove closing slash from void elements<\/li>\n<li>[DEV] Tested up to WordPress 7.0-beta6-62086 and WooCommerce 10.6.1<\/li>\n<\/ul>\n\n<h4>7.2 - 2026-03-16<\/h4>\n\n<ul>\n<li>[NEW] <a href=\"https:\/\/nakedcatplugins.com\/product\/taxonomy-term-and-role-based-discounts-for-woocommerce-pro-add-on\/?utm_source=wordpress.org&amp;utm_medium=link&amp;utm_campaign=taxonomydiscounts_woocommerce_plugin\">PRO add-on<\/a> 5.1: Improve GitHub Actions and Updater<\/li>\n<li>[DEV] Tested up to WordPress 7.0-beta3-61865 and WooCommerce 10.6.0-beta.2<\/li>\n<\/ul>\n\n<h4>7.1 - 2026-01-01<\/h4>\n\n<ul>\n<li>[NEW] <a href=\"https:\/\/nakedcatplugins.com\/product\/taxonomy-term-and-role-based-discounts-for-woocommerce-pro-add-on\/?utm_source=wordpress.org&amp;utm_medium=link&amp;utm_campaign=taxonomydiscounts_woocommerce_plugin\">PRO add-on<\/a> 5.0: Show discount information for non-taxonomy discounts (set by product sale price), including start and end date, allowing compliance with legislation, such as the Portuguese law, which requires these details to be displayed next to the sale price - <a href=\"https:\/\/github.com\/woocommerce\/woocommerce\/issues\/62130#issuecomment-3657559585\">Start date will be available on WooCommerce 10.5.0<\/a><\/li>\n<li>[NEW] Improve compatibility with <a href=\"https:\/\/nakedcatplugins.com\/product\/shop-as-client-for-woocommerce-pro-add-on\/\">Shop as Client for WooCommerce<\/a> for WooCommerce: allow changing the cart item price even if a taxonomy discount is applied to it<\/li>\n<li>[DEV] Allow PRO add-on to filter discount information even when empty, thus allowing showing discount information for non-taxonomy discounts<\/li>\n<li>[DEV] Remove <code>load_plugin_textdomain<\/code> call as it\u2019s no longer needed<\/li>\n<li>[DEV] Allow PRO add-on to integrate with <a href=\"https:\/\/automattic.pxf.io\/EEJQd4\">Google Product Feed for WooCommerce<\/a><\/li>\n<li>[DEV] Fix plugin version tag<\/li>\n<li>[DEV]\u00a0Tested up to WordPress 7.0-alpha-61379 and WooCommerce 10.4.2<\/li>\n<\/ul>\n\n<h4>6.2 - 2025-11-28<\/h4>\n\n<ul>\n<li>[FIX] <a href=\"https:\/\/nakedcatplugins.com\/product\/taxonomy-term-and-role-based-discounts-for-woocommerce-pro-add-on\/?utm_source=wordpress.org&amp;utm_medium=link&amp;utm_campaign=taxonomydiscounts_woocommerce_plugin\">PRO add-on<\/a> 4.0: Delete sitewide discounts was not working<\/li>\n<li>[FIX] Term dropdown not showing, when adding a new taxonomy discount, after adding a sitewide discount and not reloading the page<\/li>\n<\/ul>\n\n<h4>6.1 - 2025-11-27<\/h4>\n\n<ul>\n<li>[NEW] <a href=\"https:\/\/nakedcatplugins.com\/product\/taxonomy-term-and-role-based-discounts-for-woocommerce-pro-add-on\/?utm_source=wordpress.org&amp;utm_medium=link&amp;utm_campaign=taxonomydiscounts_woocommerce_plugin\">PRO add-on<\/a> 4.0: Sitewide discounts (applied to all the store products)<\/li>\n<li>[FIX] Hook into <code>woocommerce_get_variation_sale_price<\/code> to return the discounted price<\/li>\n<li>[FIX] PHP notice introduced in 6.0<\/li>\n<li>[DEV] Improve WordPress Coding Standards<\/li>\n<li>[DEV] Tested up to WordPress 6.9-RC2-61293 and WooCommerce 10.4.0-beta.1<\/li>\n<\/ul>\n\n<h4>5.6 - 2025-05-01<\/h4>\n\n<ul>\n<li>[NEW] We are now called Naked Cat Plugins \ud83d\ude3b<\/li>\n<li>[FIX] Comparison between float and integer values was incorrect, causing several problems, including erroneous discount information on percentage discounts<\/li>\n<li>[FIX] Deprecated: Creation of dynamic property in PHP 8.3<\/li>\n<li>[DEV] Requires PHP 7.2, WordPress 5.8, and WooCommerce 7.1<\/li>\n<li>[DEV] Tested up to WordPress 6.8 and WooCommerce 9.8.3<\/li>\n<\/ul>\n\n<h4>5.5 - 2025-03-12<\/h4>\n\n<ul>\n<li>[FIX] Replace <code>printf<\/code> with <code>sprintf<\/code> in several strings to fix incorrect output<\/li>\n<li>[FIX] Rules applied to user roles not showing on the rules table after editing rule on the backend<\/li>\n<li>[DEV] Continue applying WordPress Coding Standards<\/li>\n<\/ul>\n\n<h4>5.4 - 2025-03-12<\/h4>\n\n<ul>\n<li>[FIX] Quantities and percentages not showing correctly on the backend<\/li>\n<li>[FIX] Loading jQuery UI<\/li>\n<li>[DEV] Continue applying WordPress Coding Standards<\/li>\n<\/ul>\n\n<h4>5.3 - 2025-03-11<\/h4>\n\n<ul>\n<li>[FIX] Fix incorrect URLs<\/li>\n<li>[DEV] Tested up to WordPress 6.8-alpha-59497 and WooCommerce 9.5.0-rc.1<\/li>\n<\/ul>\n\n<h4>5.2 - 2024-12-09<\/h4>\n\n<ul>\n<li>[DEV] Start applying WordPress Coding Standards<\/li>\n<li>[FIX] Wrong price on integration with <a href=\"https:\/\/wordpress.org\/plugins\/feed-kuantokusta-for-woocommerce\/\">Feed KuantoKusta for WooCommerce<\/a><\/li>\n<li>[FIX] Small vulnerability only exploitable by logged-in admins and shop managers<\/li>\n<li>[DEV] Tested up to WordPress 6.8-alpha-59497 and WooCommerce 9.5.0-rc.1<\/li>\n<\/ul>\n\n<h4>5.1 - 2024-10-30<\/h4>\n\n<ul>\n<li>[DEV] <a href=\"https:\/\/nakedcatplugins.com\/product\/taxonomy-term-and-role-based-discounts-for-woocommerce-pro-add-on\/?utm_source=wordpress.org&amp;utm_medium=link&amp;utm_campaign=taxonomydiscounts_woocommerce_plugin\">PRO add-on<\/a> 3.1: License validation on websites with WPML set to have different domains per language<\/li>\n<li>[FIX] Load text domain at the right time to avoid PHP notices on WordPress 6.7 and above<\/li>\n<li>[DEV] Tested up to WordPress 6.7-RC2-59324 and WooCommerce 9.4.0-rc.2<\/li>\n<\/ul>\n\n<h4>5.0 - 2024-08-28<\/h4>\n\n<ul>\n<li>[NEW] <a href=\"https:\/\/nakedcatplugins.com\/product\/taxonomy-term-and-role-based-discounts-for-woocommerce-pro-add-on\/?utm_source=wordpress.org&amp;utm_medium=link&amp;utm_campaign=taxonomydiscounts_woocommerce_plugin\">PRO add-on<\/a> 3.0: Two new options to exclude products on sale from the discount rule only if the taxonomy discount is lower or higher than the original discount<\/li>\n<li>[NEW] <a href=\"https:\/\/nakedcatplugins.com\/product\/taxonomy-term-and-role-based-discounts-for-woocommerce-pro-add-on\/?utm_source=wordpress.org&amp;utm_medium=link&amp;utm_campaign=taxonomydiscounts_woocommerce_plugin\">PRO add-on<\/a> 3.0: If the product is already on sale, and the rule hasn\u2019t been excluded, option to choose if the taxonomy discount should be applied on top of the already discounted price or the original product regular price<\/li>\n<li>[NEW] Add WooCommerce admin scripts to our settings page so we can implement tooltips on more complex options<\/li>\n<li>[FIX] Loop in some situations when showing the \u201con-sale\u201d information, which caused a fatal error<\/li>\n<li>[TWEAK] Abstract variable product detection with <code>$product-&gt;has_child()<\/code> instead of <code>$product-&gt;is_type(\u2018variable\u2019)<\/code> so that all kinds of variable products declared from other plugins are compatible<\/li>\n<li>[TWEAK] Remove filter in the cart subtotal columns as the values were not accurate. Can be reactivated by passing true to <code>tdw_cart_item_subtotal_information<\/code><\/li>\n<li>[DEV] Tested up to WordPress 6.7-alpha-58943 and WooCommerce 9.3.0-beta.1<\/li>\n<\/ul>\n\n<h4>4.6 - 2024-04-23<\/h4>\n\n<ul>\n<li>[FIX] Discount was showing doubled on the archive and single product pages<\/li>\n<li>[DEV] Tested up to WordPress 6.6-alpha-58011 and WooCommerce 8.9.0-dev<\/li>\n<\/ul>\n\n<h4>4.5 - 2024-04-04<\/h4>\n\n<ul>\n<li>[NEW] Show subtotal price with discount on the classic cart<\/li>\n<li>[NEW] <a href=\"https:\/\/nakedcatplugins.com\/product\/taxonomy-term-and-role-based-discounts-for-woocommerce-pro-add-on\/?utm_source=wordpress.org&amp;utm_medium=link&amp;utm_campaign=taxonomydiscounts_woocommerce_plugin\">PRO add-on<\/a> 2.3: Improve plugin updater \u2013 Show translation update notices<\/li>\n<li>[FIX] Deprecated: Creation of dynamic property in PHP 8.3<\/li>\n<li>[FIX] <a href=\"https:\/\/nakedcatplugins.com\/product\/taxonomy-term-and-role-based-discounts-for-woocommerce-pro-add-on\/?utm_source=wordpress.org&amp;utm_medium=link&amp;utm_campaign=taxonomydiscounts_woocommerce_plugin\">PRO add-on<\/a> 2.3: Update cache button click on the backend<\/li>\n<li>[TWEAK] <a href=\"https:\/\/nakedcatplugins.com\/product\/taxonomy-term-and-role-based-discounts-for-woocommerce-pro-add-on\/?utm_source=wordpress.org&amp;utm_medium=link&amp;utm_campaign=taxonomydiscounts_woocommerce_plugin\">PRO add-on<\/a> 2.3: Only show license key setting to administrators<\/li>\n<li>[DEV] Add \u201cRequires Plugins\u201d header<\/li>\n<li>[DEV] Tested up to WordPress 6.6-alpha-57920 and WooCommerce 8.8.0-rc.1<\/li>\n<\/ul>\n\n<h4>4.4 - 2023-12-12<\/h4>\n\n<ul>\n<li>Declare WooCommerce block-based Cart and Checkout compatibility<\/li>\n<li>Requires WordPress 5.4<\/li>\n<li>Tested up to WordPress 6.5-alpha-57159 and WooCommerce 8.4.0-rc.1<\/li>\n<\/ul>\n\n<h4>4.3 - 2023-09-07<\/h4>\n\n<ul>\n<li>Fix a bug getting variation discounts introduced in 4.2<\/li>\n<\/ul>\n\n<h4>4.2 - 2023-09-07<\/h4>\n\n<ul>\n<li>Fix a bug where sometimes variable products would show on sale when they weren\u2019t<\/li>\n<\/ul>\n\n<h4>4.1 - 2023-09-06<\/h4>\n\n<ul>\n<li><a href=\"https:\/\/nakedcatplugins.com\/product\/taxonomy-term-and-role-based-discounts-for-woocommerce-pro-add-on\/?utm_source=wordpress.org&amp;utm_medium=link&amp;utm_campaign=taxonomydiscounts_woocommerce_plugin\">PRO add-on<\/a> 2.1: Discount rules database cache for better performance<\/li>\n<li>Fix version number on readme.txt file<\/li>\n<li>Small performance tweak on our call to the <code>woocommerce_product_get_price<\/code> filter<\/li>\n<li>Fix a bug where sometimes products would show on sale when they weren\u2019t<\/li>\n<\/ul>\n\n<h4>4.0 - 2023-09-05<\/h4>\n\n<ul>\n<li>Performance improvement by only loading non-expired and date valid rules on the frontend<\/li>\n<li>Performance improvement by caching our filter calls to <code>woocommerce_product_is_on_sale<\/code> and <code>woocommerce_product_get_price<\/code> - This can be disabled by passing <code>false to the new<\/code>tdw_enable_cache` filter or on the <a href=\"https:\/\/nakedcatplugins.com\/product\/taxonomy-term-and-role-based-discounts-for-woocommerce-pro-add-on\/?utm_source=wordpress.org&amp;utm_medium=link&amp;utm_campaign=taxonomydiscounts_woocommerce_plugin\">PRO add-on<\/a><\/li>\n<li>Tested up to WordPress 6.4-alpha-56479 and WooCommerce 8.1.0-beta.1<\/li>\n<\/ul>\n\n<h4>3.8.1 - 2023-07-11<\/h4>\n\n<ul>\n<li><a href=\"https:\/\/nakedcatplugins.com\/product\/taxonomy-term-and-role-based-discounts-for-woocommerce-pro-add-on\/?utm_source=wordpress.org&amp;utm_medium=link&amp;utm_campaign=taxonomydiscounts_woocommerce_plugin\">PRO add-on<\/a> 1.8: Exclude products on sale from the discount rule<\/li>\n<li>Fix translations<\/li>\n<li>Requires WooCommerce 5.0 or above<\/li>\n<li>Tested up to WordPress 6.3-beta3-56192 and WooCommerce 7.9.0-rc.3<\/li>\n<\/ul>\n\n<h4>3.8 - 2023-07-11<\/h4>\n\n<ul>\n<li><a href=\"https:\/\/nakedcatplugins.com\/product\/taxonomy-term-and-role-based-discounts-for-woocommerce-pro-add-on\/?utm_source=wordpress.org&amp;utm_medium=link&amp;utm_campaign=taxonomydiscounts_woocommerce_plugin\">PRO add-on<\/a> 1.8: Exclude products on sale from the discount rule<\/li>\n<li>Requires WooCommerce 5.0 or above<\/li>\n<li>Tested up to WordPress 6.3-beta3-56192 and WooCommerce 7.9.0-rc.3<\/li>\n<\/ul>\n\n<h4>3.7 - 2023-05-29<\/h4>\n\n<ul>\n<li>Fixed a bug where the incorrect product price would show up on the checkout page<\/li>\n<li>Tested up to WordPress 6.3-alpha-55859 and WooCommerce 7.8.0-beta.1<\/li>\n<\/ul>\n\n<h4>3.6 - 2022-11-23<\/h4>\n\n<ul>\n<li><a href=\"https:\/\/nakedcatplugins.com\/product\/taxonomy-term-and-role-based-discounts-for-woocommerce-pro-add-on\/?utm_source=wordpress.org&amp;utm_medium=link&amp;utm_campaign=taxonomydiscounts_woocommerce_plugin\">PRO add-on<\/a> 1.7: \u201cStop - no discount\u201d rule that makes sure products from specific taxonomy terms never have a discount applied, even if there are other rules that will apply for other product taxonomy terms<\/li>\n<li>Code cleanup<\/li>\n<li>Tested up to WordPress 6.2-alpha-54860 and WooCommerce 7.2.0-beta.1<\/li>\n<\/ul>\n\n<h4>3.5 - 2022-11-22<\/h4>\n\n<ul>\n<li><a href=\"https:\/\/nakedcatplugins.com\/product\/taxonomy-term-and-role-based-discounts-for-woocommerce-pro-add-on\/?utm_source=wordpress.org&amp;utm_medium=link&amp;utm_campaign=taxonomydiscounts_woocommerce_plugin\">PRO add-on<\/a> 1.6: Disable shipping methods based on cart items applied rules<\/li>\n<li>Visual feedback for required fields when adding new rules<\/li>\n<li>Tested up to WordPress 6.2-alpha-54860 and WooCommerce 7.1<\/li>\n<\/ul>\n\n<h4>3.4 - 2022-11-10<\/h4>\n\n<ul>\n<li><a href=\"https:\/\/nakedcatplugins.com\/product\/taxonomy-term-and-role-based-discounts-for-woocommerce-pro-add-on\/?utm_source=wordpress.org&amp;utm_medium=link&amp;utm_campaign=taxonomydiscounts_woocommerce_plugin\">PRO add-on<\/a> 1.5: New rule field \u201ctitle\u201d that can be used to identify the rule in the admin area as well as being shown alongside the discount information in the frontend<\/li>\n<li>Tested and confirmed WooCommerce HPOS compatibility<\/li>\n<li>Fix jQuery deprecations<\/li>\n<li>Fixed a bug when showing discount information on the product page<\/li>\n<li>Tested up to WordPress 6.2-alpha-54748 and WooCommerce 7.1<\/li>\n<\/ul>\n\n<h4>3.3.0 - 2022-10-17<\/h4>\n\n<ul>\n<li><a href=\"https:\/\/nakedcatplugins.com\/product\/taxonomy-term-and-role-based-discounts-for-woocommerce-pro-add-on\/?utm_source=wordpress.org&amp;utm_medium=link&amp;utm_campaign=taxonomydiscounts_woocommerce_plugin\">PRO add-on<\/a> 1.4: Set maximum amount of free items when using BOGO discounts<\/li>\n<li>Fixed bug on the dates information when neither start or end date are set<\/li>\n<\/ul>\n\n<h4>3.2.0 - 2022-10-07<\/h4>\n\n<ul>\n<li>Allow <a href=\"https:\/\/nakedcatplugins.com\/product\/taxonomy-term-and-role-based-discounts-for-woocommerce-pro-add-on\/?utm_source=wordpress.org&amp;utm_medium=link&amp;utm_campaign=taxonomydiscounts_woocommerce_plugin\">PRO add-on<\/a> 1.3 to add rules for non logged in users<\/li>\n<li>Tested up to WordPress 6.1-beta3-54400 and WooCommerce 7.0.0-rc.2<\/li>\n<\/ul>\n\n<h4>3.1.2 - 2022-09-19<\/h4>\n\n<ul>\n<li>Fix readme.txt<\/li>\n<\/ul>\n\n<h4>3.1.1 - 2022-09-19<\/h4>\n\n<ul>\n<li>Fix: Add <code>$location<\/code> to the <code>tdw_text_x_discount<\/code>, <code>tdw_text_from_x_bought_y_discount<\/code> and <code>tdw_text_for_each_x_bought_y_free<\/code> filters<\/li>\n<\/ul>\n\n<h4>3.1 - 2022-09-19<\/h4>\n\n<ul>\n<li>Sale badge (via filter or <a href=\"https:\/\/nakedcatplugins.com\/product\/taxonomy-term-and-role-based-discounts-for-woocommerce-pro-add-on\/?utm_source=wordpress.org&amp;utm_medium=link&amp;utm_campaign=taxonomydiscounts_woocommerce_plugin\">PRO add-on<\/a>) now works in the Flatsome theme<\/li>\n<li>Remove <code>strong<\/code> tags and replace them with unopinated <code>span<\/code> tags with classes on discount information (via filters or PRO add-on)<\/li>\n<li>Add <code>$location<\/code> to the <code>tdw_text_x_discount<\/code>, <code>tdw_text_from_x_bought_y_discount<\/code> and <code>tdw_text_for_each_x_bought_y_free<\/code> filters<\/li>\n<\/ul>\n\n<h4>3.0 - 2022-09-18<\/h4>\n\n<ul>\n<li>New <a href=\"https:\/\/nakedcatplugins.com\/product\/taxonomy-term-and-role-based-discounts-for-woocommerce-pro-add-on\/?utm_source=wordpress.org&amp;utm_medium=link&amp;utm_campaign=taxonomydiscounts_woocommerce_plugin\">PRO add-on<\/a><\/li>\n<li>Small bug fix on the product single page discount information beta feature<\/li>\n<li>Deprecated the <code>WCTD_PERC_SALE_BADGE<\/code>, <code>WCTD_LOOP_DISC_INFO_ACTION<\/code>, <code>WCTD_LOOP_DISC_INFO_PRIO<\/code>, <code>WCTD_PROD_DISC_INFO_ACTION<\/code>, <code>WCTD_PROD_DISC_INFO_PRIO<\/code> and <code>WCTD_ADVANCED_MODE<\/code> in favor of the new filters <code>tdw_perc_sale_badge<\/code>, <code>tdw_loop_disc_info_action<\/code>, <code>tdw_loop_disc_info_prio<\/code>, <code>tdw_single_disc_info_action<\/code>, <code>tdw_single_disc_info_prio<\/code> and <code>tdw_dev_mode<\/code><\/li>\n<li>Requires WooCommerce 4.0 or above<\/li>\n<li>Tested up to WordPress 6.1-alpha-53556 and WooCommerce 6.9.2<\/li>\n<\/ul>\n\n<h4>2.1.0 - 2022-06-29<\/h4>\n\n<ul>\n<li>New brand: PT Woo Plugins \ud83e\udd73<\/li>\n<li>Code refactoring and simplification when getting the applied rule to a product<\/li>\n<li>Requires WordPress 5.0, WooCommerce 3.0 and PHP 7.0<\/li>\n<li>Tested up to WordPress 6.1-alpha-53556 and WooCommerce 6.7.0-beta.2<\/li>\n<\/ul>\n\n<h4>2.0.0 - 2021-05-10<\/h4>\n\n<ul>\n<li>Moved the settings to Products instead of WooCommerce<\/li>\n<li>Fix WPML compatibility on the admin<\/li>\n<li>If the <code>WCTD_ADVANCED_MODE<\/code> constant is set to true, a new \u201cID\u201d field will be available for discount rules, which can be used by developers to identify a specific discount rule<\/li>\n<li>New <code>wctd_get_product_applied_rule<\/code> helper function to get the product applied rule, if any<\/li>\n<li>Added <a href=\"https:\/\/automattic.pxf.io\/EEJQd4\">Woocommerce Google Product Feed compatibility<\/a><\/li>\n<li>Code refactoring<\/li>\n<li>Tested up to WordPress 5.8-alpha-50832 and WooCommerce 5.3.0-rc.2<\/li>\n<li>Relase sponsored by <a href=\"https:\/\/www.planetatangerina.com\/en\/\">Planeta Tangerina<\/a> and <a href=\"https:\/\/suportestv.pt\/\">SuportesTV.pt<\/a><\/li>\n<\/ul>\n\n<h4>1.5.2 - 2021-03-10<\/h4>\n\n<ul>\n<li>Tested up to WordPress 5.8-alpha-50516 and WooCommerce 5.1.0<\/li>\n<\/ul>\n\n<h4>1.5.1<\/h4>\n\n<ul>\n<li>Fix version number on the admin screen<\/li>\n<li>Technical support clarification<\/li>\n<li>Tested up to WordPress 5.5-beta4-48649 and WooCommerce 4.3.1<\/li>\n<\/ul>\n\n<h4>1.5.0<\/h4>\n\n<ul>\n<li>Fixed a bug which was causing subscriptions to have an incorrect value<\/li>\n<li>Process variable subscriptions just like regular variable products (Thanks for the heads up @snap-shot)<\/li>\n<li>Fix product variations aggregation<\/li>\n<li>Tested up to WordPress 5.3.3-alpha-46995 and WooCommerce 3.9.0-rc.2<\/li>\n<\/ul>\n\n<h4>1.4.8<\/h4>\n\n<ul>\n<li>Fixed a bug which was causing this discounted prices not to be shown on variable products (Thanks @drosendo)<\/li>\n<\/ul>\n\n<h4>1.4.7<\/h4>\n\n<ul>\n<li>Fixed a bug which was causing the discounted prices not to be shown on the homepage<\/li>\n<li>Tested up to WordPress 5.3.1-alpha-46771 and WooCommerce 3.8.1<\/li>\n<\/ul>\n\n<h4>1.4.6<\/h4>\n\n<ul>\n<li>Fixed a bug which could cause products not on sale to show the sale badge (Thanks @drosendo)<\/li>\n<\/ul>\n\n<h4>1.4.5<\/h4>\n\n<ul>\n<li>Fixed a bug which was causing PHP Notices (Thanks @drosendo)<\/li>\n<\/ul>\n\n<h4>1.4.4<\/h4>\n\n<ul>\n<li>Tested up to WordPress 5.2.5-alpha and WooCommerce 3.8.0<\/li>\n<\/ul>\n\n<h4>1.4.3<\/h4>\n\n<ul>\n<li>New <code>tdw_custom_product_loop<\/code> that you should return true to inside your product custom loops so that the discounted price shows correctly (Thanks vinha.pt)<\/li>\n<li>Fix version number on the plugin admin interface<\/li>\n<li>Tested up to WooCommerce 3.6.3 and WordPress 5.2.1<\/li>\n<\/ul>\n\n<h4>1.4.2<\/h4>\n\n<ul>\n<li>Stop using the WooCommerce term meta helper functions<\/li>\n<li>Tested up to WooCommerce 3.6.0 RC2 and WordPress 5.1.1<\/li>\n<\/ul>\n\n<h4>1.4.1<\/h4>\n\n<ul>\n<li>Fix: php notice when product prices are set with more decimals than the ones defined on WooCommerce<\/li>\n<\/ul>\n\n<h4>1.4<\/h4>\n\n<ul>\n<li>New <code>tdw_rule_add<\/code>, <code>tdw_rule_edit<\/code> and <code>tdw_rule_delete<\/code> actions when adding, editing or deleting rules (by @onlylowercaselettersandnumbers suggestion)<\/li>\n<li>Tested up to WooCommerce 3.5.4 and WordPress 5.1<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>New <code>wctd_get_product_current_price<\/code> helper function that developers can use to get the current product or variation price with the discount applied<\/li>\n<li>Better plugin initialization<\/li>\n<li>Minor code cleanup<\/li>\n<li>Tweaks on the admin page<\/li>\n<li>Fixed <code>WC tested up to<\/code> tag<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Beta: If you set the <code>WCTD_PERC_SALE_BADGE<\/code> constant to true, the sale badge will be replaced by the discount percentage, if the minimum quantity is 0 or 1<\/li>\n<li>Fix: when percentage discount was set for a minimum quantity of 1 and the discount was not shown on archives and single product page<\/li>\n<li>Fix: when the product had no price a php warning was thrown<\/li>\n<li>Tested up to WooCommerce 3.5.4 and WordPress 5.1 (beta)<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>It\u2019s now possible to set rules for all users, logged-in users or users belonging to specific user roles (sponsored by Amaranto Design)<\/li>\n<li>Better code indentation\/standards<\/li>\n<li>If you set an integer value on the <code>WCTD_GET_PRICE_FILTER_PRIO<\/code> constant, that priority will be used on the <code>woocommerce_product_get_price<\/code> filter<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Now correctly shows the discount inside WooCommerce Product Shortcodes (sponsored by Amaranto Design)<\/li>\n<li>Small admin UX tweaks<\/li>\n<li>Tested up to WooCommerce 3.5.1 and bumped <code>WC tested up to<\/code> tag<\/li>\n<li>Reached 1.0 for no special reason :-)<\/li>\n<\/ul>\n\n<h4>0.9.8<\/h4>\n\n<ul>\n<li>Use <code>add_woocommerce_term_meta<\/code> and <code>update_woocommerce_term_meta<\/code> instead of <code>add_term_meta<\/code> and <code>update_term_meta<\/code><\/li>\n<li>Bumped <code>WC tested up to<\/code> tag<\/li>\n<li>Bumped <code>Requires at least<\/code> tag<\/li>\n<\/ul>\n\n<h4>0.9.7<\/h4>\n\n<ul>\n<li>Added the taxonomy internal name on the select field<\/li>\n<li>Bumped <code>WC tested up to<\/code> tag<\/li>\n<\/ul>\n\n<h4>0.9.6<\/h4>\n\n<ul>\n<li>\u201cFeed KuantoKusta for WooCommerce\u201d (to be released) plugin integration fix<\/li>\n<\/ul>\n\n<h4>0.9.5<\/h4>\n\n<ul>\n<li>Fix: some variation discounts were not applied correctly<\/li>\n<li>\u201cFeed KuantoKusta for WooCommerce\u201d (to be released) plugin integration<\/li>\n<\/ul>\n\n<h4>0.9<\/h4>\n\n<ul>\n<li>Fix: after calculations, round the discounted price using the default WooCommerce decimal places, in order to avoid totals miscalculations<\/li>\n<li>Support for start and end date\/time activated by default (no need to use the <code>WCTD_ENABLE_TIME<\/code> constant)<\/li>\n<\/ul>\n\n<h4>0.8.1<\/h4>\n\n<ul>\n<li>Tested up to WooCommerce 3.3<\/li>\n<li>Bumped <code>Tested up to<\/code> tag<\/li>\n<\/ul>\n\n<h4>0.8<\/h4>\n\n<ul>\n<li>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;<\/li>\n<li>Experimental support for start and end date\/time (you must define <code>WCTD_ENABLE_TIME<\/code> as true on your wp-config.php file for this feature to be enabled);<\/li>\n<\/ul>\n\n<h4>0.7.4<\/h4>\n\n<ul>\n<li>Removed the translation files from the plugin <code>languages<\/code> folder (the translations are now managed on WordPress.org\u2019s GlotPress tool and will be automatically downloaded from there)<\/li>\n<li>Tested up to WooCommerce 3.2<\/li>\n<li>Added <code>WC tested up to<\/code> tag on the plugin main file<\/li>\n<li>Bumped <code>Tested up to<\/code> tag<\/li>\n<\/ul>\n\n<h4>0.7.3<\/h4>\n\n<ul>\n<li>Fixed a bug where some \u201cBuy x get y free\u201d discounts would not be calculated correctly<\/li>\n<li>Bumped <code>Tested up to<\/code> tag<\/li>\n<\/ul>\n\n<h4>0.7.2<\/h4>\n\n<ul>\n<li>Fixed a bug that would prevent ajax based backend actions to work correctly<\/li>\n<li>Fixed a (nasty) bug that would duplicate discounts each time the cart was loaded on WooComerce 3.0 and above<\/li>\n<\/ul>\n\n<h4>0.7.1<\/h4>\n\n<ul>\n<li>Fixed a bug that would prevent ajax based frontends to apply discounts<\/li>\n<li>Fixed a bug where the sale price wouldn\u2019t correctly set on WooCommerce 3.0 cart<\/li>\n<li>Beta: show sale flash on variable products and sale price on variations (after choosen on the product page)<\/li>\n<li>Beta: show discount information on the loop and product pages (see the FAQ)<\/li>\n<\/ul>\n\n<h4>0.7<\/h4>\n\n<ul>\n<li>Tested and adapted to work with WooCommerce 3.0.0-rc.2<\/li>\n<li>Bumped <code>Tested up to<\/code> tag<\/li>\n<\/ul>\n\n<h4>0.6.2.1<\/h4>\n\n<ul>\n<li>Bumped <code>Tested up to<\/code> tag<\/li>\n<\/ul>\n\n<h4>0.6.2<\/h4>\n\n<ul>\n<li>Fix version number;<\/li>\n<\/ul>\n\n<h4>0.6.1<\/h4>\n\n<ul>\n<li>Fix to avoid php notices when old rules don\u2019t have the new \u201caggregate product variations\u201d setting setup;<\/li>\n<\/ul>\n\n<h4>0.6<\/h4>\n\n<ul>\n<li>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;<\/li>\n<\/ul>\n\n<h4>0.5<\/h4>\n\n<ul>\n<li>Increase compatibility with other plugins that manipulate the product value;<\/li>\n<li>Stop using the $woocommerce global;<\/li>\n<li>Tested up to WordPress 4.6.1;<\/li>\n<\/ul>\n\n<h4>0.4<\/h4>\n\n<ul>\n<li>New <code>wctd_get_product_ids_on_sale<\/code> function to get the product_id of all the products that have an active discount, similar to WooCommerce\u2019s native <code>wc_get_product_ids_on_sale<\/code> (to be used by developers);<\/li>\n<li>Tested up to WordPress 4.5;<\/li>\n<\/ul>\n\n<h4>0.3<\/h4>\n\n<ul>\n<li>First public release;<\/li>\n<li>Minimum quantity on percentage discounts (leave empty or zero to apply to any quantity);<\/li>\n<li>Configuration screen changes for better UX;<\/li>\n<\/ul>\n\n<h4>0.2<\/h4>\n\n<ul>\n<li>It\u2019s now possible to disable further coupon discounts on top of our discounts, on a per rule basis:<\/li>\n<li>Fixed \u201cCart Discount\u201d 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;<\/li>\n<li>The other coupon types, like \u201cCart % Discount\u201d, \u201cProduct Discount\u201d and \u201cProduct % Discount\u201d will be applied only on cart lines where there\u2019s no discounted products (that have a rule where \u201cDisable coupons\u201d is activated);<\/li>\n<\/ul>\n\n<h4>0.1<\/h4>\n\n<ul>\n<li>First (non-public) release;<\/li>\n<\/ul>","raw_excerpt":"Automatically apply WooCommerce discounts\/pricing rules based on product category, tag, attribute, custom taxonomy, and user role \u2014 no coupons needed","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/he.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/42808","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/he.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/he.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/he.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=42808"}],"author":[{"embeddable":true,"href":"https:\/\/he.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/nakedcatplugins"}],"wp:attachment":[{"href":"https:\/\/he.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=42808"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/he.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=42808"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/he.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=42808"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/he.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=42808"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/he.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=42808"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/he.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=42808"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}