Toggle navigation
Hot Examples
IT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Cerca
Home
OrderItemList
PHP Class OrderItemList, silvershop-core
Inheritance:
extends
HasManyList
Mostra file
Open project: burnbright/silverstripe-shop
Class Usage Examples
Public Methods
Method
Description
Plural
( )
Quantity
( )
SubTotal
( )
Add up the totals of all the order items in this list.
Sum
(
$field
,
boolean
$onproduct
= false ) :
number
Sums up all of desired field for items, and multiply by quantity.
Method Details
Plural()
public
method
public
Plural
( )
Quantity()
public
method
public
Quantity
( )
SubTotal()
public
method
Add up the totals of all the order items in this list.
public
SubTotal
( )
Sum()
public
method
Optionally sum product field instead.
public
Sum
(
$field
,
boolean
$onproduct
= false ) :
number
$field
- field to sum
$onproduct
boolean
- sum from product or not
return
number
- sum total of field