creating invoice template

Posts: 78
Joined: 01/22/2008

Hi . . . need a little help here.

I'm trying to create a new invoice template. I read the documentation on this where it says:

1. Browse to the directory ubercart/uc_order/templates.
2. Copy either customer.itpl.php or admin.itpl.php to a new file and rename it (you must keep the .itpl.php file extension).
3. Modify the new file to your heart's content.
4. Choose your new template in the appropriate settings menus.

But when I do this, the new template is not an option in configuration/order setting / invoice template drop down picker--the appropriate settings menu.

Am I missing a step?

OK--Oddly, even if I delete those two templates from the uc_ordrer/templates foler--admin.itpl.php and customer.itpl.php--the invoice still appears in my online site and it still appears when I email the invoice with the original formatting.

I've tried clearing the database cache. I can't see another /templates folder in my install.

OK--I see my problem. Somehow in moving my site or in upgrading Ubercart I created a directory called old_ubercart. I assumed that this would nullify that module and use the new module install with the folder name ubercart. How much trouble have I created for myself? What should I do? Should I delete that module directory?

Dan

Posts: 195
Joined: 08/13/2007
Cool profile pic award.Getting busy with the Ubercode.Internationalizationizer

ALWAYS delete/overwrite old .module files. The module system finds them wherever located under modules/*.

1.Backup it localy, or out of your Drupal root dir. In fact, backup whole website Eye-wink.
2.Delete complete folder.
3.Run update.php
4.Upload modifications (like custom .tpl files)

Luck,

Kees

Posts: 78
Joined: 01/22/2008

that worked! thanks.

Posts: 195
Joined: 08/13/2007
Cool profile pic award.Getting busy with the Ubercode.Internationalizationizer

Great Smiling