WC_Product::get_cogs_total_value_core()protectedWC 1.0

Core function to get the effective total value of the Cost of Goods Sold for this product.

Derived classes can override this method to provide an alternative way of calculating the total effective value from the single effective value and/or the defined value.

Method of the class: WC_Product{}

No Hooks.

Return

float. The effective total value for this product.

Usage

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

WC_Product::get_cogs_total_value_core() code WC 9.5.1

protected function get_cogs_total_value_core(): float {
	return $this->get_cogs_effective_value();
}