Свойство | Тип | Описание | |
---|---|---|---|
$maxquantity | integer | Populates quantity dropdown with this many values | |
$saveablefields | array | Fields that can be saved to an order item. |
Метод | Описание | |
---|---|---|
__construct ( $controller, $name = "AddProductForm" ) | ||
addtocart ( $data, $form ) | ||
getBuyable ( $data = null ) | ||
setMaximumQuantity ( $qty ) | Choose maximum value to populate quantity dropdown | |
setSaveableFields ( $fields ) |
Метод | Описание | |
---|---|---|
getFormActions ( ) : FieldList | ||
getFormFields ( ) : FieldList | ||
getFormValidator ( ) : Validator |
protected getFormActions ( ) : FieldList | ||
Результат | FieldList | Actions for this form. |
protected getFormFields ( ) : FieldList | ||
Результат | FieldList | Fields for this form. |
protected getFormValidator ( ) : Validator | ||
Результат | Validator | Validator for this form. |
public setMaximumQuantity ( $qty ) |
protected int $maxquantity | ||
Результат | integer |
protected array $saveablefields | ||
Результат | array |