Last active
November 10, 2021 13:31
-
-
Save Balakrishnan-flycart/1b2e7ca04d570733714af1675044953b to your computer and use it in GitHub Desktop.
Woo Discount Rules v2 - Bogo issue (free product quantity calculation)
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
add_filter('advanced_woo_discount_rules_modify_price_html', function($result, $price_html, $product, $quantity){ | |
// is_page( 'cart' ) -> cart is a page slug | |
if ( is_page( 'cart' ) || is_cart() ) { | |
return false; | |
} | |
$result; | |
}, 10, 4); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment