source/Application/Model/Order.php
public function cancelOrder()
    {
        $this->oxorder__oxstorno = new \OxidEsales\Eshop\Core\Field(1);
        if ($this->save()) {
            // canceling ordered products
            foreach ($this->getOrderArticles() as $oOrderArticle) {
                $oOrderArticle->cancelOrderArticle();
            }
        }
    }
public function cancelOrder()
    {
        $this->oxorder__oxstorno = new \OxidEsales\Eshop\Core\Field(1);
        if ($this->save()) {
            // canceling ordered products
            foreach ($this->getOrderArticles() as $oOrderArticle) {
                $oOrderArticle->cancelOrderArticle();
            }
        }
    }
public function cancelOrder ( ) { $ this -> oxorder__oxstorno = new \ OxidEsales \ Eshop \ Core \ Field ( 1 ) ; if ( $ this -> save ( ) ) { // canceling ordered products foreach ( $ this -> getOrderArticles ( ) as $ oOrderArticle ) { $ oOrderArticle -> cancelOrderArticle ( ) ; } } }
Performs order cancel process
Performs order cancel process