Created
January 3, 2022 11:22
-
-
Save AnanthFlycart/e6f0593764a2bac2dff331cb8d186e40 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| // Disable before Mini Cart Recalculate Cart Totals | |
| add_action('advanced_woo_discount_rules_after_initialize', function() { | |
| if(class_exists('\Wdr\App\Router')) { | |
| remove_filter('woocommerce_before_mini_cart', array(\Wdr\App\Router::$manage_discount, 'reCalculateCartTotal'), 10); | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment