Files
2025-03-12 17:06:23 +01:00

12 lines
935 B
PHP

<?php
stEventDispatcher::getInstance()->connect('stAdminGenerator.generateStInvoiceBackend', array('stIfirmaListener', 'generateStProduct'));
stEventDispatcher::getInstance()->connect('stAdminGenerator.generateStPaymentType', array('stIfirmaListener', 'generatePaymentType'));
stEventDispatcher::getInstance()->connect('stInvoiceListener.preCrateInvoiceProforma', array('stIfirmaListener', 'generateIvoiceProforma'));
stEventDispatcher::getInstance()->connect('stInvoiceListener.preUpdateInvoice', array('stIfirmaListener', 'generateUpdateInvoice'));
stEventDispatcher::getInstance()->connect('stOrderActions.preExecuteDownloadInvoice', array('stIfirmaListener', 'redirectInvoice'));
stEventDispatcher::getInstance()->connect('stInvoicePdfActions.preExecuteShow', array('stIfirmaListener', 'redirectInvoicePdf'));
stPluginHelper::addEnableModule('stIFirmaPdf', 'frontend');
stPluginHelper::addEnableModule('stIFirmaPdf', 'backend');