1. Home
  2. Knowledge Base
  3. WooCommerce Dynamic Pricing and Discount Rules
  4. Ignore sale prices for role-based discounts
  1. Home
  2. Knowledge Base
  3. Advanced Topics for Dynamic Pricing and Discount Rules
  4. Ignore sale prices for role-based discounts

Ignore sale prices for role-based discounts

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:

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

Was this article helpful?

Related Articles