nop 2.0 Plugin

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

Please let us know whether Nop Home Page Sliders 2.20 version is available for download or not? if yes please let us know from where to download the same.


Regards,
Amit Shah
12 years ago
Hi,

Please let us know whether Nop Home Page Sliders 2.20 version is available for download or not? if yes please let us know from where to download the same.


Regards,
Amit Shah
12 years ago
toamitshah wrote:
Hi,

Please let us know whether Nop Home Page Sliders 2.20 version is available for download or not? if yes please let us know from where to download the same.


Regards,
Amit Shah



Please download from this link

https://www.nopcommerce.com/versions/18/nopcommerce-210.aspx

just change supportversion to 2.20 from  Description.txt

and after that check it properly...
12 years ago
Dear Dharmik,

Thanks for your prompt reply. It helped me a lot. I am able to install and integrate this plugin.

Also, can you please advice me whether this plugin is free to use for my e-commerce portal for commercial use?. I mean do i need to buy any license to use it?
12 years ago
toamitshah wrote:
Dear Dharmik,

Thanks for your prompt reply. It helped me a lot. I am able to install and integrate this plugin.

Also, can you please advice me whether this plugin is free to use for my e-commerce portal for commercial use?. I mean do i need to buy any license to use it?


If it is free to download from the extensions section then you should not need to purchase a license for it. You cannot repackage the code and sell it as if you own it, but you can use it on your website.
12 years ago
Hey Skyler,

Thanks a lot for your reply. I got the point here clearly. Thanks again.

Also do you know any such other plugin for home page slider which is configurable like this from admin panel.


Regards,
Amit Shah
12 years ago
oursure wrote:
have a look at the following plugin creation tutorial - http://csharpwebdeveloper.com/writing-nopcommerce-2-plugin
The link provided not working. Can I find the tutorial somewhere else?

Try this one http://blog.csharpwebdeveloper.com/2011/09/10/writing-a-plugin-for-nopcommerce-2-x/
12 years ago
7Spikes wrote:
Hi guys,

As promised we did dig into the problem.
The real problem is not that easy to explain but we will give our best.

Problem:

In short it is related to how MVC works and partly to the plugin framework in nopCommerce.
When a new plugin is dropped in the Plugins folder and is installed into nopCommerce, even if the plugin has registered routes for its controllers, these routes will not be working as the MVC framework couldn't find the new controller types and couldn't instantiate the requested controller. That's why you get these nasty errors i.e "Controller does not implement IController" or even a more descriptive one "We're sorry, there is no Web page matching your request".

So here is what is actually going on.

1. When you start your nopCommerce application the MVC framework cashes all controller names in a file located in your ASP.NET Temporary folder. The location may differ but you can check in one of these locations:

C:\Users\<User Name>\AppData\Local\Temp\Temporary ASP.NET Files\root
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\

In the root folder there will be many other folders with fancy names like 03b0be9d or 54c3dd3a but you need to order them by date modified and open the latest one (this should be the one of your currently running application). Inside it there will be another folder with similar name and you need to open it as well. Now in the UserCache folder you will see a file MVC-ControllerTypeCache.xml.
This file contains all MVC registered assemblies and controllers in them and is used by MVC to resolve controller names.

On my machine the location looks like this (I use IIS Express):
C:\Users\<UserName>\AppData\Local\Temp\Temporary ASP.NET Files\root\54c3dd3a\99892c19\UserCache\MVC-ControllerTypeCache.xml

2. Now if you drop your new plugins to the Plugins folder and install them, you will notice that the newly installed plugin assembly and controllers are missing in the MVC-ControllerTypeCache.xml file.
That’s why MVC couldn't instatiate your controllers and you get these errors.
Note: Even manually restarting your web server(application) doesn't help this .xml file to be updated!

Solution:

It looks like forcing a kind of a restart(recompiling) of the application will lead to updating the MVC-ControllerTypeCache.xml file with the latest plugins installed.
There are many ways to force a restart(recompiling) in your web application as the ASP.NET engine watches for changes in several places i.e the bin folder of the application. But the simplest and easiest way is just to make a small change in the Global.asax file.
You can do this by opening the file in Notepad and simply add a blank space at the end of the file and then save it.
The Global.asax file is located in the main folder of your application(the same folder where the Web.config file is).
Make sure the Global.asax file has an updated date modified.

You should now be able to open the routes in your plugins.

Hope this helps!


7spikes = sexyness... you rule man, thanks for the solution
12 years ago
Hi,

I have a challenging project that I'm working on which requires me to display a custom page (public) within nopCommerce. This page will display information from custom tables and cross reference existing tables etc.

After doing some reading on the subject of extending and customising nopCommerce I tried my hand at creating a plugin based on the IMiscPlgin interface. I was able to see the plugin and install it. The plugin at this stage did not do much.

This is where I'm a bit lost! I essentially need a new menu item within the admin section to setup the custom tables say under the Catalog menu for argument sake. I also need the ability to automatically create a link to this page within the public area. This one is not a show stopper but a nice to have requirement.

Will the plugin approach suit my requirements to extend nopCommerce. I want the ability to customise nopCommerce and have a plugin approach to newer versions of nopCommerce going forward.

Alain
11 years ago
etws14 wrote:
Hi Everybody, There is a good news for all of you whos facing this problem.. Try to remove all the temporary files located in Temporary ASP.NET Files and run again.. Hope this will help you


I've published my shop on the host. So that, i can't remove all temporary files.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.