Jaep Posted January 9, 2019 Share Posted January 9, 2019 Hi, I created a new module following the tutorial overhere: https://devdocs.prestashop.com/1.7/modules/creation/ But I immediately got stuck. Basically I created a directory 'mymodule' in the modules folder, added a mymodule.php with the code from the tutorial and then I am stuck at where the tutorial says: Quote Now go to your back office, then in the Modules page (found at “Modules” > “Modules & Services”) choose the Selection tab. The module is visible in the modules list, with its information displayed – and no icon for now. The new module mymodule does not show up and I can not continue with the tutorial. Running Prestashop 1.7.5 with classic theme. I installed a module by uploading a ZIP file and that went fine. Is there a way to force rescanning the modules folder? John Link to comment Share on other sites More sharing options...
JBW Posted January 9, 2019 Share Posted January 9, 2019 Try to zip your folder and upload this as a module. If there are any error popping up this might be the reason the module folder is not detected. Link to comment Share on other sites More sharing options...
Jaep Posted January 10, 2019 Author Share Posted January 10, 2019 (edited) I zipped and uploaded it and it got installed without any error messages. It shows up in the list of modules. Is... ...the tutorial wrong (install modules MUST be done by uploading ZIP) ? ...something wrong with my installation ? ...something wrong with my settings ? ...a bug in Prestashop ? Edited January 10, 2019 by Jaep (see edit history) Link to comment Share on other sites More sharing options...
Jaep Posted January 10, 2019 Author Share Posted January 10, 2019 I continued with the tutorial, next steps were the methods install() and uninstall(). After doing a few zip-uploads, disabling, uninstall, etc, the module shows up in the module catalog. Big thank you, @JBW! Link to comment Share on other sites More sharing options...
JBW Posted January 10, 2019 Share Posted January 10, 2019 I was struggeling with the same and could my modules only get installed with the .zip install in 1.7. Guess it's because the changed the module system in 1.7 but forgot to update the documentation, because in 1.6. it works as described (and even with zip you have to trigger the install after the upload manually). But glad to hear it works for you. Link to comment Share on other sites More sharing options...
Jeff A Posted June 11, 2019 Share Posted June 11, 2019 This is a PITA because I am not developing on my PC, but on the server - is there any way to get the module recognised on the server, rather than having to copy it back to the PC, zip it and then re-upload it? Link to comment Share on other sites More sharing options...
phinq1910 Posted June 11, 2019 Share Posted June 11, 2019 Seems there are something wrong when you make it. Try read again development doc, it is easy to create your-own-module. Or share your module for check Link to comment Share on other sites More sharing options...
JBW Posted June 11, 2019 Share Posted June 11, 2019 3 hours ago, Jeff A said: s there any way to get the module recognised on the server, rather than having to copy it back to the PC, zip it and then re-upload it? Yes, usually if your module is correct and placed in the modules foler you will find it under "Modules Catalog" (not Modules Manager!) with a install button. I was searching for the same for a long time I still find the logic quite confusing Link to comment Share on other sites More sharing options...
Pish_Peter Posted September 19, 2019 Share Posted September 19, 2019 I added "improve" on my nginx config file, so that it now looks like this location ~ /(international|_profiler|improve|module|product|feature|attribute|supplier|combination|specific-price|configure)/(.*)$ { try_files $uri $uri/ /index.php?q=$uri&$args $admin_dir/index.php$is_args$args; } Link to comment Share on other sites More sharing options...
JBW Posted September 30, 2019 Share Posted September 30, 2019 On 9/28/2019 at 7:47 AM, mayjorblayke said: is there any way to get the module recognised on the server, rather than having to copy it back to the PC, zip it and then re-upload it? Yes, as I said, put in on your server (e.g. FTP) and you will find it in the module catalog (not manager!) with a install button. 1 Link to comment Share on other sites More sharing options...
davetech Posted September 23, 2022 Share Posted September 23, 2022 On 9/30/2019 at 3:42 AM, JBW said: Yes, as I said, put in on your server (e.g. FTP) and you will find it in the module catalog (not manager!) with a install button. Oh my goodness..... Spent so much time here. CATALOG, as opposed to MANAGER..... (face plant...) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now