0

I have an extension which was installed in app/code and override from app/code, now I have only the zip for the composer installation, is it a way to install this extension by composer but in app/code/extensionsuppliername/extensionname instead of vendor/? Thank you in advance ps: in case of minus please let me know why so I can improve my post

2
  • Can you please share the folder structure of the extension installed in the vendor?
    – Sumit
    Commented Sep 12, 2019 at 9:58
  • it's not installed in vendor/ it installed in app/code
    – SylwekFr
    Commented Sep 12, 2019 at 14:15

3 Answers 3

0

You have two possible ways

#1: Please remove the app/code/extensionsuppliername/extensionname then add composer the composer entry and run the composer update, setup:upgrade

Note: If you go with #1 After removal of app/code/extensionsuppliername/extensionname, please run setup:upgrade. If no issues found then it will be fine.

#2: Download the module from zip and replace it in app/code/extensionsuppliername

2
  • unfortunately, 1 is not working so I will go with 2 but then I will need the zip from mageworx
    – SylwekFr
    Commented Sep 12, 2019 at 8:44
  • Yup, you should need zip. @SylvainMichel Commented Sep 13, 2019 at 6:06
0

I believe that is a normal scenario the plugin you are trying to install should have the folder structure, so it should automatically place it in app/code.

If you are trying to install it by hand you can always look inside a controller to see what the path should have been and build the route accordingly.

This seems like a good explanation of what I am trying to say : https://magently.com/blog/magento-2-the-right-way-to-install-external-modules/

2
  • 1
    in composer, case is mostly in vendor/ instead of app/code for the whole code as they tell on the link :( and this is an update of an extension which is already override via app/code
    – SylwekFr
    Commented Sep 12, 2019 at 8:46
  • In that case you will indeed have to do it by hand I'm afraid. Let me know if you need more help! Commented Sep 12, 2019 at 9:02
0

You could achieve this by modifying the composer.json configuration file, more info here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.