Skip to content

Instantly share code, notes, and snippets.

@marcusig
Created June 1, 2022 14:25
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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