Is it possible to override the Opportunity.php file in modules/Opportunities to customize the set_notification_body function

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

  1. Is the Opportunity module able to be modified in this was?
  2. If it is, do you know what I am doing wrong?

Kind Regards,
Aaron

Anything at all?

Same question in 2020