Tribe__Tickets__Commerce__PayPal__Order::get_sub_total()

Returns the sub total of order regardless of status


Return

(int) a positive number for sub total


Top ↑

Source

File: src/Tribe/Commerce/PayPal/Order.php

	public function get_sub_total() {

		return ! empty( $this->meta['mc_gross'] ) ? absint( $this->meta['mc_gross'] ) : 0;

	}

Top ↑

Changelog

Changelog
Version Description
4.10 Introduced.