I need to customize a Model in a third party extension.
I need to override the Model so I would not be editing the source files. I would also like if in case there is an error for whatever reason coming from my Model, it could be easily disabled by someone with no programming skills.
I had the idea of, perhaps, somehow putting my edited Model in my custom module, declaring it to be used instead of the default one, but if I disable my custom module (containing the Model) from the Admin panel, the default Model would be used.
Is this possible? And if not: What is the preferred way of overriding a third party Model?
ifconfigis not available forconfig.xmlelse it would be easy to rewrite your model conditionally by just xml. – Minesh Patel May 09 '17 at 12:18