Created
July 2, 2021 05:01
-
-
Save Balakrishnan-flycart/a1a5a02cbaa8bb16e85e3d9834fc50eb to your computer and use it in GitHub Desktop.
Discount Rules v2: Cart page compatible with Elementor plugin
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_cart', 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