Nelson Minica Posted September 15, 2011 Share Posted September 15, 2011 I am trying to override the hookNewOrder function from modules/mailalerts/mailalerts.php I created override/modules/mailalerts/mailalerts.php I've tried everything I could think of... MailAlerts extends MailAlertsCore newMailAlerts extends MailAlerts MailAlerts extends MailAlerts MailAlerts extends Module All with no effect, can't find any errors. What am I doing wrong? Thanks! Link to comment Share on other sites More sharing options...
Nelson Minica Posted September 15, 2011 Author Share Posted September 15, 2011 think I found a workaround, duplicating and renaming the module seems to work fine and will protect it from future updates Link to comment Share on other sites More sharing options...
thedoc Posted June 17, 2018 Share Posted June 17, 2018 Version php : 1.6.1.19 override/modules/mailalerts/mailalerts.php In your file, try it : class MailAlertsOverride extends MailAlerts { ... } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now