VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: antonitus on April 25, 2016, 16:26:51 PM

Title: pdf invoice attachment only for administrators and not for customers
Post by: antonitus on April 25, 2016, 16:26:51 PM
Is there any way I can remove the pdf attachment for customers who order and only allow the administrator/vendor to receive the pdf attachment?

This pdf attachment is so ugly looking and it breaks most of my text.  Virtuemart, some time very soon should maybe start creating a new updated pdf.  I think it is about time.  I know Virtuemart is limited to the pdf rendering code, i.e. tcpdf, however something should be done about it.  Maybe some smart Virtuemart developer on here can do it, I would certainly purchase the add-on or include it in the Virtuemart files.
Title: Re: pdf invoice attachment only for administrators and not for customers
Post by: GJC Web Design on April 26, 2016, 09:47:13 AM
it doesn't take much effort to produce a decent invoice

it is just 3 files to over ride and make sure your css is basic and inline and set widths etc

components\com_virtuemart\views\invoice\tmpl\invoice.php and its children

to stop the client invoice I guess somewhere in components\com_virtuemart\helpers\shopfunctionsf.php  sendVmMail function
Title: Re: pdf invoice attachment only for administrators and not for customers
Post by: antonitus on April 27, 2016, 16:07:10 PM
Thanks GJC Web Design,

I really like that invoice design. Any chance of being cheeky and getting some of the code for that invoice?

Thanks,
Tony
Title: Re: pdf invoice attachment only for administrators and not for customers
Post by: GJC Web Design on April 27, 2016, 16:15:28 PM
there's nothing to it

html 101 -- think 1990 tables etc

put <?php die(); ?> at the bottom components\com_virtuemart\views\invoice\tmpl\invoice.php and generate an invoice

then u can edit in real time
Title: Re: pdf invoice attachment only for administrators and not for customers
Post by: antonitus on April 28, 2016, 15:44:33 PM
Ok, thanks. I'll try it out.  I remember the 90's creating websites, those were the days. I always preferred tables.