pdf invoice attachment only for administrators and not for customers

Started by antonitus, April 25, 2016, 16:26:51 PM

Previous topic - Next topic

antonitus

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.
Joomla V3.5.1
Virtuemart V3.0.16

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

antonitus

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
Joomla V3.5.1
Virtuemart V3.0.16

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

antonitus

Ok, thanks. I'll try it out.  I remember the 90's creating websites, those were the days. I always preferred tables.
Joomla V3.5.1
Virtuemart V3.0.16