Invoice number not available in email template

  • Thanks MxKert,


    The original template (still in the addons) showed:


    <p><b>Order:</b> <perch:shop id="orderInvoiceNumber" type="hidden" /></p>


    But nothing was being shown. I dropped a showall on the template and could see anything whatsoever to do with invoice number?


    It seems to correlate with order ID, so Im not sure why it's separate, but hopefully the client will be able to manage.

  • Hello, apologies for the late response.


    Template is as follows, couple of questions:


    I added a showall to a test and couldn't see the Invoice number.


    Also, is it possible to pass information into this template from another page within the site? It would be useful to have the company contact details available from the contact page.


  • I don't see orderInvoiceNumber being used in the template, so I'm assuming you removed on purpose after you found it didn't work. Does the table shop_orders have the orderInvoiceNumber column? And is it populated for the orders in the table?



    Also, is it possible to pass information into this template from another page within the site? It would be useful to have the company contact details available from the contact page.

    You could try using a layout include for this.