1. Home
  2. Knowledge Base
  3. WooCommerce Fees and Discounts
  4. Filter the step value for the tier amount
  1. Home
  2. Knowledge Base
  3. Dynamic Pricing
  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?

Need More Support?

If you can't find the answer that you're looking for, then please use the link below to raise a support ticket.
Contact Support

Related Articles