Sunnysideup\Ecommerce\Control\OrderModifierFormController
This controller allows you to submit modifier forms from anywhere on the site, Most likely this will be from the the cart / checkout page.
Synopsis
class OrderModifierFormController
extends Controller
{
- // members
- protected Order $currentOrder;
- private static string $url_segment = 'ecommercemodifierformcontroller';
- private static array $allowed_actions = ;
- // methods
- public string Link()
- public void removemodifier()
- protected void init()
- protected void initVirtualMethods()
- protected Form|null` getOrderModifierForm()
Hierarchy
Extends
- SilverStripe\Control\Controller
Tasks
Line | Task |
---|---|
43+ | : check this method It looks like this: /$ClassName/$action/ |
59 | See issue 149 |
Members
private
- $allowed_actions — array
- $url_segment — string
protected
- $currentOrder — Sunnysideup\Ecommerce\Model\Order
Methods
protected
- getOrderModifierForm() — Return a specific {@link OrderModifierForm} by it's name.
- init() — sets virtual methods and order.
- initVirtualMethods() — Inits the virtual methods from the name of the modifier forms to redirect the action method to the form class.