How do I overwrite plugin views via a view defined in a theme?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
Hi,

I'm working on a project whereby i want the theme to overwrite the default NivoSlider's html layout but cant seem to figure out how to do it using a view from within my theme.

I've come across this article by pronopcommerce.com which describes what i'm trying to do under the 'The Better Method - "Theme Override"' section but no matter what I try the view just doesnt get picked up by nopCommerce.

I currently have the theme enabled, with the view under
nopCommerce\Themes\THEMENAME\Views\WidgetsNivoSlider

with the view name set as
Nop.Plugin.Widgets.NivoSlider.Views.WidgetsNivoSlider.PublicInfo.cshtml

If anyone can point out what i'm doing wrong it would be much appreciated.

And thank you for taking your time to read my question.
6 years ago
Yes you can.

Please follow this link.

https://www.nopcommerce.com/boards/t/49940/nopcommerce-40-how-can-i-override-nopviewcomponent.aspx.

Furthermore, you should maintain folder structure in you plugin.

For an ex
Themes/default clean/Views/shopping cart/any view.cshtml

You have to create same structure like that in your plugin.

Plugin ovveride view structure.

Themes/default clean/Views/shopping cart/any view.cshtml

Than way anyview.cshtml page is override.

However, you should follow above url for put some code in route provider and somewhere else.

Hope you will understand..!!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.