Gets order subtotal. Order subtotal is the price of all items excluding taxes, fees, shipping cost, and coupon discounts. If sale price is set on an item, the subtotal will include this sale discount. E.g. a product with a regular price of $100 bought at a 50% discount will represent $50 of the subtotal for the order.
(float
Sortie :
@return float
// Modifier la valeur avec le filtre 'woocommerce_order_get_subtotal'
add_filter('woocommerce_order_get_subtotal', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre((float) {
// Modifier la valeur
return (float;
}
Chargement des actualités...