How to Override View in Nopcommerce?

怎甘沉沦 提交于 2019-12-12 18:24:00

问题


I am creating one plug-in using data-access and widget in nopCommerce.

In that i have created my widget that i want to display on ProductDetails Page by replacing (overriding) Product-Image & its thumbs.

But i don't know how to override views and even don't know is it possible in nopCommerce or not.

Please can anyone help me.

If possible please provide an example as well, so that i can understand actually how it overrides in nopcommerce.


回答1:


You can override views using custom themes (not plugins).

For example, to override product details page, copy appropriate cshtml files into \Themes\{YourThemeName}\Views\Catalog\{YourProductTemplateFile.cshtml} and then customize it for your needs.



来源:https://stackoverflow.com/questions/19996373/how-to-override-view-in-nopcommerce

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!