WC_Product::get_cogs_total_value_coreprotectedWC 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.

Returns

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 10.3.6

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