Hi guys,
I’ve been trying to add the Account Name of which the opportunity is assigned to in the email template that gets sent out.
I have successfully tested this but now I am trying to make is upgrade-safe. I have created a custom/modules/include/language/en_us.notify_template.html with the additional flag “ACCOUNT_NAME” and added a call to add this to the template in modules/Opportunities/Opportunity.php
i.e. $xtpl->assign(“ACCOUNT_NAME”, $this->account_name);
This works great. I can see the account name on the opportunity record, however the only problem is when I try to copy the Opportunity.php file to custom/modules/Opportunities the system does not pick it up (it is owned to apache etc)
So - my questions are
- Is the Opportunity module able to be modified in this was?
- If it is, do you know what I am doing wrong?
Kind Regards,
Aaron