Get item subtotal - this is the cost before discount.
$subtotal, $this, $item, $inc_tax, $round
Sortie :
@param object $item Item to get total from. @param bool $inc_tax (default: false). @param bool $round (default: true). @return float
// Modifier la valeur avec le filtre 'woocommerce_order_amount_item_subtotal'
add_filter('woocommerce_order_amount_item_subtotal', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($subtotal) {
// Modifier la valeur
return $subtotal;
}
Chargement des actualités...