Closed (won't fix)
Project:
Ubercart Register Invoice Templates
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Mar 2013 at 19:02 UTC
Updated:
10 Apr 2013 at 06:03 UTC
Before requesting this, would the "admin template" include the email sent to admin when a customer completes an order? I have wanted the ability to see the shipping total price in the admin email's for a long time (since D6 days).
Or would it just be easier to override the "E-mail admin checkout notification" rule and replace the action with html email and my required tokens?
Comments
Comment #1
philsward commentedYeah, looking at the option to override it with rules, the Ubercart tokens aren't "smart" enough to fully override the email template :-/ So, I guess I need the ability to override the admin templates...
Comment #2
DanZ commentedYes, you'd want to do it with a custom template.
However, this module is most useful in the situation where you want to use multiple different templates, depending on the situation.
If you only want one single invoice template, you don't need a module. Just copy the file sites/all/modules/ubercart/uc_order/templates/uc-order--admin.tpl.php to your theme directory and modify the new copy. Do not rename it. Just copy it.
The copy in your theme directory will override the stock Ubercart template. So, modify the new copy to your liking, and you're done.
At least, that's the way it's supposed to work. I've never tested it for the admin template. Give it a try and report here if it works. Check http://drupal.org/node/1867700 if you need further details about theme directories and such.
If it turns out that you need multiple admin templates, let me know here. This would be a fairly easy update to the module. I just never put that feature in because nobody ever asked for it.
Comment #3
philsward commented@DanZ, Sounds good, i'll give it a try!
Comment #4
DanZ commentedThere's been no response in a couple weeks. I assume that #2 worked.
Comment #5
philsward commented@DanZ thanks again, I honestly haven't had a chance to dive into this... (Whoops!) I'll go ahead and close the issue since I don't see any reason to have this feature included, given your suggestion.