source/Application/Controller/Admin/OrderArticle.php
public function deleteThisArticle()
    {
        // get article id
        $sOrderArtId = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('sArtID');
        $sOrderId = $this->getEditObjectId();

        $oOrderArticle = oxNew(\OxidEsales\Eshop\Application\Model\OrderArticle::class);
        $oOrder = oxNew(\OxidEsales\Eshop\Application\Model\Order::class);

        // order and order article exits?
        if ($oOrderArticle->load($sOrderArtId) && $oOrder->load($sOrderId)) {
            // deleting record
            $oOrderArticle->delete();

            // recalculating order
            $oOrder->recalculateOrder();
        }
    }
public function deleteThisArticle()
    {
        // get article id
        $sOrderArtId = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('sArtID');
        $sOrderId = $this->getEditObjectId();

        $oOrderArticle = oxNew(\OxidEsales\Eshop\Application\Model\OrderArticle::class);
        $oOrder = oxNew(\OxidEsales\Eshop\Application\Model\Order::class);

        // order and order article exits?
        if ($oOrderArticle->load($sOrderArtId) && $oOrder->load($sOrderId)) {
            // deleting record
            $oOrderArticle->delete();

            // recalculating order
            $oOrder->recalculateOrder();
        }
    }
public function deleteThisArticle ( ) { // get article id $ sOrderArtId = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getRequestParameter ( 'sArtID' ) ; $ sOrderId = $ this -> getEditObjectId ( ) ; $ oOrderArticle = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ OrderArticle :: class ) ; $ oOrder = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Order :: class ) ; // order and order article exits? if ( $ oOrderArticle -> load ( $ sOrderArtId ) && $ oOrder -> load ( $ sOrderId ) ) { // deleting record $ oOrderArticle -> delete ( ) ; // recalculating order $ oOrder -> recalculateOrder ( ) ; } }
Removes article from order list.
Removes article from order list .