woocommerce_get_price_including_tax

FILTER woocommerce\includes\wc-product-functions.php (ligne 1255) github
The woocommerce_adjust_non_base_location_prices filter can stop base taxes being taken off when dealing with out of base locations. e.g. If a product costs 10 including tax, all users will pay 10 regardless of location and taxes. This feature is experimental @since 2.4.7 and may change in the future. Use at your risk.

Paramètres

Entrée :
$return_price, $qty, $product
Sortie :
N/A

Utilisation

// Modifier la valeur avec le filtre 'woocommerce_get_price_including_tax'
add_filter('woocommerce_get_price_including_tax', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($return_price) {
    // Modifier la valeur
    return $return_price;
}

Actualités

Chargement des actualités...