Hi
I will be the first to post for help.
Ok. I updated to ubercart 2.4. Now I am trying to get my custom order invoice to work in the new configurations. I read through the documents Changing invoice templates for Ubercart 2.3 and later. The document is not the clear to me.
The issue is neither the admin, customer or Invoice or Invoice Printable screen are actually using the templates chosen. So what I am doing wrong.
This is what i have done.
1. converted my 3 old itpl.tpl to new tpl.pl format as follows
ctbylights-customer.itpl.php to ctl-customer.tpl.php - for Conditional Action invoice email to customer
ctbylights-admin.itpl.php to ctl-admin.tpt.php - for Conditional Action invoice email to admin
ctybylights-printinvoice.itpl.php to ctl-printinv.tpl.php - for the Order Settings On-site invoice template
2. Since I have my own templates need to create the a module to implement the hook. So I created the following module uc_ctl_templates. Create the info file and the .module file. This is what I have in it the module
function uc_ctl_templates_uc_invoice_templates() {
return array('ctl-admin', 'ctl-customer','ctl-printinv');
}3. Upload and Enable the module
4. I see the templates options available in both the Conditional actions and Order Setting. So I set them accordingly.
Need help quickly if possible planning to go live with this site next week.
Thank you,
Pam
Comments
Update UC new invoice template
Ok I finally got to work but not like it was suppose to. One thing I have wrong is the custom tpl.php need to have uc_order in the name. The other issue is it does not work unless you put the templates in the uc_order/templates directory. Once I made those changes the custom templates started being used. I would think this is bug for the whole idea was to move the custom templates to the themes directory. Now have to figure out why PayPal not working after the update.
Thank you,
Pam
Hey there I just updated my
Hey there I just updated my ubercart version and like you my invoice to clients changed and now I can't figure out how which file to change.
I read somewhere that in order to use a different template you need to copy the admin.itpl.php or customer.itpl.php file and give it a different name, and then just choose the template in the order settings inside the admin area of your site.
I did the following but I don't see my template appear in the choices inside of order settings, what am I doing wrong??