Our plugin have to rebuild cart contents to get correct prices .

But some themes/plugin try to  show  mini-cart when new item was added  to the  cart.


You should use this PHP code to fix the problem

add_filter( 'wdp_exclude_hooks_when_add_to_cart_calculated_items', function ( $hooks ) {
    $hooks[] = 'woocommerce_add_to_cart';
    return $hooks;
} );