WC_Legacy_Cart::apply_product_discounts_after_tax()publicWC 1.0

Устарела с версии 2.3.0 Coupons can not be applied after tax.. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.

Function to apply product discounts after tax.

Метод класса: WC_Legacy_Cart{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WC_Legacy_Cart = new WC_Legacy_Cart();
$WC_Legacy_Cart->apply_product_discounts_after_tax( $values, $price );
$values (обязательный)
-
$price (обязательный)
-

Список изменений

Устарела с 2.3.0 Coupons can not be applied after tax.

Код WC_Legacy_Cart::apply_product_discounts_after_tax() WC 8.7.0

public function apply_product_discounts_after_tax( $values, $price ) {
	wc_deprecated_function( 'apply_product_discounts_after_tax', '2.3' );
}