cancel
Showing results for 
Search instead for 
Did you mean: 

Developing/Testing Plugins in Magento 2

Developing/Testing Plugins in Magento 2

Hi,


I'm developing a new payment extension/plugin for bitcoin and I couldn't find a correct way to install the plugin for testing purposes.
I don't have enough experiences when it comes to Magento 2 so please help me.


Thank you in advance.

2 REPLIES 2

Re: Developing/Testing Plugins in Magento 2

Hello @hamid_nabati 

 

There are mainly two ways to install any plugin/extensions either it is for use purpose of it is for testing purpose.

 

  1. Composer
  2. Manually - By placing your plugin into the app/code directory.

But here in your case you have created a plugin yourself - so you will require to install the same manually so go with second approach.

 

Put your plugin/extension directory with all the files into the app/code directory of your Magento2 setup.

 

Then run below commands in sequence : 

 

php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:clean
php bin/magento cache:flush

Then check your plugin/extension gets installed successfully.

 

There are few articles available which explain the same - below i am listing few articles links !

 

https://docs.mageplaza.com/kb/installation.html

 

https://www.mageplaza.com/install-magento-2-extension/

 

 

Hope it helps !

 

 

if issue solved,Click Kudos & Accept as Solution

Re: Developing/Testing Plugins in Magento 2

Do you develop websites? Then I know what to offer you! There is a great service Magento which helps me a lot in developing and working with new sites. You can also improve it to the new version, read how to do it on the amasty site! It will be a great investment in your work and will help optimize and develop your site. I advise!