shop:onInvoiceSystemSupported event
The shop:onInvoiceSystemSupported event allows to enable the invoice support in LemonStand. By default invoices are disabled, and Administration Area user interface does not display any controls and labels related to invoices. Some modules, for example Subscriptions Module, require invoice support and this event allows them to enable it. The event handler should not accept any parameter. If the handler in any module returns TRUE, the invoice support will be enabled.
Event handler example:
public function subscribeEvents()
{
Backend::$events->addEvent('shop:onInvoiceSystemSupported', $this, 'process_invoice_system_supported');
}
public function process_invoice_system_supported()
{
return true;
}Next: shop:onOrderSupportsInvoices event
Previous: shop:onNewInvoiceItemCopy event
Return to Handling LemonStand events

