* @link https://www.oxidmodule.com */ declare(strict_types=1); namespace D3\Linkmobility4OXID\Modules\Application\Model; use OxidEsales\Eshop\Core\Email; class OrderModel extends OrderModel_parent { public function cancelOrder() { parent::cancelOrder(); if ($this->getFieldData('oxstorno') === 1) { $Email = oxNew(Email::class); $Email->d3SendCancelMessage($this); } } }