Where is my own payment plugin in nopcommerce? - plugins

I'm trying to create a payment plugin in NopCommerce 3.30
I read "How to write a plugin" and "How to code my own payment method" links to create my plugin. I follow all of that steps to write my plugin. When I went to "Configuration->Payment->Payment Methods" page on admin panel, I saw only default payment plugins.
Could I ignore anything unconsciously?

Ensure that you specified right output path for your plugin (right click on plugin project -> Properties -> Build -> Output path). It should look like here: ....\Presentation\Nop.Web\Plugins\YourPluginName\
And check that you specify right SupportedVersions for your plugin in Description.txt file.

Ensure that your plugin has been reloaded and installed in /Admin/Plugin/List.

This one caught me as well.
For prosperity - You need to first go to "Configuration->Plugins" from the Administration page, locate the plugin, and click the INSTALL button before it is available in the "Payment Modules" list.
(The documentation is not entirely clear and misses this step)

Related

Not able to download Kotlin plugin from eclipse marketspace

I am using Eclipse Platform Version: Photon (4.8) as my IDE.
I want to use kotlin in the same IDE, so I was trying to get it from the market space. But I am not able to download it . I tried two options.
My Network Connection Active Provider is native (window -> preferences -> Network Connections). I am able to find the Kotlin plugin but failed to download it saying that Authentication is needed.
My Network Connection Active Provider is manual(window -> preferences -> Network Connections).I have provided the authentication details for http and https. Here I am not even able to open the market space.
What is the solution for this?
Please take a look here how to do that. Go to Eclipse Marketplace, search for Kotlin.
If that doesnt work, you can still try the "Install New Software" that will do the same as explained down bellow **.
** Another option is to drag and drop (this is like a shortcut for the option above), here are the steps, just be sure you have the Eclipse Marketplace Client like the print bellow indicates.If so, you just need to drag and drop the button to your Eclipse IDE and that's it, follow the steps, next, next, next...
Continuing:
Add this line
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient4
to the end of your Eclipse config.ini and try again. Keep Active Provider Native. If it doesn't work, chance Active Provider to Manual and uncheck Socks, then try again.
After you copy and paste that line, please restart Eclipse (It starts with an '-' sign, just to be clear: -Dorg.eclipse...
If that doesn't work too, then the last option is to change Active Provider to Direct and try again.

Eclipse gives warning on access restriction for jfxrt.jar classes

I'm using eclipse kepler with java SE 1.8 jdk system library but when I use any javafx classes or methods eclipse gives a warning like Access restriction: The type 'TableColumn<?,?>' is not API (restriction on required library 'C:\Program Files\Java\jdk1.8.0_05\jre\lib\ext\jfxrt.jar').
I have tried adding an access rule to the system library to allow access for all jars in the library using the wildcard * but the warning is still there. Am also using maven for building project.
The code works but the warning is nagging and is affecting readability as I code. Any help is appreciated.
Edit: I also tried adding #SuppressWarnings("restriction") at the beginning of my classes but this still doesn't solve the unknown cause and hides all other restriction warnings that I may need to see
I'm able to get past this by reconfiguring Java library. For example, explicitly selecting Oracle JDK does the trick.
The easy way is to install e(fx)clipse - a plugin for Eclipse to support JavaFX:
Select Help -> Install New Software
Click Add button to add the following site:
Name: efxclipse
Location: http://download.eclipse.org/efxclipse/updates-released/1.2.0/site
Click OK
In the "Work with" dropdown list, select the recently added site "efxclipse"
Check the checkbox "e(fx)clipse - install" to install all components of this selection
Move to next steps to finish the installation
Restart your Eclipse. If it still doesn't recognize JavaFX library, restart it again.
Original information can be found here: https://www.eclipse.org/efxclipse/install.html#for-the-lazy
You can choose ignore in the following settings:
Windows -> Preferences -> Java -> Compiler -> Errors/Warnings
(Project) Properties -> Java Compiler -> Errors/Warnings
Use filter to find "Forbidden reference"
Forbidden reference (access rules) : Change it to "ignore"
Add an access rule to allow access to javafx/**.
See also this answer: https://stackoverflow.com/a/32062263/1060350
For all I can tell, this is a bug in Eclipse in my opinion. I also could not find a way to configure this globally in Eclipse, but you need to redo it for every project.
Navigate to Project settings, Build path, Libraries, JRE. Click on "Access rules" which should have "No rules defined" usually. Add a new rule: "Accessible", and enter the pattern "javafx/**".
This tells the Eclipse Java compiler that javafx.* is an official API that you are allowed to use, so the warning goes away.
Clearly, allowing access to javafx only is much better than ignoring the warning.
The reason why * did not work is because you did not read the wildcard definition. In the access rules, * only matches once, you need ** to match at any depth. I.e. * will allow access to javafx.SomeClass but not not javafx.scene.SomeClass...
Add an access rule for javafx.
Right click your project > Properties > Java Build Path > Libraries tab, then:
Expand JRE System Library
select Access Rules, click Edit... button
click Add...
choose Resolution: Accessible
set Rule Pattern: javafx/**
click OK
click OK

Eclipse marketplace stuck on 'Calculating requirements and dependencies'

In eclipse when I choose: install new software... I always have to uncheck the "Contact all update sites during install to find required software" otherwise the whole thing takes forever stuck on the Calculating requirements and dependencies.
I can't find an option for that in the Marketplace which makes the whole marketplace useless, since I get stuck on the same place.
Is there an option somewhere for this, or can I solve it in another way. Or should I switch to IntelliJ IDEA...?
If you install a plugin locally from a zip or jar file, you can simply uncheck the option : 'Contact all update sites during install to find required software'
However, this will not fix the problem completely, and in the Eclipse Marketplace there is no such option to uncheck and you can be hanged at 'Calculating requirements and dependencies' forever.
The true problem are the Available Software Sites provided in Eclipse. Basically, the option above will let Eclipse connect to each of the sites that are enabled and wait till all the sites response. Therefore, even if just 1 site is problematic and not respond, Eclipse will wait forever.
You can configure this by choosing the 'Manage' button next to 'Add' in 'Install new softwares...' or in 'Windows -> Preferences -> Install/Update -> Available Software Sites'
It is as simple as testing each of the sites in the list and Disable/Remove any sites that is unable to connect, especially externals sites added by users that may contain typos.
The above solution should work in most situations, but if it doesn't, please check your connection and disable proxy, firewall or allow Eclipse to pass through them.
In Eclipse Oxygen (jun 2017) and in Available Software Sites, I've updated the location of "Eclipse Orbit Composite" to the last buid repository in http://download.eclipse.org/tools/orbit/downloads/
Example:
From: ...download.eclipse.org/tools/orbit/downloads/drops/R20150821153341/repository/
To: ...download.eclipse.org/tools/orbit/R-builds/R20170516192513/repository
UPDATE:
Change DNS router to DNS google 8.8.8.8/8.8.4.4 works for me!
Follow these steps.
Start Eclipse, then select Help > Install New Software…. Click Add,
in the top-right corner.
In the Add Repository dialog that appears, enter “ADT Plugin” for
the Name and the following URL for the Location:
https://dl-ssl.google.com/android/eclipse/ Click OK
Note: If you have
trouble acquiring the plugin, try using “http” in the Location URL,
instead of “https” (https is preferred for security reasons)
In the Available Software dialog, select the checkbox next to
Developer Tools and click Next. In the next window, you’ll see a
list of the tools to be downloaded. Click Next. Read and accept the
license agreements, then click Finish.
Note: If you get a security warning saying that the authenticity or validity of the software can’t be established, click OK. When the installation completes, restart Eclipse.

Custom CKeditor plugin on Joomla installation

I have written a plugin for CKeditor according to this tutorial: Plugin Tutorial but I can't get it shown on the ckeditor's toolbar of my Joomla 1.5 installation. I have copied it in the plugins folder, registered it in the config.js as an extra plugin, even tried the Advanced Configuration in the backend settings by setting this: CKEDITOR.config.extraPlugins = 'myplugin'; or this config.extraPlugins = 'myplugin' but nothing happens, no button whatsoever. Can someone list the "installation procedure" of the plugin on a joomla 1.5 system? Thanks.
You also have to have an entry in the jos_plugins table. Unless I'm building an installation package for it, I just copy a similar record and make the changes to match my plugin - be sure to get the value in the "folder" correct.

How to use eclox, the doxygen plugin for Eclipse

How do I get eclox working in Eclipse 3.5?
I'm using Ubuntu 9.04. I installed Doxygen from ubuntu repositories(version 1.5.8). Then I installed eclox on eclipse through the update site.
Despite this, I don't get any option to in any menu to initiate it.
Also the eclox site doesn't seem to have any "getting started" guide.
Please help.
BTW there is a manual inside org.gna.eclox_0.8.0.jar, wierd they did not post this on the project site!!!
Here is the content
Eclox, a Doxygen frontend plugin for Eclipse.
<http://gna.org/projects/eclox>
INSTALLATION
There are two options to install the plugin: using the update site or
using the packaged feature.
The update site is the more convenient way to install eclox. It is
located at https://anb0s.github.io/eclox. See eclipse's user
guilde for additionnal details.
When using the packaged feature, you must extract the archive content into
your eclipse's root location. For additionnal details, please refer to
eclipse's user guide.
CONFIGURATION
Once the plugin installed, you must ensure that the default PATH environment
variable makes the doxygen binary reachable for the plugin. If not, you can
update PATH to include to directory containing the Doxygen binary, or you can
tell Eclox where that binary is located on your system (which is in my opinion
the better solution). To do this, open eclipse's preference edition dialog
window and go into the new "Doxygen" section.
USAGE
You can create new Doxygen projects (also called doxyfiles) using the
creation wizard. Go to "File->New->Other->Other->Doxygen Configuration". Press
next and set both file location and name. Then a empty doxyfile will be
created at the specified location, the wizard automatically adds the
".Doxyfile" extension.
You should now see a file with a blue #-sign icon. This is your new
doxyfile. Double-clicking on it will open the editor. You can now browse and
edit the settings.
Once your have properly set all doxyfile fields, you can launch a
documentation build using the toolbar icon showing a blue #-sign. In
the case the button is not visible in the toolbar, your current perspective
needs to get configured. Go to "Window->Customize perspective->Commands" and
in "Available command groups" check "Doxygen". Additionnaly, you can browse
the laetest builds by clicking the down arrow right to the toolbar button.
When the documentation build starts, a new view showing the build log opens.
In its toolbar, a button named "Stop" allows you to halt the current build
process. The current build also appears in the Eclipse job progress view and
you can control the job from there.
The build toolbar action determine the next doxyfile to build depending on
the current active workbench part (editor or view) and the current selection
in that part. For example, if the active part is a doxyfile editor, the next
doxyfile to build will be the one being edited. If the active part is the
resource explorer and the current selection is a doxyfile, that doxyfile will
be next to get build. In the case the active part selection doesn't correspond
to a doxyfile, the last built doxyfile will be rebuiled. And if the build
history is empty, you will be asked for the doxyfile to build.
HTH Anybody
Never mind, worked it out my self.
First you need to create a DoxyFile (which is the configuration file) by giving the source path and the output path.
Then only you can generate the documentation by right clicking the project and selecting the "Generate Documentation".
Thanks anyway!
I just faced a problem setting the Doxygen binary path in eclox 0.8.0 settings in Eclipse on Mac OS X 10.7.
There is no way to configure the path via Eclipse-preferences->Doxygen.
The solution is to edit the preferences file manually
add a (fake) location, let's say /Applications, using the wizard mentioned above.
close Eclipse
edit this file:
$WORKSPACE/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.gna.eclox.core.prefs:
Replace the value for doxygen.default (currently eclox.core.doxygen.CustomDoxygen /Applications\n) with eclox.core.doxygen.CustomDoxygen /Applications/Doxygen.app/Contents/Resources/doxygen\n.
restart Eclipse
For MacOS user there is a very easy way to get around via the issue of the Doxygen version selection. The link that provides details is here:https://github.com/theolind/mahm3lib/wiki/Integrating-Doxygen-with-Eclipse
After installing the Eclox plugging:
1)"go to "Eclipse --> Preferences --> Oxygen"
2)"Press Shift+CMD+G then Add: "/Applications/Doxygen.app/Contents/Resources/doxygen"
3) Doxygen's version should be displayed
this might help you or any windows user trying to install eclox:
Tutorial for Installing eclox — Document Transcript
Step 1: go to eclox website (http://home.gna.org/eclox/) and to copy the update link address.Step
step 2: Insert the link into the update manager in eclipse and press OK.
Step 3: Select the Eclox item and to complete the installation.
Step 4: When the installation has done, you should select a project that you want to generate thedoxygen documents. Then, create a doxygen project for it.
Step 5: config the options. Note: You have to provide the “Input directories” correctly and to select the “Scan recursively”item. Finally, save the configuration file.
Step 6: find out the “#” and to choice “Choose Doxyfile...”.
Step 7: select a doxyfile.Step 8: wait for few seconds and the doucments will be generated.
its from this link: http://www.slideshare.net/pickerweng/tutorial-for-installing-eclox
Like claus I had to dig into the preferences file maually, because eclox 0.8.0 would just not take a good path from Eclipse Preferences file chooser.
So, edit this file: $WORKSPACE/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.gna.eclox.core.prefs and alter the given path (in my case I had to change from
doxygen.default=eclox.core.doxygen.CustomDoxygen C\:\\Programm Files\\doxygen\\bin
to this
doxygen.default=eclox.core.doxygen.CustomDoxygen C\:\\Programme\\doxygen\\bin
Hope this helps.
I find a webpage https://github.com/theolind/mahm3lib/wiki/Integrating-Doxygen-with-Eclipse where you can find more details. Especially, for Mac users, you need to Press Shift+CMD+G then Add: "/Applications/Doxygen.app/Contents/Resources/doxygen" when you configure the doxygen in eclipse before compiling .doxygfile by using Eclox.
Alternative from eclipse is to use Javadoc:
From menu (...Search Project Run...)
Project > Generate Javadoc
You should be in Java project and add comments with tags.
!!!