News:

Looking for documentation? Take a look on our wiki

Main Menu

Stop sending PDF invoice

Started by duncan12, July 11, 2016, 21:25:18 PM

Previous topic - Next topic

duncan12

I was able to customize the invoice email so that the Order Summary actually made sense :-)

But VM also sends a PDF attachment along with the email. The PDF still contains the screwy Order Summary. So:

a) how do I customize the Order Summary (total, shipping, tax, etc) section of the attached Invoice PDF, or
b) how do I get VM stop sending the PDF?

VirtueMart 3.0.16

jjk

I thought the pdf invoice uses the html version as input, but I might be wrong. Personally I don't use VM to send invoices. Maybe somebody else can answer case a).
For case b) I think you can simply leave the 'Default Order Status to create an invoice' field in the VM email configuration blank.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

jenkinhill

To customise the invoice I'd look at overriding components/com_virtuemart/views/invoice/tmpl/invoice_items.php

To nbot send an invoice, in VM3.0.17.2 there is an option of None for Default Order Status to create an invoice  in VM Configuration/Emails

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

duncan12

Yes, I thought overriding components/com_virtuemart/views/invoice/tmpl/invoice_items.php would do the trick too, but it doesn't. It only overrides the html email that is sent. The PDF doesn't get changed at all. Odd, yes?

reinhold

The invoices use those templates. However, the invoice PDFs are cached, so they are not re-generated when you modify the template override... If you remove the PDF invoice file on the server or generate a new order, then the template override should be used.

Best regards,
Reinhold