Created
May 23, 2018 13:15
-
-
Save kreamweb/c4eb323de5dd179cfc1f9f2c214f9839 to your computer and use it in GitHub Desktop.
This file contains 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 | |
add_filter('ywpar_calculate_rewards_discount_max_discount_fixed','ywpar_calculate_rewards_discount_max_discount_fixed', 10, 1); | |
function ywpar_calculate_rewards_discount_max_discount_fixed( $subtotal ){ | |
return floatval( WC()->cart->get_total('edit') ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment