Project

General

Profile

Actions

Feature proposal #9134

closed

Implement invoice trigger

Added by krileon about 1 year ago. Updated 9 months ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
Start date:
28 February 2023
Due date:
% Done:

100%

Estimated time:

Description

This should be fired before an invoice is displayed to allow completely replacing and customizing the invoice rendering with a custom implementation.

https://www.joomlapolis.com/forum/developer-members-support/245654-qr-code-in-cbsubs-invoice#333035

Actions #1

Updated by krileon about 1 year ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

Implemented in MR !296

The following trigger was implemented.

$_PLUGINS->trigger( 'onCPayAfterDrawInvoice', [ $this, &$render, $user, $invoice ] )

var2 can be used to completely replace the invoice rendering. var1 is the view object. var3 the user object. var4 the invoice object. echos will output before the invoice HTML and returns after the invoice HTML. Gives complete control over total replacement of invoice rendering.

Actions #2

Updated by beat 9 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF