• Name: Oswaldo Fuentes
    Product Name: WowInvoice

    Message: Order ID: #62256
    I need to customize your WOWInvoice and my developer can’t do it because of the lack of hooks. Please see what my developer wants you to know and help:
    “We need to customize certain calculated invoice data (such as a per-product discount breakdown, a different totals summary, or address formatting) that the current Settings options do not cover.

    Upon reviewing the code, we found that:

    – There is no apply_filters hook for the already calculated invoice data (items, totals, meta_rows, address_columns) within TemplateDataPreparer.
    – The only extension point in the templates is the winv_invoice_body_open action, which fires once when the <body> opens, with no corresponding closing action or way to replace content that has already been rendered.
    – There is no filter available to register custom templates in TemplateManager.

    Is there a development or beta version that adds a filter for the prepared invoice data (e.g., apply_filters(‘winv_prepared_document_data’, $data, $order)) prior to rendering?
    Are there plans for a body-closing action (equivalent to winv_invoice_body_close) or a filter to register custom templates in TemplateManager?
    If not currently available, is there an officially supported method (even if undocumented online) to modify invoice content beyond the standard Settings options without editing the plugin files?”
    Please help me with this requirement.

Viewing 1 replies (of 1 total)
  • Owadud

    (@owadud655)

    Hi there,

    Thank you for the detailed explanation and for sharing your developer’s findings.

    We understand the need for additional hooks and filters to customize prepared invoice data, template registration, and content around the invoice body without modifying the plugin’s core files.

    Our developer is already working on improving these customization options, including better hooks/filters for developers. We are hoping to add these capabilities in one of our upcoming WOWInvoice updates.

    Here is the details about the hooks – github

    We appreciate your developer providing such clear technical feedback, as it helps us understand exactly which extension points are needed. We have taken these requirements into consideration as part of the ongoing development.

    We generally do not recommend editing the plugin files directly, since those changes can be overwritten during an update.

    Thank you for your patience and for helping us improve WOWInvoice. We hope to make these developer-friendly customization options available in an upcoming update.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.