WooCommerce Dynamic Pricing and Discount Rules will apply role-based discounts to the existing product price. If the product is on sale, that means the discount will be applied to the sale price.
However, if you prefer to apply role-based discounts to the regular price, you can use this snippet:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Ignore sale prices for role-based discounts | |
| */ | |
| add_filter( 'wcfad_ignore_sale_prices_by_role', '__return_true' ); |
Here’s how to add a snippet.