CollectionTotal
Trait to fetch totals from an ItemPriceCollection
Table of Contents
Methods
| getTotals() | Retrieves totals for all items in the collection |
Methods
getTotals()
Retrieves totals for all items in the collection
protected
getTotals(ItemPriceCollection $collection) : stdClass
Parameters
- $collection : ItemPriceCollection
-
The collection from which to fetch all totals
Return values
stdClass —An stdClass of total information:
- subtotal The collection's subtotal
- total The collection's total
- total_without_exclusive_tax The collection's total without exclusive taxes
- total_after_tax The collection's total after tax
- total_after_discount The collection's total after discount
- tax_amount The collection's total tax
- discount_amount The collection's total discount