Invoice Template Update Not Working

Hi,

I have updated the invoice template, however when I print invoice, the new changes are not there.

I have cleared cache in cs-cart admin, and deleted the var/cache folder.

Any other suggestions?

Hi,

I have updated the invoice template, however when I print invoice, the new changes are not there.

I have cleared cache in cs-cart admin, and deleted the var/cache folder.

Any other suggestions?

First you should try the Preview button of the document.

Also make sure you use the same document you changed.

1 Like

Hi,

Please see screenshot.

I believe this is the correct file and I cannot see a preview option


[attachment=12681:Untitled-1.jpg]

Untitled-1.jpg

You're editing the old style invoice templates. I am guessing that you have the new style email templates activated whereas you would edit them in Design->Email templates

1 Like

Hi,

I don't have Design->Email templates

[attachment=12682:Untitled-1.jpg]

Untitled-1.jpg

Okay. Since you are using old email method then you will also need to modify the invoice template for the backend which cannot be done in admin file editor.

Hi,

Thanks for your reply.

I edited the invoice in the admin file editor, then I checked the invoice.tpl through ftp and it had made my changes.

/design/backend/mail/templates/orders/invoice.tpl

Hi,

Thanks for your reply.

I've edited that one but still not making a difference. I have cleared cache in admin panel and var/cache folder.

Hi,

Thanks for your reply.

I've edited that one but still not making a difference. I have cleared cache in admin panel and var/cache folder.

May be you have 3rd party modules which can override default invoice templates?

Try

[your admin url.php]?ctpl

To clear the template cache or move/remove the var/cache directory manually.

Thanks,

I have got it working now

Thanks,

I have got it working now

What was the reason?

Hello, I know this is an old post but I d really like your help with this cause i think i ve tried everything so far and its not working.

I have created an addon that gives the admin the ability to send an order details to a local carrier in our home country. I am using custom database tables to store these details and i dont temper with shipping mechanism built in cs-cart. Everything is working so far and the order is being sent successfully!

I need to modify the email notification sent to the customer when I change the orders status to "Complete". I want to add a line that mentions my carriers tracking number and a link where the customer can go to track it.

I first noticed that I need to temper with invoice.tpl so I tried to add this tpl hook:

design->themes->responsive->mail->templates->addons->myaddon_name->hooks->orders->invoice.post.tpl

The content of this file is this

Tracking Number:
TEST NUMBER

So I try to alter the template with a static value first, so I know that is the right file to hook into. I delete the folder var->cache manually. I change my order status to 'complete'. Email is sent and Nothing happens. My email template (customers email) is exactly the same.

I then tried to add this file as well

design->backend->mail->templates->addons->myaddon_name->hooks->orders->invoice.post.tpl

put in the same content. Deleted cache folder again. Sent another email. NOTHING HAPPENS

I tried to pull a wonder my adding this file as well because i spotted this in a forum post

var->themes_repository->responsive->mail->templates->addons->myaddon->hooks->orders->invoice.post.tpl

NOTHING CHANGED

I have a cs-cart 4.7.2 version installation just to develop various addons. I have disabled all other addons just to make sure nothing overrides my invoice template.

What else do I freekin need to do?

Thanks in advance

Is there a reason you don't use the API to update the tracking number/carrier as a "shipment" and then let the system add the shipping info in the notification?

And I will ask the obvious... You are using the old style email template setting rather than the new/editable emails, correct?

Yes, what do you have in Settings -> Appearance -> Email templates mode ?

Hi! Can you help me please? I`m trying to edit invoice template Design->Templates --=> responsive / mail / templates / orders / invoice.tpl

I need to shift the logo-image a little bit lower:

{$logos.mail.image.alt}

I have tried to implement “margin-top 10px”, but it didnt work. Im using v4.3.10-jp-1 version

Hi!

Please try to add your style into the style property:
style="padding-bottom: 3px;"
of the mentioned line:

<td align="left" style="padding-bottom: 3px;" valign="middle"><img src="{$logos.mail.image.image_path}" width="{$logos.mail.image.image_x}" height="{$logos.mail.image.image_y}" border="0" alt="{$logos.mail.image.alt}" /></td>

of both the admin panel and the theme templates:
design/backend/mail/templates/orders/invoice.tpl
design/themes/responsive/mail/templates/orders/invoice.tpl