Skip to content

Instantly share code, notes, and snippets.

@PluginRepublicSupport
Last active January 16, 2024 06:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PluginRepublicSupport/95e68e292a0c2c9a43a07dcb41e791bb to your computer and use it in GitHub Desktop.
Save PluginRepublicSupport/95e68e292a0c2c9a43a07dcb41e791bb to your computer and use it in GitHub Desktop.
Allow decimals in the min/max total tier fields for Order Total and Discount on Spend rules in WooCommerce Fees and Discounts plugin
<?php
add_filter( 'wcfad_tier_min_step', function( $step ) { return '0.01'; });
add_filter( 'wcfad_tier_max_step', function( $step ) { return '0.01'; });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment