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');