WC_Abstract_Order::get_cart_total_for_order()protectedWC 1.0

Helper function. If you add all items in this order in cart again, this would be the cart total (assuming all other settings are same).

{} It's a method of the class: WC_Abstract_Order{}

No Hooks.


float. Cart total.


// protected - for code of main (parent) or child class
$result = $this->get_cart_total_for_order();

Code of WC_Abstract_Order::get_cart_total_for_order() WC 6.9.4

protected function get_cart_total_for_order() {
	return wc_remove_number_precision(
			$this->get_values_for_total( 'total' )