Closed (cannot reproduce)
Project:
Ubercart Register Invoice Templates
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
16 Dec 2012 at 10:03 UTC
Updated:
18 Jun 2013 at 07:32 UTC
I am running UC 2.10 for D6, and it does not seem to behave as expected in http://www.ubercart.org/docs/developer/246/invoice_system anymore :
templates are totally ignored wherever they are put, they can even be deleted without any effect (invoices are normally issued with the default design)
I asked for some support un the ubercart.org forum, but ne replaies yet
http://www.ubercart.org/forum/support/32592/cannot_change_invoice_templa...
Has UC2 changed recently to work as UC3, not allowing anymore to change templates without writing a module, or using this one?
Would this module work for D6?
Thanks
Comments
Comment #1
DanZ commentedThis module is not available for Drupal 6 because I am not familiar with Drupal 6 or Ubercart 2 and not set up to test it.
If someone wants to backport this module, I would would be happy to add them as a co-maintainer to support that effort.
If someone can come up with the backported code but is not prepared to be a co-maintainer, that still might work. Post here so we can figure something out.
The code is small and straightforward. It would probably involve little more than changing to the Drupal 6 and Ubercart 2 versions of the hook implementations. In particular, you'd need to use the Ubercart 2 version of hook_uc_invoice_templates() and the Drupal 6 version of hook_theme(). You'd also have to modify uc_register_invoice_find_invoice_templates() to search using the Drupal 6 naming scheme for template files. Of course, you'd also have to update the help information and .info file.
Comment #2
DanZ commentedGiven that Drupal 6 will be unsupported in a few months, is this worth doing?
Comment #3
jvieille commentedFor whatever reason, invoice custom templates in a site theme directory are now recognized, so this module would be useless.
I suppose I had cache clearing issues.
Comment #4
jvieille commented