VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: tevez15 on September 13, 2013, 19:25:37 PM

Title: Order confirmation - template problem
Post by: tevez15 on September 13, 2013, 19:25:37 PM
Hi..

I have a problem with the template in email. I change the invoice_items.php, and when I go to orders in backoffice, I see the changes I made in that file (I add a line with a new taxes).
Whatever, the email template use this file to create the table with the products and total's etc, but in email nothing changes.

Anyone can help me?
Title: Re: Order confirmation - template problem
Post by: Maxim Pishnyak on September 14, 2013, 10:04:30 AM
Did you use template overrides or you didn't?
Title: Re: Order confirmation - template problem
Post by: tevez15 on September 16, 2013, 10:19:33 AM
Quote from: Maxim Pishnyak on September 14, 2013, 10:04:30 AM
Did you use template overrides or you didn't?

Yes a lot of then  ;)
Title: Re: Order confirmation - template problem
Post by: Maxim Pishnyak on September 16, 2013, 17:08:06 PM
Ah, I'm sorry. You're talking about email. Well, we discussed this on forum. Try to find these threads with the help of forum search button. In short, online inline CSS rules could be used for customized emails.
Title: Re: Order confirmation - template problem
Post by: tevez15 on September 17, 2013, 10:16:58 AM
never talked about css, was speaking in PHP simply does not appear new variables that appear in the administration.
I already have several years of this and know exactly what to emails only uses inline.


I have new values to insert on email template, I add the var. On back, when see as PDF, he show's me the new line (tr td with my code), but in email that var nerver show.
Title: Re: Order confirmation - template problem
Post by: Maxim Pishnyak on September 17, 2013, 10:55:34 AM
What file did you edit? Is it in invoice folder of the template overrides?
Title: Re: Order confirmation - template problem
Post by: tevez15 on September 17, 2013, 12:34:59 PM
Started by override folder, but it did not work as I was testing the invoices folder .. and continued to not give.

When I delete all the code it does not appear in the email, but if you change something, for example if I put the word "test", it does not appear in the email, but the table is ok.

I'll take a print-screen and has put here.

[attachment cleanup by admin]
Title: Re: Order confirmation - template problem
Post by: Maxim Pishnyak on September 17, 2013, 19:51:36 PM
Quote from: Maxim Pishnyak on September 17, 2013, 10:55:34 AM
What file did you edit? Is it in invoice folder of the template overrides?
Title: Re: Order confirmation - template problem
Post by: tevez15 on September 18, 2013, 10:44:26 AM
Quote from: tevez15 on September 13, 2013, 19:25:37 PM
Hi..

I have a problem with the template in email. I change the invoice_items.php, and when I go .........
Title: Re: Order confirmation - template problem
Post by: Maxim Pishnyak on September 18, 2013, 20:29:30 PM
Attach your file, please.
Title: Re: Order confirmation - template problem
Post by: tevez15 on September 19, 2013, 10:15:17 AM
The file has changes made ​​by me ... rename the ext to .php

The extra line in the file has a validation, but this validation is working in backoffice.

[attachment cleanup by admin]
Title: Re: Order confirmation - template problem
Post by: Maxim Pishnyak on September 20, 2013, 13:04:05 PM
Your VM version?