Sunnysideup\Ecommerce\Control\OrderStepController
This call can be used when you need input from the customer in the order process.
To use
1. create class that extends OrderStepController
2. make sure the class has a $url_segment static var
3. create content and/or form for page
4. make sure you set up route (route.yml) to get to the
Synopsis
class OrderStepController
extends Controller
{
- // members
- protected string $alternativeContent = '';
- private static array $allowed_actions = ;
- private static Order $_order;
- // methods
- public void index()
- public void error()
- public string Content()
- public string Link()
- public void errorLink()
- protected static void name_of_controller_class()
- protected static void secure_hash()
- protected void nameOfControllerClass()
- protected abstract void nameOfLogClass()
- protected string standardContent()
- protected Form Form()
- protected abstract string codeOfRelevantOrderStep()
- protected abstract void secureHash()
- protected void checkOrder()
- protected Order myOrder()
- protected string getOrderGetParams()
- protected DataObject orderStep()
Hierarchy
Extends
- SilverStripe\Control\Controller
Members
private
- $_order — Sunnysideup\Ecommerce\Model\Order
- $allowed_actions — array
protected
- $alternativeContent — string
Methods
protected
- Form() — the form on the field.
- checkOrder() — is the order valid?
- codeOfRelevantOrderStep() — code of related order step.
- getOrderGetParams()
- myOrder() — finds the order ...
- nameOfControllerClass()
- nameOfLogClass() — related OrderStatusLog class.
- name_of_controller_class()
- orderStep()
- secureHash() — used to secure page.
- secure_hash()
- standardContent()
public
- Content() — main content ...
- Link()
- error() — there is an error ...
- errorLink()
- index() — when no action is selected this action runs...