Product
Store demo
Showcase
Features
Why for developers
Why for store owners
Industries
Fashion
Health & Beauty
Food & Beverage
Automotive
Industrial & Scientific
Furniture
B2B eCommerce
International
Downloads
Download nopCommerce
Marketplace
Translations
Copyright removal key
Mobile application
Web API
Support & services
Training
Documentation
Community forums
Premium support services
Request a quote
Contact us
Partners
English
English
Español
Deutsch
Russian
Français
Italiano
Português
Türkçe
简体中文
日本語
Tiếng Việt
Get started
Shopping cart
My account
Log in
Register
Home
>
Forums
>
General
>
Development
>
NopCommerce 4.3 extend model and use it in child theme view
NopCommerce 4.3 extend model and use it in child theme view
Previous
1
2
3
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
gatisc
Total Posts:
21
Karma:
145
Joined:
10/21/2019
Location:
Latvia
Posted:
3 years ago
I have the same exception I wrote before. I don't give up!
gatisc
Total Posts:
21
Karma:
145
Joined:
10/21/2019
Location:
Latvia
Posted:
3 years ago
Maybe it is because namaspace in plugin is not visible to child theme view?
motoTed
MVP
Certified Developer
Total Posts:
579
Karma:
4849
Joined:
10/23/2015
Location:
United States
Posted:
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
gatisc
Total Posts:
21
Karma:
145
Joined:
10/21/2019
Location:
Latvia
Posted:
3 years ago
No it is in plugins. Yes it compiles, although in view is an error.
motoTed
MVP
Certified Developer
Total Posts:
579
Karma:
4849
Joined:
10/23/2015
Location:
United States
Posted:
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
gatisc
Total Posts:
21
Karma:
145
Joined:
10/21/2019
Location:
Latvia
Posted:
3 years ago
It is already there.
motoTed
MVP
Certified Developer
Total Posts:
579
Karma:
4849
Joined:
10/23/2015
Location:
United States
Posted:
3 years ago
when you run it, what happens when you try to view a product? does it output an error to the browser?
gatisc
Total Posts:
21
Karma:
145
Joined:
10/21/2019
Location:
Latvia
Posted:
3 years ago
af1racing, we are somewhere on different way, let's continue next day, we are 9:27 PM. You are cool!
orionvx
Total Posts:
5
Karma:
25
Joined:
1/1/2020
Location:
Turkey
Posted:
3 years ago
I have the same namespace error. Did you find a solution?
gatisc
Total Posts:
21
Karma:
145
Joined:
10/21/2019
Location:
Latvia
Posted:
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.
Previous
1
2
3
Still have questions or need help?
.
Premium support services
.
Get dedicated support from the nopCommerce team with a guaranteed response within 24 hours.
.
Online course for developers
.
Get the practical and technical skills you need to run and customize nopCommerce websites.