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,

Im trying to create a new payment plugin for nopCommerce 2.0.

1. I copied the Nop.Plugin.Payments.Manual plugin and renamed everything from "Manual" to "NewPayment". Just to have a starting point.
2. Copied the new plugin folder (Description.txt, .ddl, .config, .pdb) to the Plugins folder of the website

The new payment plugin shows up in both in Plugins and Payments methods in the Admin area.

I get the following error when i click Configure for the new payment method:

"The controller for path '/Admin/Payment/ConfigureMethod' was not found or does not implement IController.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The controller for path '/Admin/Payment/ConfigureMethod' was not found or does not implement IController.

Source Error:


Line 14:     if (!String.IsNullOrEmpty(Model.ConfigurationActionName))
Line 15:     {
Line 16:         @Html.Action(Model.ConfigurationActionName, Model.ConfigurationControllerName, Model.ConfigurationRouteValues);
Line 17:     }
...."
12 years ago
Hi!
I have tried to write a payment module for Nop 2.0 and I get the same error as you got, any solution to this problem? What can I have missed?

Regards Markus
12 years ago
toomz wrote:
I copied the Nop.Plugin.Payments.Manual plugin and renamed everything from "Manual" to "NewPayment".

How exactly did you copy it? Usually I do it the following way:
1. Add a new empty project to the solution
2. Copy files from some exisitng plugin project to the new one. In this case all "Copy local" and "Built Action" properties of appropriate files will be persisted
3. Then rename plugin (for example 'Manual' to 'SomethingNew'). Also don't forget to rename directories
12 years ago
I´m facing the same error, I believe I have tried all possible ways also to create a new empty project and copy the files to the new project and rename all folders etc. It could be nice if someone knew the correct way doing this and made a guide.

I got one plugin to work but I don´t know why it´s working. All other projects I made since is not working.
12 years ago
I have copied an existing plugin directory, renamed the solution and all directories (and also all variables etc.), compiled the solution in both VS and with deploy.bat and it compiles without any problems. The error message shows up when I click on 'configure' or try to use it in our shop.

Regards Markus
12 years ago
Anyone who got a new payment or shipping plugin to work at all?

I´m more into it´s a plugin install problem because I can´t see where it´s wrong in the plugin i make, they look 100% with all correct names, views and controllers.

If I don´t use views it´s working perfectly, I made a shipping plugin and it works great except in the configure view. So I just set the settings from the Settings - All settings menu and then I can use the Shipping method i made.

Best regards

TCH
12 years ago
When I make a build of my new payment plugin it also makes new files of the references listed below:
Nop.Core
Nop.Data
Nop.Servcies
Nop.Services.XmlSerializers
Nop.Web.Framework

When I only upload and install my new plugin the configure and Payment view are not working and I get an error(earlier menthioned in this thread).

BUT if I upload the new files listed above then everything works perfectly, how come?

I wonder if I´m doing something wrong when i build my plugin or is it the way to install a plugin?

Just now i´m happy that I can test and continue my projects :-)

Br

TCH
12 years ago
have a look at the following plugin creation tutorial - http://csharpwebdeveloper.com/writing-nopcommerce-2-plugin
12 years ago
I get this error when trying to configure ANY of the current plugins... what to do?
12 years ago
bfranklin825 wrote:
I get this error when trying to configure ANY of the current plugins... what to do?


When changing something in the views (Configure.cshtml or paymentinfo.cshtml) of a plugin, I get the same error then I just upload these files to bin and then I can see the updated configure:

Nop.Core.dll & .pdb
Nop.Data.dll & .pdb
Nop.Servcies.dll & .pdb
Nop.Services.XmlSerializers.dll & .pdb
Nop.Web.Framework.dll & .pdb

I don´t know why this is necassery and what the files do.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.