WC_Product::get_cogs_effective_value()
Get the effective value of the Cost of Goods Sold for this product. (the final, actual monetary value).
WARNING! If the Cost of Goods Sold feature is disabled this method will always return zero.
Method of the class: WC_Product{}
No Hooks.
Return
float
. The effective value for this product.
Usage
$WC_Product = new WC_Product(); $WC_Product->get_cogs_effective_value(): float;
WC_Product::get_cogs_effective_value() WC Product::get cogs effective value code WC 9.5.1
public function get_cogs_effective_value(): float { return $this->cogs_is_enabled( __METHOD__ ) ? $this->get_cogs_effective_value_core() : 0; }