Created
June 1, 2022 14:25
-
-
Save marcusig/cd12247bf35b127c6773b777d70c9977 to your computer and use it in GitHub Desktop.
Fix the total calculation in Divi, when using the Cart Products module
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
<?php | |
add_action( 'woocommerce_before_cart', function() { | |
WC()->cart->calculate_totals(); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment