Created
October 6, 2020 10:21
-
-
Save Balakrishnan-flycart/549ca3bcdf51ef19d858cfea6e613bf3 to your computer and use it in GitHub Desktop.
Woo Discount Rules v2: If not show strikeout in Minicart
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
| add_action('woocommerce_before_mini_cart_contents', function (){ | |
| if (!WC()->cart->is_empty()){ | |
| WC()->cart->calculate_totals(); | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment