NopCommerce 4.3 extend model and use it in child theme view

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 years ago
I have the same exception I wrote before. I don't give up!
3 years ago
Maybe it is because namaspace in plugin is not visible to child theme view?
3 years ago
Your ArcaneProductOverviewModel file is in the Nop.Web project, correct?

Try a clean and rebuild.  If Visual Studio only shows that error in the cshtml file then try running it and see what happens when you reach a view with _ProductBox.cshtml

Other things to try: https://stackoverflow.com/questions/3304741/getting-type-or-namespace-name-could-not-be-found-but-everything-seems-ok/3304899
3 years ago
No it is in plugins. Yes it compiles, although in view is an error.
3 years ago
gatisc wrote:
Maybe it is because namaspace in plugin is not visible to child theme view?


Ah, this is in a plugin?  Try copying the built plugin from:
C:\Users\yourname\Source\Repos\somefolder\nopCommerce\src\Presentation\Nop.Web\Plugins

to:
C:\Users\yourname\Source\Repos\somefolder\nopCommerce\Presentation\Nop.Web\Plugins

or however your directory is setup
3 years ago
It is already there.
3 years ago
when you run it, what happens when you try to view a product?  does it output an error to the browser?
3 years ago
af1racing, we are somewhere on different way, let's continue next day, we are 9:27 PM. You are cool!
3 years ago
I have the same namespace error. Did you find a solution?
3 years ago
Hi!
No I decided to make changes in original code.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.