Skip to content

Technical Details

Daniel Leeb edited this page Aug 13, 2018 · 2 revisions

Subscribers

The extension uses the Shopware "event system" to hook into Shopware by registering the following subscribers:

Frontend Subscriber

Subscriber/FrontendSubscriber.php subscribes to the following events:

Shopware_Modules_Admin_GetPaymentMeans_DataFilter

Allows payments that implement DisplayRestrictionInterface to be filtered based on custom criterias (e.g. RatepayInvoicePayment).

Enlight_Controller_Action_PreDispatch

Adds Resources/views as template directory to the frontend template manager.

Theme_Compiler_Collect_Plugin_Less

Adds a custom less resource to the theme compiler (see Resources/views/frontend/_public/src/less).

Enlight_Controller_Action_PostDispatchSecure_Frontend_Checkout

Hooks into the checkout pages to assign additional view variables used in templates.

Backend Subscriber

Subscriber/BackendSubscriber.php subscribes to the following events:

Enlight_Controller_Action_PostDispatchSecure_Backend_Index

Adds Resources/views as template directory to the backend template manager.

Enlight_Controller_Action_PostDispatchSecure_Backend_Order

Adds templates to extend order details window with Wirecard tab.

Order Subscriber

Subscriber/OrderSubscriber.php subscribes to the following events:

Shopware_Modules_Order_SendMail_Send

Disables order confirmation mail in testing environment.

You can’t perform that action at this time.