Nopcommerce 4.0 - Override library Nop.Services.dll,Nop.Web.exe, Nop.Web.Framework.dll

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
Dear all,

I have edited the source code and recompiled it. Can I write a plugin to override 3 libraries:
- Nop.Services.dll
- Nop.Web.exe
- Nop.Web.Framework.dll

When I install the new plugin I will use 3 override libraries. When I do not install the plugin I use the default library.

Thank you!
6 years ago
Just use dependency injection to override services.

In your plugin override default nop services and register them using dependency registrar.
If you don't want to override if the plugin is not installed, just check if plugin is installed (inside of dependency registrar).
6 years ago
Hello,

You can look at following conversation https://www.nopcommerce.com/boards/t/17601/override-method-in-pictureservice-from-a-plugin.aspx

Hope it will help
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.