List of Events

Simple Returns dispatches events for most major actions. The list below shows events by area and includes information like dispatch class, associated data, and example usage.

Adminhtml

  1. simplereturns_adminhtml_rma_create_save_before

  2. simplereturns_adminhtml_rma_create_save_after

  3. simplereturns_adminhtml_rma_edit_save_before

  4. simplereturns_adminhtml_rma_edit_save_after

  5. simplereturns_adminhtml_rma_status_edit_save_before

  6. simplereturns_adminhtml_rma_status_edit_save_after


Event

simplereturns_adminhtml_rma_create_save_before

Class

AuroraExtensions\SimpleReturns\Controller\Adminhtml\Rma\CreatePost

Area

adminhtml

Fields

order_id:

int

status:

string

reason:

string

resolution:

string

comments:

string

remote_ip:

string

token:

string

created_at:

string

Usage

$observer->getEvent()->getStatus();


Event

simplereturns_adminhtml_rma_create_save_after

Class

AuroraExtensions\SimpleReturns\Controller\Adminhtml\Rma\CreatePost

Area

adminhtml

Fields

rma:

SimpleReturnInterface

Usage

$observer->getEvent()->getRma();


Event

simplereturns_adminhtml_rma_edit_save_before

Class

AuroraExtensions\SimpleReturns\Controller\Adminhtml\Rma\EditPost

Area

adminhtml

Fields

rma:

SimpleReturnInterface

status:

string

reason:

string

resolution:

string

comments:

string

Usage

$observer->getEvent()->getReason();


Event

simplereturns_adminhtml_rma_edit_save_after

Class

AuroraExtensions\SimpleReturns\Controller\Adminhtml\Rma\EditPost

Area

adminhtml

Fields

rma:

SimpleReturnInterface

Usage

$observer->getEvent()->getRma();


Event

simplereturns_adminhtml_rma_status_edit_save_before

Class

AuroraExtensions\SimpleReturns\Controller\Adminhtml\Rma\Status\EditPost

Area

adminhtml

Fields

rma:

SimpleReturnInterface

status:

string

Usage

$observer->getEvent()->getStatus();


Event

simplereturns_adminhtml_rma_status_edit_save_after

Class

AuroraExtensions\SimpleReturns\Controller\Adminhtml\Rma\Status\EditPost

Area

adminhtml

Fields

rma:

SimpleReturnInterface

Usage

$observer->getEvent()->getRma();

Frontend

  1. simplereturns_rma_create_save_before

  2. simplereturns_rma_create_save_after

  3. simplereturns_rma_edit_save_before

  4. simplereturns_rma_edit_save_after


Event

simplereturns_rma_create_save_before

Class

AuroraExtensions\SimpleReturns\Controller\Rma\CreatePost

Area

frontend

Fields

order_id:

int

status:

string

reason:

string

resolution:

string

comments:

string

remote_ip:

string

token:

string

created_at:

string

Usage

$observer->getEvent()->getOrderId();


Event

simplereturns_rma_create_save_after

Class

AuroraExtensions\SimpleReturns\Controller\Rma\CreatePost

Area

frontend

Fields

rma:

SimpleReturnInterface

Usage

$observer->getEvent()->getRma();


Event

simplereturns_rma_edit_save_before

Class

AuroraExtensions\SimpleReturns\Controller\Rma\EditPost

Area

frontend

Fields

rma_id:

int

status:

string

reason:

string

resolution:

string

comments:

string

remote_ip:

string

token:

string

Usage

$observer->getEvent()->getComments();


Event

simplereturns_rma_edit_save_after

Class

AuroraExtensions\SimpleReturns\Controller\Rma\EditPost

Area

frontend

Fields

rma:

SimpleReturnInterface

Usage

$observer->getEvent()->getRma();