I know it’s crazy they haven’t added such a basic function and so handy for retailers. Here is my solution:
Go to the receipt editor - click on the three dots - click edit code - then click on the left menu where it says “footer.liquid” go to line 46 which should be empty and paste the following:
Order number: {{ order.name}}