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;
        }
    }
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;
        }
    }
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 ; } }
Redirect back to start of checkout if no cart started
Redirect back to start of checkout if no cart started