Order::get_subtotal()
Get the subtotal amount for the order which excludes fees.
Return
(float) Subtotal amount for the order which excludes fees.
Source
File: src/Tribe/Payouts/Order.php
public function get_subtotal() { if ( null !== $this->subtotal ) { return $this->subtotal; } // Get list of receivers. $receivers = $this->get_receivers(); $subtotal = 0.00; foreach ( $receivers as $receiver ) { $subtotal += $receiver->get_subtotal(); } $this->subtotal = $subtotal; return $subtotal; }
Changelog
Version | Description |
---|---|
4.7.1 | Introduced. |