Email template for quotes is not working on 1.5.x

Email template for quotes is not working properly. Apparently it is correct when the template is created, but at the time of making use of it, all fields of the sending of the email appear blank.

Instead, for invoices it works.

My installation is made on:

Apache 2.2
PHP 7.0

Regards.

SOLUTION

Tim_Price wrote:

The solution is to edit application/modules/mailer/views/quote.php to remove the single quotes around

<?php echo $email_template ?>

in line 18 (I’m running InvoicePlane 1.5.0).

It would be very helpful if you could post an example of how your template looks like…

QUOTES


This form should be filled and not empty.

INVOICES

I’ve been using the same template for years.

Ah okay, now I understand the actual problem.

Added a bug report for that: https://development.invoiceplane.com/browse/IP-528

I wish that the problem can be solved in the next actulization 1.5.3

Greetings and thanks for all the effort.

Same here

1.5.2

PHP 7.1

Also tested on PHP 7.0 and 5.6

Are there any errors displayed in the console? You may switch on the debug mode to see some output.

Hello Kovah

DEBUG is on, but no erros on console

Log seens to be ok

If you need, log is attached
log-2017-05-10.php (5.7 KB)

Hi to all.
When I try to send an email of a quote, the <textarea> does not replicate the content of the template selected above.
The javascript console says:

Uncaught TypeError: Cannot use 'in' operator to search for 'length' in null
    at c (dependencies.min.js:1)
    at Function.each (dependencies.min.js:1)
    at inject_email_template (scripts.min.js:1)
    at HTMLDocument.<anonymous> (4:293)
    at j (dependencies.min.js:2)
    at Object.fireWith [as resolveWith] (dependencies.min.js:2)
    at Function.ready (dependencies.min.js:2)
    at HTMLDocument.h (dependencies.min.js:1)

Could I have made a mistake in the template settings?
(sorry for my pedestrian english)

Hi everyone,

The solution is to edit application/modules/mailer/views/quote.php to remove the single quotes around

<?php echo $email_template ?>

in line 18 (I’m running InvoicePlane 1.5.0).

I found this by comparing the code in invoice.php (which works) with quote.php (which doesn’t).

Anyway, now the template text is copied to my quote emails correctly…

1 Like

Good news!

I’ll try tomorrow with your solution.

Regards.

Congrats!! Email template for quotes is working again.

Thank’u so much.

Cheers.

This issue has been fixed in v1.5.3 https://development.invoiceplane.com/browse/IP-528

Hey Guys,

I’ve tried all of the above and I’m still having the same issue.

Any other fixes?

Cheers

Dale

Hi to all.
I tried this solution and all works fine.
Thanks a lot.