WC_Abstract_Order::set_shipping_tax()
Set shipping_tax.
Method of the class: WC_Abstract_Order{}
No Hooks.
Returns
null
. Nothing (null).
Usage
$WC_Abstract_Order = new WC_Abstract_Order(); $WC_Abstract_Order->set_shipping_tax( $value );
- $value(string) (required)
- Value to set.
WC_Abstract_Order::set_shipping_tax() WC Abstract Order::set shipping tax code WC 9.8.5
public function set_shipping_tax( $value ) { $this->set_prop( 'shipping_tax', wc_format_decimal( $value, false, true ) ); $this->set_total_tax( (float) $this->get_cart_tax() + (float) $this->get_shipping_tax() ); }