1

In the Commerce plugin, there are several ways to download a PDF of a specific order.

However, the default formatting of the PDF filename isn't very helpful...

⁠⁠⁠⁠Order-14ef9b78dae6893cd2ca75ec047ed9a0.pdf

Is there any way to control the formatting of PDF receipt filenames?

  • 2
    Will be possible to customise the name in a future release. – Luke Holder Sep 1 '16 at 21:37
2

There's currently not a native way to change this format, but it is planned for a future release.

In the meantime as a workaround, you can listen to the onBeforeSaveOrder event and change the order number to whatever format you want. A by-product of that is that the PDF receipt filename should change to your format as well.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.