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
-
Can you please share the folder structure of the extension installed in the vendor?Sumit– Sumit2019-09-12 09:58:14 +00:00Commented Sep 12, 2019 at 9:58
-
it's not installed in vendor/ it installed in app/codeSylwekFr– SylwekFr2019-09-12 14:15:12 +00:00Commented Sep 12, 2019 at 14:15
3 Answers
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
-
unfortunately, 1 is not working so I will go with 2 but then I will need the zip from mageworxSylwekFr– SylwekFr2019-09-12 08:44:19 +00:00Commented Sep 12, 2019 at 8:44
-
Yup, you should need zip. @SylvainMicheliAmRajaVarien– iAmRajaVarien2019-09-13 06:06:20 +00:00Commented Sep 13, 2019 at 6:06
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/
-
1in 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/codeSylwekFr– SylwekFr2019-09-12 08:46:31 +00:00Commented 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!Litsher - Nathan– Litsher - Nathan2019-09-12 09:02:43 +00:00Commented Sep 12, 2019 at 9:02
You could achieve this by modifying the composer.json configuration file, more info here.