1. Home
  2. Knowledge Base
  3. WooCommerce Dynamic Pricing and Discount Rules
  4. Dynamic Pricing
  5. Filter the step value for the tier amount
  1. Home
  2. Knowledge Base
  3. WooCommerce Dynamic Pricing and Discount Rules
  4. Filter the step value for the tier amount

Filter the step value for the tier amount

By default, the amount value in each tier is to two decimal places. You can adjust this using the wcfad_tier_amount_step filter:

<?php
/**
* Filter the step value for the tier amount
*/
function prefix_tier_amount_step( $step ) {
return '0.001';
}
add_filter( 'wcfad_tier_amount_step', 'prefix_tier_amount_step' );

Here’s how to add the snippet.

Was this article helpful?

Related Articles