Aishwarya Shiva
Aishwarya Shiva

Reputation: 3406

Nopcommerce view not updating

I updated the view CategoryTemplate.ProductsInGridOrLines in NopCommerce source code and also added custom code in CatalogController > Category action.

The breakpoints are hitting in the controller code but the View breakpoints are disabled. It says a copy for the view is found and source code is newer.

The controller is sending the updated data but the view is not rendering it the way I want. I also tried adding the random string on the view and it is still not showing that string on the page or in its source code in the browser.

I cleaned and rebuilt the solution. I cleaned the NopCommerce cache. I published it to Azure and restarted the app. But still, the new view updates are not visible. What should I do?

UPDATE

Looks like there is some problem with NopCommerce caching system. I returned the view by mentioning the View file path directly and it worked. I tried clearing NopCommerce cache from admin but it didn't work.

Upvotes: 3

Views: 435

Answers (1)

Divyang Desai
Divyang Desai

Reputation: 7866

While working view pages in nopCommerce, bear in mind, there are multiple places from view pages being served; inside plugin (if you'd have override any), default view pages and theme pages.

Default nopCommerce code uses view pages from root folder(i.e. from Views folder); however, if you've enabled the theme, it will use pages from theme folder. So, make sure you're referring right pages.

Upvotes: 3

Related Questions