SilverShop\Forms\AddProductForm
Synopsis
class AddProductForm
extends Form
{
- // members
- protected integer $maxquantity = 0;
- protected array $saveablefields = ;
- // methods
- public void __construct()
- public void setMaximumQuantity()
- public void setSaveableFields()
- public void addtocart()
- public void getBuyable()
- protected FieldList getFormFields()
- protected FieldList getFormActions()
- protected Validator getFormValidator()
Hierarchy
Extends
- SilverStripe\Forms\Form
Members
protected
- $maxquantity
—
int
Populates quantity dropdown with this many values - $saveablefields
—
array
Fields that can be saved to an order item.
Methods
protected
public
- __construct()
- addtocart()
- getBuyable()
- setMaximumQuantity() — Choose maximum value to populate quantity dropdown
- setSaveableFields()