oloccina
oloccina
Offline
0
Hello,
I wanted to override the default_email.php file
I put it into

/templates/rt_galatea/html/com_affiliatetracker/account

but to generate the emails is still being used the original file.
Am i missing something here?
I have done the same for form.php file and it works.

Thank you
Responses (8)
  • Accepted Answer

    oloccina
    oloccina
    Offline
    Thursday, June 28 2018, 02:57 PM - #Permalink
    0
    Also, in my case I don't receive the affiliate link via mail, which should be generated by this code in the email template
    <?php echo JText::_( 'YOUR_LINK' ); ?>: <?php echo AffiliateHelper::get_account_link($this->account->id); ?>
    The reply is currently minimized Show
  • Accepted Answer

    Friday, June 29 2018, 09:09 AM - #Permalink
    0
    it works slightly different for the email template. in this case, please add your modifications directly in the original default_email.php file
    The reply is currently minimized Show
  • Accepted Answer

    oloccina
    oloccina
    Offline
    Friday, June 29 2018, 11:59 AM - #Permalink
    0
    add your modifications directly in the original default_email.php file

    that means I have to re-update the file every time I update the component right?
    The reply is currently minimized Show
  • Accepted Answer

    oloccina
    oloccina
    Offline
    Friday, June 29 2018, 01:21 PM - #Permalink
    0
    What I am trying to do as a workaround is operating on the language strings instead.
    I put a language override for both english and italian (just to be sure)
    see http://nimb.ws/ag3qop (this si just the english one)

    but when I test the string used is still being picked from the default english language file, aren't language overrides supposed to work also for the emails?

    (I know I could just change the string on the default language file, but again... when I update the component that would overwritten)
    The reply is currently minimized Show
  • Accepted Answer

    oloccina
    oloccina
    Offline
    Friday, June 29 2018, 01:22 PM - #Permalink
    0
    screenshot url not working, here is the correct one: http://nimb.ws/vushjl
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, June 30 2018, 08:43 AM - #Permalink
    0
    screenshot does not work..
    The reply is currently minimized Show
  • Accepted Answer

    oloccina
    oloccina
    Offline
    Saturday, June 30 2018, 12:58 PM - #Permalink
    0
    it was just a screenshot of the language override
    attached
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Monday, July 02 2018, 10:41 AM - #Permalink
    0
    if you want, send me access and I'll take a look.
    The reply is currently minimized Show
Your Reply