\ModificationField_Hidden
For displaying a {@link Modifier} on the {@link CheckoutPage} which will inject details into {@link Order} {@link Modifications}.
The hidden field stores the ID.
Synopsis
class ModificationField_Hidden
extends HiddenField
{
- // methods
- public void __construct()
- public String FieldHolder()
- public void validate()
- public Object getModifier()
- public String Description()
- public Boolean modifiesSubTotal()
Hierarchy
Extends
- HiddenField
Members
protected
Methods
public
- __construct() — Creates a new optionset field for order modifers with the naming convention Modifiers[ClassName] where ClassName is name of modifier class.
- Description() — A description to show alongside the hidden field on the {@link CheckoutForm}.
- FieldHolder() — Render field with the appropriate template.
- getModifier() — Get the modifier e.g: FlatFeeShipping
- modifiesSubTotal() — Does not modify {@link Order} sub total by default.
- validate() — Validation is not currently done on this field at this point.