Toggle navigation
Hot Examples
KO
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
검색
홈
OrderItemList
PHP 클래스 OrderItemList, silvershop-core
상속:
extends
HasManyList
파일 보기
프로젝트 열기: burnbright/silverstripe-shop
1 사용 예제들
공개 메소드들
메소드
설명
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.
메소드 상세
Plural()
공개
메소드
public
Plural
( )
Quantity()
공개
메소드
public
Quantity
( )
SubTotal()
공개
메소드
Add up the totals of all the order items in this list.
public
SubTotal
( )
Sum()
공개
메소드
Optionally sum product field instead.
public
Sum
(
$field
,
boolean
$onproduct
= false ) :
number
$field
- field to sum
$onproduct
boolean
- sum from product or not
리턴
number
- sum total of field