Have separate template for email

0
Hi, Just wondered if you could help me. Is it possible for me to have a different template for email and pdf quotes? I would like to have a simple email which tells the customer the full quote is attached as a PDF. I do not see there is an option for this from the 'Template' section in the control panel. Could you tell me what file handles generating the email and attaching the PDF as I guess I could code in my email message. Many thanks.
Responses (7)
  • Accepted Answer

    Wednesday, October 05 2016, 04:57 PM - #Permalink
    0
    hello

    at the moment it's not possible to have separate templates. this would require a bit of custom coding work.
    the (main) file handling this is found in /models/invoice.php
    The reply is currently minimized Show
  • Accepted Answer

    luckysoft
    luckysoft
    Offline
    Thursday, October 06 2016, 10:24 AM - #Permalink
    0
    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

    Thursday, October 06 2016, 10:30 AM - #Permalink
    0
    thanks for sharing.
    we already have this function planned for next version.

    thanks anyway!
    The reply is currently minimized Show
  • Accepted Answer

    luckysoft
    luckysoft
    Offline
    Thursday, October 06 2016, 12:06 PM - #Permalink
    0
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, October 06 2016, 12:08 PM - #Permalink
    0
    yes my friend, but things take time :)

    there are many other features that people asked and that we included in 2.0 and 2.1... it's lots of times to build all these new things...
    but don't worry we WILL add this in the next update!

    THANKS!! :)
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, November 02 2016, 04:00 PM - #Permalink
    0
    Sorry for the slow reply, thank you for your messages. I have installed the latest release but cannot see that this functionality has been added so I have done what luckysoft suggested and this works perfectly.

    Many thanks luckysoft
    The reply is currently minimized Show
  • Accepted Answer

    luckysoft
    luckysoft
    Offline
    Wednesday, November 02 2016, 07:11 PM - #Permalink
    0
    Your welcome Peter :)
    The reply is currently minimized Show
Your Reply