src/OpenCart/Helpers/OcHelper.php
protected function installEvents()
    {
        $this->uninstallEvents();
        $location = $this->getLocation();
        $model = $this->registry->getEventModel();
        $model->addEvent('acumulus','catalog/model/*/addOrder/after',$location . '/eventOrderUpdate');
        $model->addEvent('acumulus','catalog/model/*/addOrderHistory/after',$location . '/eventOrderUpdate');
        $model->addEvent('acumulus','admin/model/*/addOrder/after',$location . '/eventOrderUpdate');
        $model->addEvent('acumulus','admin/model/*/addOrderHistory/after',$location . '/eventOrderUpdate');
        $model->addEvent('acumulus','admin/view/common/column_left/before',$location . '/eventViewColumnLeft');
    }
protected function installEvents()
    {
        $this->uninstallEvents();
        $location = $this->getLocation();
        $model = $this->registry->getEventModel();
        $model->addEvent('acumulus','catalog/model/*/addOrder/after',$location . '/eventOrderUpdate');
        $model->addEvent('acumulus','catalog/model/*/addOrderHistory/after',$location . '/eventOrderUpdate');
        $model->addEvent('acumulus','admin/model/*/addOrder/after',$location . '/eventOrderUpdate');
        $model->addEvent('acumulus','admin/model/*/addOrderHistory/after',$location . '/eventOrderUpdate');
        $model->addEvent('acumulus','admin/view/common/column_left/before',$location . '/eventViewColumnLeft');
    }
protected function installEvents ( ) { $ this -> uninstallEvents ( ) ; $ location = $ this -> getLocation ( ) ; $ model = $ this -> registry -> getEventModel ( ) ; $ model -> addEvent ( 'acumulus' , 'catalog/model/*/addOrder/after' , $ location . '/eventOrderUpdate' ) ; $ model -> addEvent ( 'acumulus' , 'catalog/model/*/addOrderHistory/after' , $ location . '/eventOrderUpdate' ) ; $ model -> addEvent ( 'acumulus' , 'admin/model/*/addOrder/after' , $ location . '/eventOrderUpdate' ) ; $ model -> addEvent ( 'acumulus' , 'admin/model/*/addOrderHistory/after' , $ location . '/eventOrderUpdate' ) ; $ model -> addEvent ( 'acumulus' , 'admin/view/common/column_left/before' , $ location . '/eventViewColumnLeft' ) ; }
Installs our events.

This will add them to the table 'event' from where they are registered on
the start of each request. The controller actions can be found in the
catalog controller for the catalog events and the admin controller for
the admin events.

To support updating, this will also be called by the index function.
Therefore we will first remove any existing events from our module.

To support other plugins, notably quick_status_updater, we do not only
look at the checkout/order events at the catalog side, but at all
addOrder and addOrderHistory events.

@throws \Exception
Installs our events .