Page 1 of 1

how to make .zip to ocmod.zip

Posted: Tue Jul 07, 2020 5:15 am
by eakhan
Hi guys!

I am new about opencart, I could downloaded opencart and it works ,only problem is when ı try to instal an extension for example a language , the systems ask file type ocmod.zip and I dont know what is it .. I just have .zip files , how can ı make a .zip file to ocmod.zip ? Anyone else who can help me about that matter?

Re: how to make .zip to ocmod.zip

Posted: Tue Jul 07, 2020 2:45 pm
by OSWorX
Simply rename mypackage.zip > mypackage.ocmod.zip

Re: how to make .zip to ocmod.zip

Posted: Tue Jul 07, 2020 8:40 pm
by netruxa
or unzip mypackage.zip and upload all files to server manually

Re: how to make .zip to ocmod.zip

Posted: Wed Jul 08, 2020 2:59 pm
by OSWorX
netruxa wrote:
Tue Jul 07, 2020 8:40 pm
or unzip mypackage.zip and upload all files to server manually
Thumb answer!
Why?
If an Extension is offered as abc.ocmod.zip it mostly will contain also a install.xml which is needed by the internal installer.
If the files are only copied, that will lead to NOTHING.

So forget that stupid answer.

On the other hand, if an extension is offered as abc.zip only, it will contain in 99% of all cases several additonal .zip-files.
Usually named like:
abc-opencart-15x.zip
abc-opencart-2.x.ocmod.zip
abc-opencart-3.x.ocmod.zip

So extract first the .zip package locally and check if it contain files like described above.
If, go ahead and install the package with the integrated installer which fit with the used OpenCart version.

If not, see it a files called readme.txt does exist.
If, read it!
If not: ask the developer how he mean to install his lousy extension.

In general: if the extension is a .zip files only (without ocmod.zip) renaming it is useless.

Re: how to make .zip to ocmod.zip

Posted: Thu Jul 09, 2020 3:12 am
by netruxa
OSWorX wrote:
Wed Jul 08, 2020 2:59 pm
Thumb answer!
Why?
If an Extension is offered as abc.ocmod.zip it mostly will contain also a install.xml which is needed by the internal installer.
If the files are only copied, that will lead to NOTHING.

So forget that stupid answer.
1. usually languages files dont have xml inside
2. if TS have a problem with rename zip files, he also will be trouble with install ocmod) (ftp settings, etc...)

Re: how to make .zip to ocmod.zip

Posted: Thu Jul 09, 2020 3:40 am
by OSWorX
netruxa wrote:
Thu Jul 09, 2020 3:12 am
.. he also will be trouble with install ocmod) (ftp settings, etc...)
Nobody needs FTP-Settings anymore since OpenCart 3.0.x (that was the bad periode of OpenCart 2.x).

Re: how to make .zip to ocmod.zip

Posted: Sat Jul 11, 2020 4:31 am
by sw!tch
netruxa wrote:
Tue Jul 07, 2020 8:40 pm
or unzip mypackage.zip and upload all files to server manually
Not the best practice, there is a reason for the uploader.

When you upload an extension containing files via the uploader, Opencart keeps track of the files uploaded in the database (oc_extension_path). Hence when you go to delete the extension via the interface Opencart removes those files.

On a manual upload and to add to what OSWorX stated - If you wanted to remove the extension, then you would need to go fishing around for the files you manually uploaded and remove them.

So in short... Just package an ocmod.zip and use the uploader.

Re: how to make .zip to ocmod.zip

Posted: Sun Jul 12, 2020 5:07 pm
by OSWorX
sw!tch wrote:
Sat Jul 11, 2020 4:31 am
When you upload an extension containing files via the uploader, Opencart keeps track of the files uploaded in the database (oc_extension_path). Hence when you go to delete the extension via the interface Opencart removes those files.
Only true when OpenCart 3.x is used.
Not with OpenCart 2.x