The checkout completion message template displays the order id instead of the order number:

<span class="checkout-completion__order-number">#{{ order_entity.id() }}</span>

To fix it replace id() with get('order_number').value:

<span class="checkout-completion__order-number">#{{ order_entity.get('order_number').value }}</span>

Issue fork belgrade-3560575

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

mecmartini created an issue. See original summary.

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

majmunbog’s picture

Version: 3.0.2 » 3.x-dev
Status: Active » Needs review
sumi’s picture

Status: Needs review » Reviewed & tested by the community

Tested and confirmed it is now fixed.

  • majmunbog committed 53ba5a6c on 3.x
    fix: #3560575 Checkout completion order number is wrong
    
majmunbog’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

pozi’s picture

Actually it should be:
<span class="checkout-completion__order-number">#{{ order_entity.getOrderNumber() }}</span>

majmunbog’s picture

Status: Fixed » Needs work

majmunbog’s picture

Status: Needs work » Needs review

Thanks for catching this @pozi.

majmunbog’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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