woocommerce_order_is_vat_exempt

FILTER woocommerce\includes\abstracts\abstract-wc-order.php (ligne 1826) github
Calculate taxes for all line items and shipping, and store the totals and tax rows. If by default the taxes are based on the shipping address and the current order doesn't have any, it would use the billing address rather than using the Shopping base location. Will use the base country unless customer addresses are set.

Paramètres

Entrée :
'yes' === $this->get_meta( 'is_vat_exempt'
Sortie :
@param array $args Added in 3.0.0 to pass things like location.

Utilisation

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

function ma_fonction_filtre('yes' === $this->get_meta( 'is_vat_exempt') {
    // Modifier la valeur
    return 'yes' === $this->get_meta( 'is_vat_exempt';
}

Actualités

Chargement des actualités...