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...


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

  • 2
    Will be possible to customise the name in a future release. Sep 1, 2016 at 21:37

1 Answer 1


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.