Describe your bug or feature request.

When printing an order, the PDF file name is set to Order @id @receipt. And this value can be confusing because site administrators are using Order Number instead of Order ID to manage orders in their internal systems.

So, once #3314990: Update the order entity label to "Order [order:number]" was introduced in 2.32.0, we are proposing to use the entity label instead of the ID when generating the Print receipts to be more consistent.

Issue fork commerce-3322369

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

plopesc created an issue. See original summary.

plopesc’s picture

Issue summary: View changes
Status: Active » Needs review
Parent issue: #3314990: Update the order entity label to "Order [order:number]" »

Update status

plopesc’s picture

Title: Use order label for entity print » Use order label for entity print file name
zengenuity’s picture

The file name using the order ID is a real problem when those don't match the order number. This fix works for me.

jsacksick made their first commit to this issue’s fork.

jsacksick’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.