Hi everyone, how you doing?
I'm a dino developer.. The last time that I was worked on Nopcommerce, was the version 1.9..
And I'm having a difficulty to understand MVC and RAZOR.
Alter something that already exists is easy, but, when I try to create a new file one error occurs.
What I tried to do:
First I copied the file: ~\nopCommerce_2.40_Source\Presentation\Nop.Web\Views\Catalog\CategoryNavigation.cshtml
in the same directory, the file was renamed:
~\nopCommerce_2.40_Source\Presentation\Nop.Web\Views\Catalog\TestCategoryNavigation.cshtml
In file: ~\nopCommerce_2.40_Source\Presentation\Nop.Web\Views\Shared\_ColumnsThree.cshtml
I wrote:
@Html.Action("TestCategoryNavigation", "Catalog", new { currentCategoryId = currentCategoryId, currentProductId = currentProductId })
But when I run my code the following error is showed: A public action method 'TestCategoryNavigation' was not found on controller 'Nop.Web.Controllers.CatalogController'.
What I missing?
thanks