cancel
Showing results for 
Search instead for 
Did you mean: 

installing extension t magento 2

SOLVED

installing extension t magento 2

how to update composer.json file after adding new extension to it?

3 ACCEPTED SOLUTIONS

Accepted Solutions

Re: installing extension t magento 2

@iyhamid 

 

You should install extension by composer like this:

Using the Composer name and version, add the extension to the require section of the composer.json file

composer require <extension-name>:<version> --no-update

For example:

composer require pixlee/magento2:1.0.1 --no-update

 Update the project dependencies

composer update
bin/magento module:status <extension-name>

 

https://devdocs.magento.com/cloud/howtos/install-components.html 

Manish Mittal
https://www.manishmittal.com/

View solution in original post

Re: installing extension t magento 2

I am trying to add extension to magento 2 tried through back end I couldn't  now i am trying through php command. it said to edit composer.josn and update it then run upgrade. still not able to get extension to be installed. Please help

 

  1. Update the "name", "version", and "description" fields in the composer.json file as needed.

    Updating the metadata in composer.json file is entirely superficial, not functional.

  2. Apply updates.

    composer update
  3.  

View solution in original post

Re: installing extension t magento 2

Thank you Manish Mittal

I am new to Magento...

where should I write this command: 

composer require mageplaza/module-core

I tried everywhere 

View solution in original post

6 REPLIES 6

Re: installing extension t magento 2

@iyhamid 

 

You should install extension by composer like this:

Using the Composer name and version, add the extension to the require section of the composer.json file

composer require <extension-name>:<version> --no-update

For example:

composer require pixlee/magento2:1.0.1 --no-update

 Update the project dependencies

composer update
bin/magento module:status <extension-name>

 

https://devdocs.magento.com/cloud/howtos/install-components.html 

Manish Mittal
https://www.manishmittal.com/

Re: installing extension t magento 2

I am trying to add extension to magento 2 tried through back end I couldn't  now i am trying through php command. it said to edit composer.josn and update it then run upgrade. still not able to get extension to be installed. Please help

 

  1. Update the "name", "version", and "description" fields in the composer.json file as needed.

    Updating the metadata in composer.json file is entirely superficial, not functional.

  2. Apply updates.

    composer update
  3.  

Re: installing extension t magento 2

how  you update project dependency? 

Re: installing extension t magento 2

@iyhamid 

 

Project dependencies you can update by composer update.

 

Again I am sharing 2 articles to follow they have mentioned in clear way with different methods:

https://devdocs.magento.com/extensions/install/

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

Manish Mittal
https://www.manishmittal.com/

Re: installing extension t magento 2

Thank you Manish Mittal

I am new to Magento...

where should I write this command: 

composer require mageplaza/module-core

I tried everywhere 

Re: installing extension t magento 2

@iyhamid 

 

No worries,

 

You can run this command in your magento root folder.

 

replace here mageplaza/module-core with your module name.

 

Manish Mittal
https://www.manishmittal.com/