source/Application/Model/Basket.php
public function removeItem($sItemKey)
    {
        if (\OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('blPsBasketReservationEnabled')) {
            if (isset($this->_aBasketContents[$sItemKey])) {
                $sArticleId = $this->_aBasketContents[$sItemKey]->getProductId();
                if ($sArticleId) {
                    $this->getSession()
                        ->getBasketReservations()
                        ->discardArticleReservation($sArticleId);
                }
            }
        }
        unset($this->_aBasketContents[$sItemKey]);

        // basket exclude
        if (!count($this->_aBasketContents) && \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('blBasketExcludeEnabled')) {
            $this->setBasketRootCatId(null);
        }
    }
public function removeItem($sItemKey)
    {
        if (\OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('blPsBasketReservationEnabled')) {
            if (isset($this->_aBasketContents[$sItemKey])) {
                $sArticleId = $this->_aBasketContents[$sItemKey]->getProductId();
                if ($sArticleId) {
                    $this->getSession()
                        ->getBasketReservations()
                        ->discardArticleReservation($sArticleId);
                }
            }
        }
        unset($this->_aBasketContents[$sItemKey]);

        // basket exclude
        if (!count($this->_aBasketContents) && \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('blBasketExcludeEnabled')) {
            $this->setBasketRootCatId(null);
        }
    }
public function removeItem ( $ sItemKey ) { if ( \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'blPsBasketReservationEnabled' ) ) { if ( isset ( $ this -> _aBasketContents [ $ sItemKey ] ) ) { $ sArticleId = $ this -> _aBasketContents [ $ sItemKey ] -> getProductId ( ) ; if ( $ sArticleId ) { $ this -> getSession ( ) -> getBasketReservations ( ) -> discardArticleReservation ( $ sArticleId ) ; } } } unset ( $ this -> _aBasketContents [ $ sItemKey ] ) ; // basket exclude if ( ! count ( $ this -> _aBasketContents ) && \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'blBasketExcludeEnabled' ) ) { $ this -> setBasketRootCatId ( null ) ; } }
Removes item from basket

@param string $sItemKey basket item key
Removes item from basket