SilverShop\Extension\SteppedCheckoutExtension
Stepped checkout provides multiple forms and actions for placing an order
Synopsis
class SteppedCheckoutExtension
extends Extension
{
- // members
- private static $continue_anchor;
- protected CheckoutPageController $owner;
- // methods
- public static void setupSteps()
- public void getSteps()
- public void onAfterInit()
- public void IsCurrentStep()
- public void StepExists()
- public void IsPastStep()
- public void IsFutureStep()
- public void index()
- private void compareActions()
- private void actionPos()
Hierarchy
Extends
- SilverStripe\Core\Extension
Members
private
- $continue_anchor
—
string
Anchor string to add to continue links
protected
Methods
private
- actionPos() — Get the numerical position of a step
- compareActions() — Check if one step comes before or after the another
public
- IsCurrentStep() — Check if passed action is the same as the current step
- IsFutureStep() — Check if passed action is for a step after current
- IsPastStep() — Check if passed action is for a step before current
- StepExists()
- getSteps()
- index() — Get first step from stored steps
- onAfterInit() — Redirect back to start of checkout if no cart started
- setupSteps() — Set up CheckoutPage_Controller decorators for managing steps