Skip to content

Instantly share code, notes, and snippets.

@marcusig
Created June 1, 2022 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcusig/cd12247bf35b127c6773b777d70c9977 to your computer and use it in GitHub Desktop.
Save marcusig/cd12247bf35b127c6773b777d70c9977 to your computer and use it in GitHub Desktop.
Fix the total calculation in Divi, when using the Cart Products module
<?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