News:

Looking for documentation? Take a look on our wiki

Main Menu

Invoice and delivery .pdf different header and footer

Started by lanthan, June 15, 2014, 21:08:56 PM

Previous topic - Next topic

lanthan

Hi,

VM2.6.6, J2.5.22, PHP5.3

I have to have header and footer image only for the invoice .pdf, because the invoice will be send by e-mail. My delivery note will be printed on an original letter paper as it will be send with the goods.

com_virtuemart->helpers->vmpdf.php line 235 and 195. There are the functions for header and footer. Right?
Does anyone know, which variable I can check whether it is invoice or delivery note? ($this->doctype == 'invoice') is not set here.

If anyone has a solution or idea I would be very glad if you would share this with me.

Thanks.

GJC Web Design

just get the vars

Invoice is layout=invoice. del is layout=deliverynote


$layout = JRequest::getVar('layout');
if($layout=='invoice'){
  //invoice footer
}else{
  //delivery footer
}


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

lanthan

Thanks. I will try this tomorrow and will reply if it works.

lanthan