source/Application/Model/Basket.php
public function deleteBasket()
    {
        $this->_aBasketContents = [];
        $this->getSession()->delBasket();

        if (\OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('blPsBasketReservationEnabled')) {
            $this->getSession()->getBasketReservations()->discardReservations();
        }

        // merging basket history
        $this->_deleteSavedBasket();
    }
public function deleteBasket()
    {
        $this->_aBasketContents = [];
        $this->getSession()->delBasket();

        if (\OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('blPsBasketReservationEnabled')) {
            $this->getSession()->getBasketReservations()->discardReservations();
        }

        // merging basket history
        $this->_deleteSavedBasket();
    }
public function deleteBasket ( ) { $ this -> _aBasketContents = [ ] ; $ this -> getSession ( ) -> delBasket ( ) ; if ( \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'blPsBasketReservationEnabled' ) ) { $ this -> getSession ( ) -> getBasketReservations ( ) -> discardReservations ( ) ; } // merging basket history $ this -> _deleteSavedBasket ( ) ; }
Deletes user basket object from session
Deletes user basket object from session