• Resolved apavlov2

    (@apavlov2)


    Hello, is it possible that you add a filter for the invoice file name?

    something like this would allow developers some flexibility on how to handle invoice names when generated.

    In the abstract-invoice.php method generate around lines 307 you can add the following:

    $base_inv_name = apply_filters('wpi_invoice_file_name', $this->get_formatted_number());
    $pdf_path        = $this->get_rel_pdf_path() . '/' . $base_inv_name . '.pdf';

    This will allow users to add a filter and change the filename generated for the invoice.

    Please let me know if you are considering this feature so that we can remove the “work-around” we’re currently using.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Bas Elbers

    (@baaaaas)

    Thank you for your feedback.
    We have added the filter to the code and it will be added in the next release.

    Let me know if you have any other additions or questions. ??

    Hello,
    This topic interests me. I just bought the premium version of the plugin. I successfully customized the template, but I can’t change the name of the generated PDF … Actually the name of the PDF is the order number. Can you help me ? thank you !

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Rename/change name of generated PDF’ is closed to new replies.