
At present, it uploads to a new folder in the admin section called "uploads".
It takes a zip that has the folder "upload" in it's root directory, and when unzipped it simply extracts all files to the opencart root folder recursively. It doesn't matter whether the file is uploading into the catalog or admin folders, just anywhere in the opencart installation.
Cons: At present, it overwrites everything when you upload a new file, so I need to add more granular control over whether it overwrites files automatically or skips files that already exist just in case, but it's actually working as a uploader & file extraction tool right now.
I will do the same for themes ie. a theme manager, uploader/installer.
Payment, shipping etc could all use the same upload/extract library as well.
What's required for finishing this.
- As mentioned above, more granular control over the way the zip is extracted - it's not make or break though at this stage, so I can still release without this and put any warnings in the documentation.
- I want to add module positions for existing & future modules as a tab. ie. module position management. The module positions will then be stored in the database as a setting, not in each module hardcoded in the files.
Cons: Module positions are hardcoded in the controllers at the moment - will need to be updated with new code or reference module positions from the db rather than coded. My current solution is to add a "get code" feature with instructions to include it in the relevant controller file.
Does anyone like this?