Overriding default invoice template

Created on 14 May 2020, over 4 years ago
Updated 5 September 2023, over 1 year ago

Is it possible that when trying to override the template for a pdf invoice in a personal subtheme the template is not getting picked up? I am having an up to date drupal installation with commerce also up to date.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇧🇪Belgium w van casteren

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇦🇹Austria mvonfrie

    I have a very similar problem (please tell me if I should create a separate issue), using Drupal 10.1.2, Commerce 2.36.0, Commerce Invoice 2.0.0-RC3 and Entity Print 2.13.0.

    My custom template in the site theme works perfectly fine when using the Entity Print route /print/pdf/commerce_invoice/1. But when I click on the module provided download link using its own route /invoice/1/download the PDF gets generated using the default template from the module instead of my custom template. Here it doesn't matter if I click the link from the admin view (admin theme) or the user view (custom theme).

Production build 0.71.5 2024