Created
March 25, 2022 12:44
-
-
Save AnanthFlycart/cc6f66d5f8ba4e7b9651b7faa8f743eb 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
| // Fix - Buy X Get Y (Cheapest or highest) quantity count issue in cart | |
| add_filter('advanced_woo_discount_rules_calculate_cheapest_discount', function ($process, $rule, $cart_item, $is_cart){ | |
| if (!$is_cart) { | |
| $process = false; | |
| } | |
| return $process; | |
| }, 10, 4); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment