• Resolved Naiara Mooy

    (@naiararomm)


    Hi,

    I’d like to know if it’s possible to change the PDF file name when you download an invoice from this plugin.

    Is this possible to change it through some code?

    Thank u so much.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Yes you can! With the Pro version it’s even easier without any code.
    https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/custom-pdf-filenames/

    Thread Starter Naiara Mooy

    (@naiararomm)

    Thank you for your answer.

    I think I want to do like example 2 of your link.

    I just want to replace ‘invoice’ for ‘BodegaIniesta_order_no order’

    But inside the code I don’t know what part I have to change. You could give me an example?, it’s for the free version.

    Thank u again.

    Plugin Contributor Ewout

    (@pomegranate)

    you have to put the new prefix in the $new_prefix string:

    
    $new_prefix = _n( 'booking', 'bookings', count($order_ids), 'woocommerce-pdf-invoices-packing-slips' );
    

    If you don’t know coding I recommend getting the pro version.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Pdf file name of the invoices’ is closed to new replies.