public function emptycart()
    {
        ShoppingCartFactory::create()->delete();
        
        $form = $this->CartForm();
        $form->sessionMessage(_t(
            "ShoppingCart.EmptiedCart",
            "Shopping cart emptied"
        ));

        return $this->redirectBack();
    }
public function emptycart()
    {
        ShoppingCartFactory::create()->delete();
        
        $form = $this->CartForm();
        $form->sessionMessage(_t(
            "ShoppingCart.EmptiedCart",
            "Shopping cart emptied"
        ));

        return $this->redirectBack();
    }
public function emptycart ( ) { ShoppingCartFactory :: create ( ) -> delete ( ) ; $ form = $ this -> CartForm ( ) ; $ form -> sessionMessage ( _t ( "ShoppingCart.EmptiedCart" , "Shopping cart emptied" ) ) ; return $ this -> redirectBack ( ) ; }
Action that will clear shopping cart and associated items
Action that will clear shopping cart and associated items