Filter the rounding precision for internal WC calculations. This is different from the number of decimals used for display. Generally, this filter can be used to decrease the precision, but if you choose to decrease, there maybe side effects such as off by one rounding errors for certain tax rate combinations.
$precision
Sortie :
@param int $precision The number of decimals to round to.
// Modifier la valeur avec le filtre 'woocommerce_internal_rounding_precision'
add_filter('woocommerce_internal_rounding_precision', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($precision) {
// Modifier la valeur
return $precision;
}
Chargement des actualités...