SteppedCheckout::onAfterInit PHP Method

onAfterInit() public method

Redirect back to start of checkout if no cart started
public onAfterInit ( )
    public function onAfterInit()
    {
        $action = $this->owner->getRequest()->param('Action');
        $steps = $this->getSteps();
        if (!ShoppingCart::curr() && !empty($action) && isset($steps[$action])) {
            Controller::curr()->redirect($this->owner->Link());
            return;
        }
    }