Property | Type | Description | |
---|---|---|---|
$maxquantity | integer | Populates quantity dropdown with this many values | |
$saveablefields | array | Fields that can be saved to an order item. |
Method | Description | |
---|---|---|
__construct ( $controller, $name = "AddProductForm" ) | ||
addtocart ( $data, $form ) | ||
getBuyable ( $data = null ) | ||
setMaximumQuantity ( $qty ) | Choose maximum value to populate quantity dropdown | |
setSaveableFields ( $fields ) |
Method | Description | |
---|---|---|
getFormActions ( ) : FieldList | ||
getFormFields ( ) : FieldList | ||
getFormValidator ( ) : Validator |
protected getFormActions ( ) : FieldList | ||
return | FieldList | Actions for this form. |
protected getFormFields ( ) : FieldList | ||
return | FieldList | Fields for this form. |
protected getFormValidator ( ) : Validator | ||
return | Validator | Validator for this form. |
public setMaximumQuantity ( $qty ) |
protected int $maxquantity | ||
return | integer |
protected array $saveablefields | ||
return | array |