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

DanZ’s picture

Title: Is this for D6 / UC2 too? » Backport to Drupal 6 / Ubercart 2
Component: Miscellaneous » Code
Category: support » task

This 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.

DanZ’s picture

Given that Drupal 6 will be unsupported in a few months, is this worth doing?

jvieille’s picture

For 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.

jvieille’s picture

Status: Active » Closed (cannot reproduce)