Active
Project:
Commerce order2pdf
Version:
7.x-1.1
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Sep 2014 at 13:57 UTC
Updated:
16 Mar 2016 at 23:32 UTC
Jump to comment: Most recent
Comments
Comment #1
kaido.toomingas commentedNo footer at this point. If you are interested in custom development you can contact me directly.
Comment #2
marco van bemmel commentedThere is a simple way to add a footer:
You can copy 'views-view.tpl.php' (from the view module) to your theme folder and rename it to 'views-view--commerce_order2pdf.tpl.php'. This will be the theme file of your PDF.
Now you can modify the file and add a footer. You can also use tokens with:
If you see the footer twice (below the line items) you should change the display of the line item of the view 'commerce_order2pdf' to the regular 'commerce_line_item_table'.
I hope this would help...
@Kaido, thank you for this awsome module. I use it in a multi site (domain access) because of its flexibility.
Comment #3
elpino commentedI've found it is possible to define/include both header and footer using mPDF's custom elements
<htmlpageheader>and<htmlpagefooter>and setting them with<sethtmlpageheader>and<sethtmlpagefooter>.You can find more info in mPDF's documentation here https://developer.gravitypdf.com/documentation/headers-and-footers-pdf-t...
But the gist is to add something like the following into the Set PDF order header field between
<!--mpdf mdpf-->comment tags:And setting the header y footers via CSS like so: