If the cart has compound tax, we want to show the subtotal as cart + shipping + non-compound taxes (after discount).
$cart_subtotal, $compound, $this
Sortie :
// Modifier la valeur avec le filtre 'woocommerce_cart_subtotal'
add_filter('woocommerce_cart_subtotal', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($cart_subtotal) {
// Modifier la valeur
return $cart_subtotal;
}
Chargement des actualités...