Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
This module fills a gap between Commerce Invoice and Print modules.
It allows developers to create in their theme a template file to be used for and only for Drupal Commerce order invoice print pages.
How-to
After configuring both Print and Commerce Invoice modules, copy the print.tpl.php template file from print module's folder to your custom theme's folder, and rename it following patterns (by ascending preference order):
print--invoice.tpl.php will apply to all invoice print pages
print--invoice-[order-id].tpl.php will apply to invoice print pages for order of id [order-id]
print--html--invoice.tpl.php will apply to all invoice print pages using HTML format (only format supported right now by this module)
print--html--invoice-[order-id].tpl.php will apply to invoice print pages using HTML format for order of id [order-id]
The order variable is passed to the template and available under $commerce_order.