Closed (duplicate)
Project:
Ubercart
Version:
6.x-2.0-rc3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Jul 2009 at 21:11 UTC
Updated:
7 Jun 2010 at 11:18 UTC
Jump to comment: Most recent file
Comments
Comment #1
andreiashu commentedHi cedarm,
Please go to this issue and try to contribute there: #295423: Move invoice templates to module based .tpl.php files.
Marking this as duplicate.
Comment #2
cedarm commentedGrr. That patch is complicated by other motives. I'll post a note there though.
Comment #3
cedarm commented[edit] Ignore this patch.
Comment #4
cedarm commentedCouldn't wait for the other issue and went live with a new site using the original patch. Later we found that the order invoices in the store admin weren't using our custom templates in the theme because $theme wasn't yet initialized. Added init_theme() before code that uses $theme.
Note: path_to_theme() can't be used because we're calling uc_order_load_invoice() from a theme function.
Comment #5
joachim commentedThis is a nice quick hack while waiting for that other issue to land.
It's worth mentioning that the faux-template files have to be in YOURTHEME/uc_order_templates/ to be found.