VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: bmw2182 on October 01, 2019, 18:26:39 PM

Title: Emailed invoice to admin shows invoice number, but invoice on order shows 0
Post by: bmw2182 on October 01, 2019, 18:26:39 PM
Running Joomla 3.9.5 and Virtuemart 3.6.2

An order is placed and an invoice is generated.  The email to the admin shows an actual invoice number.  If you go under orders and use the the printer icon to print the invoice you get invoice number 0.  If you use the 3rd Icon that opens up a pdf file it shows the invoice number.  How do you get the printer icon one to include the invoice number so it's not 0?
Title: Re: Emailed invoice to admin shows invoice number, but invoice on order shows 0
Post by: GJC Web Design on October 01, 2019, 21:12:38 PM
The "print" version is actually from the frontend views - so the templates in
components\com_virtuemart\views\invoice\tmpl\invoice.php

so if the invoice number is available there add it

why not just print the pdf? Much nicer looking
Title: Re: Emailed invoice to admin shows invoice number, but invoice on order shows 0
Post by: bmw2182 on October 02, 2019, 00:12:27 AM
Thank you!  I will make that suggestion to them..