Email and pdf layout

thefbi
thefbi
Offline
0
Hello,
is it possible to have a difference between email and pdf format.

If i want to send an invoice by email, i want to write a text like "hello, here is your invoice for xxx...". But i dont want this text on the pdf invoice, you see.

So if i write this text in the template for email, that text show to the pdf format too.

Regards,
Frédéric
Responses (5)
  • Accepted Answer

    thefbi
    thefbi
    Offline
    Thursday, October 06 2016, 04:06 PM - #Permalink
    0
    Hello,
    cool, nice trick. It will be great now if we can find the same trick but for each differents templates... Because i have 2-3 templates and i have not the same text on this differents templates...

    I gonna search a lot if they is a way to put this language overrides in the template files...
    The reply is currently minimized Show
  • Accepted Answer

    luckysoft
    luckysoft
    Offline
    Thursday, October 06 2016, 10:26 AM - #Permalink
    1
    This question has been asked several times by customers, too bad this function still isn't available, not even in the latest version.

    I figured it out myself, let me explain what i did so that you don't have to spend any more money fot custom coding.....

    Open administrator/com_invoices/models/invoice.php with your favorite editor

    scroll to line 960 and add :

    $message = JText::_('BODY_FOR_EMAIL_WITH_PDF');

    just below:

    $styles = "" ;
    $message = $styles . $message ;

    now save this file to your server.

    Go to your joomla adminstration page and go to Exentions -> Language -> Overrides

    Create a new override for you language administrator site (not for your website, just administrator)

    The language constant should be BODY_FOR_EMAIL_WITH_PDF

    The Text should be the text you want to show up in your mail.

    Hit Save and close and try to send a pdf by mail, this should do the trick!

    Enjoy!
    The reply is currently minimized Show
  • Accepted Answer

    luckysoft
    luckysoft
    Offline
    Tuesday, August 23 2016, 08:26 AM - #Permalink
    1
    I'm looking for the same function here, can't send out invoices to my customers like this :(

    Could you please point me in the right direction wich file to edit to get some kind of text in the email body instead of the invoice itself?
    The reply is currently minimized Show
  • Accepted Answer

    thefbi
    thefbi
    Offline
    Monday, August 15 2016, 11:54 AM - #Permalink
    0
    Hello,
    OK, it will be a great feature :)

    Regards
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, August 14 2016, 06:56 PM - #Permalink
    0
    Hello

    at this moment there's not such option in Invoice Manager, this would require a bit of custom coding work.
    The reply is currently minimized Show
Your Reply