WC_Abstract_Order::get_cart_total_for_order()

Helper function.


Description Description

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


Return Return

(float) Cart total.


Top ↑

Source Source

File: includes/abstracts/abstract-wc-order.php

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


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.