I use custom order numbers different from order ID through module Commerce Order Counter and the show up correctly on order list at admin/commerce/orders.

The problem is that my invoice receipts show order ID instead of order number, but I couldn't find where $order object references the number.

Comments

nicjasno’s picture

Issue summary: View changes

I have the same issue.

I use commerce_billy to generate the order numbers.

They show up like they should when viewing the invoice as admin and then printing it. But the order number is different on the invoice that is being sent the customer in the email.

In both cases the code is

<?php print $info['order_number']; ?>

But in the case of the customer email, the order ID is printed instead of the order number.

aramboyajyan’s picture

Status: Active » Postponed (maintainer needs more info)

I tested this several times with Commerce Billy and the order invoice number was always displayed properly - both in email and "Printable Invoice" tab.

Note that Commerce Billy will NOT generate the ID before the order has "Invoiced" status. You can assign this status upon checkout completion for example.

If this still does not work in your case with the latest 7.x-1.x-dev branch, please write step by step instructions on how to replicate the issue.

Thanks!

aramboyajyan’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

I'm closing this due to lack of activity.