WC_Abstract_Legacy_Product::get_price_excluding_tax() public WC 1.0
Устарела с версии 3.0.0. Больше не поддерживается и может быть удалена. Используйте wc_get_price_excluding_tax.╳
Returns the price (excluding tax) - ignores tax_class filters since the price may include tax and thus needs subtracting. Uses store base tax rates. Can work for a specific $qty for more accurate taxes.
{} Это метод класса: WC_Abstract_Legacy_Product{}
Хуков нет.
Возвращает
Строку.
Использование
$WC_Abstract_Legacy_Product = new WC_Abstract_Legacy_Product(); $WC_Abstract_Legacy_Product->get_price_excluding_tax( $qty, $price );
- $qty(число)
- -
- $price(строка)
- to calculate, left blank to just use get_price()
Список изменений
Устарела с 3.0.0 | Use wc_get_price_excluding_tax instead. |
Код WC_Abstract_Legacy_Product::get_price_excluding_tax() WC Abstract Legacy Product::get price excluding tax WC 5.0.0
public function get_price_excluding_tax( $qty = 1, $price = '' ) {
wc_deprecated_function( 'WC_Product::get_price_excluding_tax', '3.0', 'wc_get_price_excluding_tax' );
return wc_get_price_excluding_tax( $this, array( 'qty' => $qty, 'price' => $price ) );
}