adding a new Rasor page to nopCommerce

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 12 años
I'm attempting to add a new page to nopCommerce that uses the existing layout.

To start at a 'known good' point, I created a 'Test.cshtml' page inside of the Views/Shared/ShoppingCart folder, and copied the text from Cart.cshtml exactly.

However, if I try to access this page, I'm getting a 'The resource cannot be found.' error.

If I rename Cart.cshtml to Cartx.cshtml, and try to access website/Cart - I get a much more complex error message starting with

"The view 'Cart' or its master was not found or no view engine supports the searched locations.

and can see that it's searching for it in several locations.

Is there a step I'm missing, to 'register' the new page in some fashion?

Am I missing something obvious?

Thanks!!
Hace 12 años
Create a view file is not enough. You should have a controller and an appropriate action. I highly recommend you to look at following site with good Getting Started manuals - http://www.asp.net/mvc
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.