Installing Opencart extensions in localhost or web server -
NOTE - If you are uploading extension to localhost (local computer), you need to enable FTP in your localhost first. You can check out how to do it easily here - Setup FTP on Localhost.
- After download any Opencart extension, you will realize that the default file type is .zip and when you try to upload this extension you get the infamous "Invalid file type" error in opencart. To solve this issue just rename the extension such that it ends with .ocmod.zip. Example - you-extension-name.ocmod.zip.
- Once you are past this hurdle, you can easily upload the extension and it will be installed or you might get the "Directory containing files to be uploaded couldn't be found" error. This error is because Opencart expects you extension files to be inside an upload folder. So you need to unzip the original extension files, move them inside an upload folder and then zip it and rename it so that it ends with .ocmod.zip.
- Now all the necessary changes to for uploading the Opencart extension in localhost or web server has been made. Hopefully, you can install your extensions now.