public function emptycart()
    {
        $this->extend("onBeforeEmpty");
        $this->removeAll();
        $this->save();
                
        $this->setSessionMessage(
            "bad",
            _t("Checkout.EmptiedCart", "Shopping cart emptied")
        );

        return $this->redirectBack();
    }
public function emptycart()
    {
        $this->extend("onBeforeEmpty");
        $this->removeAll();
        $this->save();
                
        $this->setSessionMessage(
            "bad",
            _t("Checkout.EmptiedCart", "Shopping cart emptied")
        );

        return $this->redirectBack();
    }
public function emptycart ( ) { $ this -> extend ( "onBeforeEmpty" ) ; $ this -> removeAll ( ) ; $ this -> save ( ) ; $ this -> setSessionMessage ( "bad" , _t ( "Checkout.EmptiedCart" , "Shopping cart emptied" ) ) ; return $ this -> redirectBack ( ) ; }
Action that will clear shopping cart and associated sessions
Action that will clear shopping cart and associated sessions