I am developing a custom module for Opencart 2.0.3.1 now. This module has already been implemented for latest versions and its working fine. I have a bit of confusion with the event handling for this version. Please note following are the events i used in newer versions :
Code: Select all
$this->load->model('extension/event');
$this->model_extension_event->addEvent('sms', 'catalog/controller/account/success/after', 'module/sms/otp');
$this->model_extension_event->addEvent('smsorder', 'catalog/controller/checkout/success/before', 'module/sms/neworder');
$this->model_extension_event->addEvent('smsorderstatus', 'catalog/controller/api/order/history/after', 'module/sms/orderstatus');
$this->model_extension_event->addEvent('contactform', 'catalog/controller/information/contact/success/after', 'module/sms/contactform');
But I could not determine which of them can be used and does for all the events mentioned above a respective one exists with the older events.
The other way I have is to edit the core files, I only wish to use it if its inevitable.
Please update if anybody knows about this.
Thank you in advance.