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
OrderItem
setQuantity
OrderItem::setQuantity PHP Method
OrderItem Class Documentation
Mostra file
Open project: burnbright/silverstripe-shop
setQuantity()
public
method
0 quantity means it should instead be deleted.
public
setQuantity
(
integer
$val
)
$val
integer
new quantity to set
public function setQuantity($val) { $val = $val < 1 ? 1 : $val; $this->setField("Quantity", $val); }
OrderItem
Buyable
Image
QuantityField
Total
UnitPrice
addLink
calculatetotal
onBeforeWrite
onPayment
onPlacement
removeLink
removeallLink
setQuantity
setUnitPrice
setquantityLink
uniquedata